Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Recent
    • Tags
    • Users
    • Login

    BaseView::BackfaceCulling usage ?

    Scheduled Pinned Locked Moved SDK Help
    1 Posts 0 Posters 131 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H Offline
      Helper
      last edited by

      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 !!!🙂

      1 Reply Last reply Reply Quote 0
      • First post
        Last post