GetAltitudeAzimuth

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

THREAD CLOSED
 
Thread Tools Search this Thread Display Modes
Old 03 March 2013   #1
GetAltitudeAzimuth

I am trying to print the altitude and azimuth in the listener but don't know how to call this function.

<void>GetAltitudeAzimuth <time>time <&float>altitude <&float>azimuth

There is no other documentation I can find on this. Can someone help me out?
__________________
www.davetyner.com
 
Old 03 March 2013   #2
Originally Posted by em3: I am trying to print the altitude and azimuth in the listener but don't know how to call this function.

<void>GetAltitudeAzimuth <time>time <&float>altitude <&float>azimuth

There is no other documentation I can find on this. Can someone help me out?


where did you get this function?
 
Old 03 March 2013   #3
Max 2012 Help

<void>GetAltitudeAzimuth <time>time <&float>altitude <&float>azimuth altitude is In and Out parameter azimuth is In and Out parameter Returns the altitude and azimuth values corresponding to the time given as first argument into the by-reference variables given by the second and third argument.
__________________
www.davetyner.com
 
Old 03 March 2013   #4
Originally Posted by em3: Max 2012 Help

ok... it's a method of IDaylightSystem interface. so to get it works you have to call:

 altitude = azimuth = 0
 <DaylightAssemblyHead>.GetAltitudeAzimuth currenttime &altitude &azimuth
 

where <DaylightAssemblyHead> is daylight system group head
 
Old 03 March 2013   #5
Thank you Denis. I did that but it just returns "OK"

theInt = DaylightSystemFactory2.Create sunClass:mr_Sun skyClass:mr_Sky
--> <MixinInterface:IDaylightSystem>
theInt.getSun()
--> mr Sun
theInt.getSky()
--> mr Sky
theInt = DaylightSystemFactory2.Create sunClass:DirectionalLight
--> <MixinInterface:IDaylightSystem>
theInt.getSun()
--> Free Directional Light
theInt.getSky()
--> Skylight
altitude = azimuth = 0.0
aa = $Daylight001.GetAltitudeAzimuth currenttime &altitude &azimuth
theint
__________________
www.davetyner.com
 
Old 03 March 2013   #6
it puts values in altitude and azimuth in my sample. get it from there
 
Old 03 March 2013   #7
Originally Posted by denisT: it puts values in altitude and azimuth in my sample. get it from there


DOH! Thank you Denis!
__________________
www.davetyner.com
 
Old 03 March 2013   #8
for anyone who might be doing this the azimuth and altitude are returned in radians which need to be converted to degrees.

az = ((180*azimuth)/pi)
__________________
www.davetyner.com
 
Old 03 March 2013   #9
Thread automatically closed

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.
 
Thread Closed share thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 10:58 PM.


Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.