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
Specs: Apple MacBook Pro M1 max 64GB 2TB, MacOS 12.5 / MacPro 5,1 with NVIDIA GeForce GTX 1080 8G, MacOS 10.13.6 / Mac Pro 5,1 with AMD RX5700 8G, MacOS 12.3.1 / HP Z600 with NVIDIA 3060 RTX 12G, Windows 10 pro + Netstor GPU box, 4 x NVIDIA GTX 980ti 6G.
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, 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
Specs: Apple MacBook Pro M1 max 64GB 2TB, MacOS 12.5 / MacPro 5,1 with NVIDIA GeForce GTX 1080 8G, MacOS 10.13.6 / Mac Pro 5,1 with AMD RX5700 8G, MacOS 12.3.1 / HP Z600 with NVIDIA 3060 RTX 12G, Windows 10 pro + Netstor GPU box, 4 x NVIDIA GTX 980ti 6G.