BaseView::BackfaceCulling usage ?



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 08/11/2010 at 16:54, xxxxxxxx wrote:

    User Information:
    Cinema 4D Version:   11.5 
    Platform:   Windows  ;   
    Language(s) :     C++  ;

    ---------
    Hi,

    I need to know which polygon is visible in the current editor view.

    So...
    Bool BaseView::BackfaceCulling(const Vector& n, const Vector& p);
    ...would be OK for me.

    But I don't know in which space (screen, camera, world)
    the vectors should be, i tried a few combinations out,
    but I always get strange results.
    So maybe there is something wrong.

    I use the Normals from CreatePhongNormals() and use
    the first point of each polygon with its phong normal to
    check for culling.

    Did someone used this function before and knows how to use it ?

    Thank you !!!🙂


Log in to reply