|
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.
|
|
|