Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk 3ds® Max® / SDK / can i get these information
  RSS 2.0 ATOM  

can i get these information
Rate this thread
 
62609
 
Permlink of this thread  
avatar
  • zydgyy
  • Posted: 07 December 2011 05:14 AM
  • Total Posts: 84
  • Joined: 09 November 2011 05:37 PM

Hi,i am a newbie,
can i get the diffuse,ambient,specular components of a light???not just a color~



Replies: 0
avatar
  • stig atle
  • Posted: 07 December 2011 05:07 PM
  • Location: Kristiansand - Norway
  • Total Posts: 193
  • Joined: 20 December 2006 03:43 AM
  • Permlink of this post

there is only diffuse color in the lights.
ambient it set in the environment dialog and is global, unless you override it in the materials.
specular is also set in the materials - not the lights.

so to get the things you mention (except diffuse) then you have to get it from the materials on the objects.

Can you please elaborate on what you want to do?



http://www.stigatle.net

Replies: 0
avatar

stig atle is mostly right.

Thought light might affect just a specific shading component. These are checkboxes: affect diffuse, ambient only, specular only and GetAffectDiffuse, GetAffectSpecular and GetAmbientOnly on SDK side

This however, does not change the fact that light will return only one color. To get different ones you’d need to setup three different lights.



Replies: 0