Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Transparent objects



Hi,
in my animation I draw 2 transparent objects (50% transparency) one by one.
But if the first object is closer to the eye point, I cannot see the second
object (which I draw just after). I guess this depends on the fact that when
the first object has been drawn, the second object didn't exist yet in the
buffer, so I cannot see it.

I have been playing with the glDisable(GL_DEPTH_TEST) and
glDisable(GL_CULL_FACE), but they produce unwanted effects when the 2
objects move and change their respective position regarding the eye point
(it's an animation).

Describing what I see is really complicated and boring, so I simply ask:
In my animation, how can I draw the 2 transparent objects such a way I see
what a human eye really sees?


Best Regards
-- 
Lorenzo
email: email@hidden

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Mac-opengl mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/mac-opengl/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.