Sign in to follow this  

need help on 3D=2D conversion

This topic is 3740 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'll try to explain what i want to do. I want to render lens flare/corono effect. corona effect is placed in the game world in 3D. I can do world/view/project/viewport transformation on the 3D points of the effect and get 2D screen coordinate. (along with z value) The problem is that when i want to render the effect (in 2D now) using the result values, i want the effect to be properly occuluded by game objects. I'm using orthographic projection for 2D rendering and not sure what to put for z value.

thanks

Share this post


Link to post
Share on other sites

This topic is 3740 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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