Skip to main content
gamedev.net
🔒 Locked

perspective projection problem

Started by ahmedkotb Aug 18, 2011 at 2:28 AM 2 replies 1.1k views
Original Post
ahmedkotb
ahmedkotb
Hi,
i have been reading recently about perspective projection and decided to implement a simple demo. (which includes a simple cube and a 5*5 units grid)
after implementing the perspective projection , i faced a strange phenomena when the pov is near to the box, the grid lines get corrupted (gather towards one point) also if i get more nearer the box is corrupted also.
i feel that this is a property of perspective projection that i don't understand
here is a picture
[media]http://i.stack.imgur.com/dofWD.png[/media]

you can try the demo here also (mouse wheel is used to zoom)

any illustration well be appreciated , thanks
Volgogradetzzz
Volgogradetzzz
Hi. No, it's not property of [color=#1C2837][size=2]perspective projection. It seems that this artefact is result of division by zero. What is value of near plane in your demo?
ahmedkotb
ahmedkotb

Hi. No, it's not property of [color="#1C2837"]perspective projection. It seems that this artefact is result of division by zero. What is value of near plane in your demo?


the near plane value = -10
the far plane value = -20

may be because the lines is out of frustum ? i haven't done any clipping yet.

Topic Locked

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

Sign in to reply to this topic.