Product Chat / sun direction?

Author
Message
imothep85
18
Years of Service
User Offline
Joined: 27th Mar 2006
Location: Belgium
Posted: 22nd Jul 2017 23:24
How can i change the sun direction, i created a new skybox, but i can't change the direction the sun influence my scene.

Attachments

Login to view attachments
OldFlak
GameGuru TGC Backer
9
Years of Service
User Offline
Joined: 27th Jan 2015
Location: Tasmania Australia
Posted: 23rd Jul 2017 01:58 Edited at: 23rd Jul 2017 02:06
Hi imothep85,

At present you can only change sun rotation, so it lines up with the sun in your skybox image, but shadows always fall the same direction\length. So an overhead sun would not look right with the way shadows fall.

You specify the rotation in the skyspec.

Change the value in this line: SunRotation = 105 ( is a 360 degree circle)


Reliquia....
aka OldFlak
Intel(R) Core(TM) i3-4160 @ 3,60GHz. 8GB Ram. NVidia GeForce GTX 750. Acer 24" Monitors x 2 @ 1920 x 1080. Windows 10 Pro 64-bit.
PM
Teabone
Forum Support
18
Years of Service
User Offline
Joined: 8th Jun 2006
Location: Earth
Posted: 15th Aug 2017 20:00
I hope when the new skybox LUA command controls come out that the sun ones do as well around the same time.
Twitter - Teabone3 | Youtube - Teabone3 | Twitch - Teabone3 | TGC Assets - Store Link

i7 -2600 CPU @ 3.40GHz - Windows 7 - 8GB RAM - Nivida GeForce GTX 960

Login to post a reply

Server time is: 2024-10-06 10:26:18
Your offset time is: 2024-10-06 10:26:18