Hey guys, those both work great, but after looking at what I need, I'm not sure I will be able to have both of those values to transform.
I'm using my blitz app to export and import from a new free rendering engine called indigo for rendering scenes. Indigo's skylight uses a single 3-component vector for indicating the sun's direction... Here's the explanation from indigo's site:
"The sundir element defines the 3-vector direction towards the sun. the Z axis is up, e.g. (0,0,1) places the sun directly overhead."
So when I load in a scene that's defined in indigo's format, I'll only have that one set of vectors. How can I rotate the object representing the sunlight work with those? I think that I can use the exact code you supplied for some other features, but I don't know if it will apply directly to this case... will it?
thanks so much for your help on this -- please let me know if you have some more ideas!
roland
I'm using my blitz app to export and import from a new free rendering engine called indigo for rendering scenes. Indigo's skylight uses a single 3-component vector for indicating the sun's direction... Here's the explanation from indigo's site:
"The sundir element defines the 3-vector direction towards the sun. the Z axis is up, e.g. (0,0,1) places the sun directly overhead."
So when I load in a scene that's defined in indigo's format, I'll only have that one set of vectors. How can I rotate the object representing the sunlight work with those? I think that I can use the exact code you supplied for some other features, but I don't know if it will apply directly to this case... will it?
thanks so much for your help on this -- please let me know if you have some more ideas!
roland