View Full Version : SkyShader Azimuth

11 November 2003, 06:07 AM
Here's one:

Can anyone tell me how azimuth and elevation are parametized in Maya?

The reason that I want to know is that I want to connect the U&V position of a light on a surface sphere with the position of the sun on the shader. So here's the network:

SkySphereShape.worldSpace[0]>closestPointOnSurface. inputSurface


now the closestPointOnSurface returns a U&V co-ordinate which denotes where my light is across the surface , 2 floats with a min of 0, max of 1(because they are linked to the surface:p ), so I'm almost there, but, the numbers for azimuth and elevation are meaningful outside of (0,1) I want to know what constant I have to multiply by to make the movement of my scene light link up with the shader sun....


11 November 2003, 06:49 PM
Environment Sky Attributes


The angle (in degrees) of elevation of the sun relative to the floor. The valid range is -90 to 90. The slider range is 0 (sunrise/sunset) to 90 (midday). The default value is 45.


The angle (in degrees) of the sun in the sky about a vertical vector. The valid range is 0 to 360. The slider range is 0 to 360. The default value is 145.

this is actually from the manuals, so i'm a liiiiittle reluctant to actually post this... is this what you meant, or did you have something else in mind?


CGTalk Moderation
01 January 2006, 06:00 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.