Call for Submission
NAB 2012 Best of the Best Show Reel
Submit your work today!
  • 1/3
You are here: Forum Home / Autodesk 3ds® Max® / SDK / creating daylight system in plugin.
  RSS 2.0 ATOM  

creating daylight system in plugin.
Rate this thread
 
36802
 
Permlink of this thread   Subscribe to this thread
avatar
  • kerry@cds
  • Posted: 17 November 2009 08:31 PM
  • Total Posts: 1
  • Joined: 18 November 2009 02:42 AM

I am writing an importer to load scenes from our app into Max 9.

I want to be able to create a daylight system using the mrSky, mrSun and mrPhysicalSky when the scene is imported.

The documentation is a little light on here, but I think that I have to create the daylight system using the DAYLIGHT_CLASS_ID, (or maybe construct the Sunlight object directly).
I think I then have to use the NatLightAssembly class to assign the sky and sun that I want to use.
However, I am not sure how I would specify the mrSky and mrSun.

For the physical sky, I think I need to somehow create a mrPhysicalSky shader and assign it to the scene environment map.
However, I cannot find anywhere (in the docs, or google) which explains how to create mental ray shaders via the api.
I have found documentation on how to create shaders once I have the imrShaderCreation class, but not how to get that.

Any help would be appreciated as it seems that this should be a relatively simple procedure, but I think that I am heading in the wrong direction with this.

Thanks.



Replies: 0




   
  Settings Choose Theme color: