Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Graphics > OpenGL 3D API > gluTesselation ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 13 Topic 4878 of 5017
Post > Topic >>

gluTesselation - Combine Problems

by uuilly <willy.lists@[EMAIL PROTECTED] > Aug 20, 2008 at 02:58 PM

Hey,
I've had a problem with gluTesselations for a long time but only
recently did they problem become bad.  I was usually tessellating
international boundaries and occasionally they would show tiny little
holes in them.  Now I am rendering counties and they are everywhere.
I have a terrible combineCallback that basically gives back one of the
points it tried to combine.  I have tried EVERY sample of a
combineCallback that I could find on google.  Even the one from the
SuperBible creates a geometric train wreck on my screen.


void combineCallback(GLdouble coords[ 3 ],
			        GLdouble *vertex_data[ 4 ],
			        GLfloat weight[4],
                                GLdouble **dataOut )
{
	//	this gets rid of warnings
	coords[ 0 ] = coords[ 0 ];
	weight[ 0 ] = weight[ 0 ];
	GLdouble *vertex = Drawable::getNewTessVerts( 6 );

	for( int j = 0; j < 3; ++j )
	{
		vertex[ j ] = vertex_data[ 0 ][ j ];
	}
	for( int j = 3; j < 6; ++j )
	{
		vertex[ j ] = 0;
	}
	*dataOut = vertex;
}


The sad thing is I don't even see where the geometry self intersects.
Here are my verts:
x,y,z
-2.2321 0.781845 0
-2.22749 0.781842 0
-2.22431 0.781833 0
-2.22223 0.781838 0
-2.22223 0.772144 0
-2.22247 0.772144 0
-2.22484 0.772153 0
-2.22719 0.772159 0
-2.23056 0.772158 0
-2.23146 0.772167 0
-2.23384 0.77217 0
-2.23424 0.772172 0
-2.23424 0.772223 0
-2.23423 0.772973 0
-2.23423 0.774753 0
-2.23423 0.774871 0
-2.23423 0.77582 0
-2.23421 0.777779 0
-2.2342 0.781848 0

There are some points that are close together but no self intersection
that I can see.

Here is a pic of the output.  I know I am drawing the lines correctly
b/c the yellow lines are drawing the same points that the tess is
supposed to be drawing.  I'd really appreciate any help.  Thanks...

-Willy
http://www.zoonex.com/pics/423b9a886152e37b5a870a8832667c05.JPEG
 




 13 Posts in Topic:
gluTesselation - Combine Problems
uuilly <willy.lists@[E  2008-08-20 14:58:05 
Re: gluTesselation - Combine Problems
"jbwest" <jb  2008-08-20 17:40:23 
Re: gluTesselation - Combine Problems
willy.pell@[EMAIL PROTECT  2008-08-20 20:31:31 
Re: gluTesselation - Combine Problems
"jbwest" <jb  2008-08-21 09:11:41 
Re: gluTesselation - Combine Problems
uuilly <willy.lists@[E  2008-08-21 11:27:49 
Re: gluTesselation - Combine Problems
"jbwest" <jb  2008-08-21 16:58:16 
Re: gluTesselation - Combine Problems
uuilly <willy.lists@[E  2008-08-21 17:35:30 
Re: gluTesselation - Combine Problems
uuilly <willy.lists@[E  2008-08-21 17:45:47 
Re: gluTesselation - Combine Problems
uuilly <willy.lists@[E  2008-08-21 18:15:40 
Re: gluTesselation - Combine Problems
uuilly <willy.lists@[E  2008-08-22 15:15:16 
Re: gluTesselation - Combine Problems
uuilly <willy.lists@[E  2008-08-22 15:56:31 
Re: gluTesselation - Combine Problems
"jbwest" <jb  2008-08-24 13:32:23 
Re: gluTesselation - Combine Problems
uuilly <willy.lists@[E  2008-08-25 19:30:35 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Nov 21 6:57:58 CST 2008.