i am writing a shooter and i encountered a
funny problem - as i move further away from objects i draw they start disappearing on me.
when i’m close to the objects they look fine,
but as i move away, edges start disappearing then faces disappear until finally the entire object disappears -
did anyone encounter such a problem or might have an idea what’s wrong with my program.
you see, first i draw the walls of the game and then i draw the detailed objects that are in the game - only the detail objects have this problem - the walls that are behind the objects are not effected for some reason - so it’s not the clipping plane.
the wierd thing is that the polygons don’t disappear at once, they don’t “blink” out of existance, the polygons paritally disappear, then reappear , then disappear again.
wierd huh???
i know the problem is with my drawing function, because i tried drawing a regular cube next to my objects from outside the drawing function - and the cube stayed intact!!!
by the way, if you can tell me how i can get a screenshot, i’d be more than happy send it to you.
thanks for trying to help,
but it looks like a long day of dubugging for me.
i don’t know why it works, but it works.
(i simply moved the draw of the detailed objects to be the last thing drawn - and it solved it - i don’t know why it made a difference because i used a depth buffer and it shouldn’t have mattered).
[QUOTE]Originally posted by alan:
[b]i don’t know how to get screenshots,
If you are using windoze (perhaps Linux as well?) then shift-printscreen will copy a bmp of your screen to the clipboard. Then paste it into any bmp viewer, paint for example.