I have created this object with the purpose of helping on the orientation of HDRI maps and can be useful to help with nishita too, since working with rotation settings is not so intuitive for many of us and the sun position in HDRI maps variate a lot.
You just need to put the object in your scene and rotate until the shadow of the needle aligns with the point 0º. Then you have the reference of the rotation angles to adjust nishita or the HDRI map to your desired direction.
Ah it’s just that I’m not near my computer (I should avoid using abbreviations ) . Wouldn’t this only work when the camera is aligned to the y-axis? Also, I generally don’t like to have the sun shine head on at the model, I mostly have it as a rim light or at an angle. So if would personally be easier for me to change the mapping and get feedback in realtime.
Well it works! I am not sure if I would find it useful but it is always worth while to think about things.
It occurred to me to add a pointer you could use as a driver to be able to rotate it and automatically update the mapping. Here is the file, try rotating the pointer. When you do the original rotation of the sun dial to line up “0” you would have to rotate the pointer as well. sunRotHelper2.blend (248.0 KB)
Although on second thoughts you would also have to set up the driver each time!
Edit Updated file.
It does not “work” on the camera. It is only a reference object to help you decide the orientation of the sun / shadows showing the reference degrees you need to rotate your scene light system to fulfill your needs.
If you rotate the object so it’s 0 degree aligns with the shadow, then you can use this as a reference for the orientation of the sun / shadows for that specific system and forever.
If you use an HDRI it will show you how many degrees you need to set on the map Z rotation at any moment. It will work until you change the HDRI.
Well, if you prefer adjust by your eye it’s not a problem.
It would be really nice, but it would depend on programming and in this field I am a 0 to the left. I thought to use it with nodes, but nishita sky has no input sockets. I am sure that with HDRI it could be done.
Actually I did it for you (see the file I Linked) I used it to drive the Nitisha rotation value. For an HDRI you can simply right click on the driver (the purple sun rotation value in the Nitisha node) and choose “copy driver”, then in the mapping node of the HDRI right click the z rotation value and choose “paste driver”.
I have updated the file I linked to include the same driver in an hdri setup (I did not plug it into the background as there is no HDRI in the file). You can append you objects and the world settings into new files.
Drivers are soo useful and are well worth grasping the basic concepts it’s not exactly programming!
To setup the driver yourself:
right click the z rotation input field of the pointers transformation properties and choose “copy as new driver”. Then in the Nitisha sun rotation value (or the hdri mapping node z rotation value) right click and choose “paste driver”.
The driver is now done and the sun rotation value will turn purple. The only tricky bit is that the driver will work backwards! So you have to right click the purple value and choose edit driver, change the drivers settings “type” from “average value” to “scripted expression”. Then in the “expression” field add a minus sign “-” before “rotation_euler”.
Edit while I was answering you sent your reply, I am glad that you worked it out!