View Full Version : rotation problem
I have an horizontal plane at z = 0.0f and a
tree from 0.0f to 1.0f.
When I rotate this scene 180 degrees, the lower part of the trunk is sticking out from the plane. How do I conceal this lower part??
try to be more specific...
09-25-2001, 08:28 AM
I don't understand the question either !
try to be more clear with some code or something...
09-25-2001, 10:16 AM
Do you mean that the plane and tree are not rotating about the same point?
09-25-2001, 11:10 AM
Do you mean that one can see the lower part of the tree when looking from beneath the plane?
Yes Micheal ...
you are right ...
both the tree and the plane are rotating about the same point ...
and I can see the bottom of the tree when I
rotate to the bottom of the plane.
Shouldnt the tree be covered by the plane??
09-26-2001, 04:58 AM
Perhaps you have GL_LEQUAL as depth func.
Try to call that upon initialization:
glDepthFunc( GL_LESS );
I've already used glDepthFunc(GL_LESS)
but I can still see the bottom of the tree when I rotate 180 degrees.
Any more advices??? THanks!
09-30-2001, 08:30 AM
Powered by vBulletin® Version 4.2.3 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.