Jump to content
  • Advertisement
Sign in to follow this  
tinu

problem with projection

This topic is 4075 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

Hi I am rendering a 3D volume. When I rotate the camera around it,To achieve orbiting, The volume disappears for one half of the 180 degrees and gives orbiting effect as expected for the other half 180 degrees. I use orthogonal projection. I have tried changing various values for the near and far clipping planes. But it did not work. Can anybody help.

Share this post


Link to post
Share on other sites
Advertisement
Sounds like everything is being backface culled. Try setting the D3DRS_CULLMODE render state to D3DCULL_NONE and see if that helps. If it does, then you should either leave it off, or make your geometry double-sided.

Share this post


Link to post
Share on other sites
Yes,It worked.
But now the behavior is different slightly.
For the first half of 180 degrees, The orbiting effect is in clockwise direction.
For the second half the orbit takes place in the anticlockwise direction.
How can i get the effect of orbiting the volume for 0 to 360 degrees in the same direction.

Share this post


Link to post
Share on other sites
Perhaps you should post some code and an explanation, so we know how you're currently doing things. Then we can suggest an improvement or correction.

Admiral

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!