Jump to content
  • Advertisement
Sign in to follow this  
AAAP

Help !!

This topic is 4595 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Ok i know its bad to cross-post, but like.. this has more to do with general programming anyway cuz i think the problem can be fixed by changing the order the vertexes are loaded from file into array... if this gets closed can please reply to my post in the OpenGL forum? ( 3D Model Display Pt. 2) Now, my render thing looks like this:

	 glBegin(GL_TRIANGLE_STRIP);
	 
	 for( int f = 0; f < faces.n; f++ )
	 {
			glNormal3d( vert[faces.vert[f]].x,
					     vert[faces.vert[f]].y, 
						 vert[faces.vert[f]].z );

		     glVertex3d( vert[faces.vert[f]].x,
					     vert[faces.vert[f]].y, 
						 vert[faces.vert[f]].z );
	 }

	 glEnd();	









It's much, much better than the last one. But still, for faces that are quads, because its a triangle strip and the way the vertices are loaded from the file, you get the pacman-looking shape on quads that you get when you put the triangle strip vertices in the wrong order. that kinda |¯¯/ |__ shape, if that shows up right. If I can change the order that the vertexes are loaded, i think that would fix that.. but now im getting writers block and cant think of how i would even do that. cuz i load them in a for loop too now, so it would seem awkward to change the order of the for loop Free Image Hosting at www.ImageShack.us

Share this post


Link to post
Share on other sites
Advertisement

This topic is 4595 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Guest
This topic is now closed to further replies.
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!