Advertisement

strange problem!

Started by September 29, 2004 03:31 AM
1 comment, last by kaoslifekaos 20 years, 2 months ago
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?
----------------------------

http://djoubert.co.uk
Advertisement
heh that was funny :)
it sounds like fanstrip but not like that. and the thing is i didnt change a bit of code.
i mean (0,0,0)xyz by origin.

This topic is closed to new replies.

Advertisement