Sign in to follow this  
ahmedkotb

perspective projection problem

Recommended Posts

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 [url="http://ahmedkotb.0fees.net/3d/projection_demo.html"]here[/url] also (mouse wheel is used to zoom)

any illustration well be appreciated , thanks

Share this post


Link to post
Share on other sites
[quote name='Volgogradetzzz' timestamp='1313647968' post='4850628']
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?[/size][/color]
[/quote]

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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this