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
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    Generated normals are ignored by C4D

    SDK Help
    0
    3
    961
    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
      Helper
      last edited by

      On 23/05/2018 at 08:53, xxxxxxxx wrote:

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

      ---------
      Hello,

      I generate normals in a NormalTag from C++, but the normals seem to be ignored by C4D in the
      viewport from a shading perspective but also when using the "Vertex Normals" display option in
      the Viewport settings.

      When I export the object as an .OBJ and import it again, the normals are taken into account by
      C4D as expected. I can not spot a difference, however, between the object or its NormalTag that
      I generate and the one that is imported from the .OBJ.

      Here is a link to the C4D scene file with the object:

      https://cloud.niklasrosenstein.com/s/HJ4ZE7BHywYKd9e

      And for clarification:
      Right -- model with normals generated in C++
      Left -- model with normals after importing what is exported from the Right model as .OBJ

      I would expect them to be the same, but the normals of the original model on the Right seem
      to be ignored.

      Thanks in advance,

      Niklas

      1 Reply Last reply Reply Quote 0
      • H
        Helper
        last edited by

        On 24/05/2018 at 07:30, xxxxxxxx wrote:

        Hi Niklas,

        could it be you are lacking the phong tag?
        Unfortunately it is not explicitly mentioned in the documentation (we'll fix that), only in the code snippet: NormalTag manual.

        1 Reply Last reply Reply Quote 0
        • H
          Helper
          last edited by

          On 24/05/2018 at 17:07, xxxxxxxx wrote:

          That is the culprit, thank you Andreas.

          I keep forgetting that these manuals exist. I think the NormalTag class documentation should link
          to the manual page. 🙂

          Cheers,

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