Plugin Cafe Homepage
Forum Home Forum Home > Plugin Cafe > SDK Help
  New Posts New Posts
  FAQ FAQ  Forum Search

Generated normals are ignored by C4D

Author
Message
  Topic Search Topic Search
NiklasR View Drop Down
Member
Member


Joined: 2010 Dec 13
Location: Germany
Online Status: Offline
Posts: 2575
Direct Link To This Post Topic: Generated normals are ignored by C4D
    Posted: 2018 May 23 at 8:53am

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:


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


Edited by NiklasR - 2018 May 23 at 9:18am
Back to Top
Andreas Block View Drop Down
Forum Moderator
Forum Moderator
Avatar

Joined: 2014 Oct 01
Location: Hannover
Online Status: Offline
Posts: 1878
Direct Link To This Post Posted: 2018 May 24 at 7:30am
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.
Cheers,
Andreas
SDK Support Engineer
Back to Top
NiklasR View Drop Down
Member
Member


Joined: 2010 Dec 13
Location: Germany
Online Status: Offline
Posts: 2575
Direct Link To This Post Posted: 2018 May 24 at 5:07pm
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,
Back to Top

Forum Jump Forum Permissions View Drop Down

Bulletin Board Software by Web Wiz Forums® version 9.61 [Free Express Edition]
Copyright ©2001-2009 Web Wiz

This page was generated in 0.094 seconds.