zanpei Posted July 28, 2011 Posted July 28, 2011 i only want to get some object's depth texture (but not all objects) in a scene. how can i do.
manguste Posted July 28, 2011 Posted July 28, 2011 Have you considered using an Auxiliary buffer to write object depth values to?
zanpei Posted July 30, 2011 Author Posted July 30, 2011 as i konw the Auxiliary buffer will affect the charactor's color, and the Auxiliary buffer will use depth buffer, when an object that i don't want to get the depth texture come before the charactor, it will cover the charactor, cause i can't get the depth texture. how can you solve these problem?
manguste Posted August 3, 2011 Posted August 3, 2011 as i konw the Auxiliary buffer will affect the charactor's color, and the Auxiliary buffer will use depth buffer, when an object that i don't want to get the depth texture come before the charactor, it will cover the charactor, cause i can't get the depth texture. how can you solve these problem? Could you describe in more detail what exactly you want: is it info from the depth buffer? And what are you going to do with it (in scripts or in shaders)?
Recommended Posts