Skip to main content
gamedev.net
🔒 Locked

3d projection

Started by jeppa 0 replies 400+ views
Original Post
jeppa
jeppa
I have this problem,you could help me? how can I project a 3dpoint correctly when its z is negative? I would want to visualize correctly a polygon also when is behind the observer es:this this example produces an incorrect result. Distance=2.56f // Distance of the observer x=-0.5f // 3d x y=-0.5f // 3d y z=-2.50f // 3d z Inverse=1.0f/(z+Distance); // reciprocal Xp=(x*Distance)*Inverse; //x projected YP=(y*Distance)*Inverse; //y projected thanks in advace

Topic Locked

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

Sign in to reply to this topic.