THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 11/03/2011 at 15:28, xxxxxxxx wrote:
Cinema 4D Version: 12
Platform: Mac OSX ;
Language(s) : C++ ;
I'm drawing onto an object's polygons with DrawTexture().
I want to draw onto polys facing the camera and not hidden by other objects. BackfaceCulling() lets me skip polys facing away from the camera but the drawing is visible though other objects.
Is there a way of detecting whether a poly is hidden from the viewport camera by another object?
While searching I came across unresolved questions about BackfaceCulling() usage. For the archives, it works in camera space:-
face normal: bd.WC_V(global_normal)
face centre: bd.WC(global_position)