# 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.

## 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

##### Share on other sites
Cross post. Closed.

##### Share on other sites

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

This topic is now closed to further replies.

1. 1
2. 2
JoeJ
17
3. 3
4. 4
frob
11
5. 5

• 13
• 16
• 13
• 20
• 13
• ### Forum Statistics

• Total Topics
632181
• Total Posts
3004625

×