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

    Illuminance2

    SDK Help
    0
    2
    231
    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

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

      On 03/09/2003 at 22:35, xxxxxxxx wrote:

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

      ---------
      void Illuminance2(Vector* diffuse, Vector* specular, Real exponent, Vector* p, Vector* n, Vector* bumpn, Vector* rayv, LONG calc_shadow)

      Please define "rayv".

      I assume "n" and "bumpn" may be the same ( why would they be different? ).

      I assume "rayv" would be the incoming ray "SV( vd->ray->v )".

      Regards,
      David Farmer

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

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

        On 04/09/2003 at 00:35, xxxxxxxx wrote:

        Yes, I think 'rayv' is the incoming ray vector. You'd have to convert it to a Vector just like you describe. (The unoptimized source for the IlluminanceN() functions is actually available in Illumination.cpp in the SDK.)
        'n' and 'bumpn' can be different if the surface uses bump mapping. (Just like in MaterialData::ChangeNormal().)

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