problem with projection

Started by
2 comments, last by TheAdmiral 17 years, 1 month ago
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.
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.
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.
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
Ring3 Circus - Diary of a programmer, journal of a hacker.

This topic is closed to new replies.

Advertisement