Skip to main content
GameDev.net gamedev.net
🔒 Locked

strange problem!

Started by kaoslifekaos Sep 29, 2004 at 3:31 AM 1 replies 750+ views
Original Post
kaoslifekaos
kaoslifekaos
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.
dawidjoubert
dawidjoubert
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
kaoslifekaos
kaoslifekaos
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.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.