strange problem!
i was working on a project to study basic 3d drawing and i managed to draw a model. then i carry the project to my laptop.
i installed directx and sdk. run the project and see something really strange. its like all the polygons have a vertex at origin. when i change it from trianglelist to linelist, i see there are lines to points from the origin.
what can be the problem?
i cant even search for it in the web :) so i decided to ask you.
Sounds like it found the center of gravity!!
Try glDisable(GL_CENTER_OF_GRAVITY); <--- Just joking!!
um well there is a poly type which does almost a similar thing!GL_FAN_STRIP
us see ot consists of a convex poly and simple generates triangles Vert[0] + Vert[i+1] + Vert[i+2]
Which means in wireframe assuming it doesnt just draw the border it would almost be the same!
What do you mean origin? Is that the center or the first Vert?
Try glDisable(GL_CENTER_OF_GRAVITY); <--- Just joking!!
um well there is a poly type which does almost a similar thing!GL_FAN_STRIP
us see ot consists of a convex poly and simple generates triangles Vert[0] + Vert[i+1] + Vert[i+2]
Which means in wireframe assuming it doesnt just draw the border it would almost be the same!
What do you mean origin? Is that the center or the first Vert?
----------------------------http://djoubert.co.uk
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement