Page 1 of 1
how couple environment texture rotation to sun direction?
Posted: Sun Sep 04, 2016 12:52 pm
by 3dworks
i try to match the rotation of the reflected environment texture to my 'sun by direction' rotation. what kind of node/math setup should i use when doing so? in order to get the direction of the sun i can use the 'forward' directional vector from the item info node, but then, how convert this to degrees of rotation? i also need to be able to enter a manual offset of rotation in degrees, as each environment texture has different fixed sun positions. see a screenshot here
thanks for your input
markus
Re: how couple environment texture rotation to sun direction?
Posted: Tue Sep 06, 2016 11:09 am
by juanjgon
This setup should work. The vector to scalar node is in "X Channel" mode to get the heading, and the multiply node is inverting the angle, so set the B parameter to -1.0.
Thanks,
-Juanjo
Re: how couple environment texture rotation to sun direction?
Posted: Wed Sep 07, 2016 3:56 pm
by 3dworks
thanks juanjo, i guess it is solution for direct light orientation. unfortunately, i have a setup with a keyframed targeted light, so basically i have to find out first how to calculate the directional vector for a light - target null, then feed your nodes with that...
anyone can help me with that part? in other words, a nodal setup to calculate right up and forward from a object with is rotated because of poniting at a target.
cheers
markus
Re: how couple environment texture rotation to sun direction?
Posted: Thu Jul 26, 2018 9:43 am
by VIZUALIZACE-CZ
Hi juanjgon
how should the Node Editor look like when I use Light info and Direction instead of Item info?
I'm trying to find a way to rotate the HDR Enviroment Texture map (Heading Rotation) with Direct Light in the scene (I'm using the keyframe option)