Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Studio Chat / Global ambient light ?!?

Author
Message
HYDRAK
1
Years of Service
User Offline
Joined: 9th Sep 2020
Location:
Posted: 5th Jan 2021 00:30
Hi all, I try to understand how can i move around the Global ambient light, when you start a new project there is already one source of light, with SetSunColor(r,g,b) you can change the color but how can i move it? i wold like to link the position or rotation to a virtual joystick but i can t find any command that actually control the position of the "Sun"... any idea?
Thank you for your time
blink0k
Moderator
8
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 5th Jan 2021 04:55
SetSunDirection()
Also look at SetAmbientColor()
Always handy to search for commands here
HYDRAK
1
Years of Service
User Offline
Joined: 9th Sep 2020
Location:
Posted: 5th Jan 2021 16:08 Edited at: 6th Jan 2021 16:27
Thank you blink0k ! I do not believe that I have not seen it ... I found Set SunColor but I am missing SetSunDirection ()
, I have that page constantly open

Ps. Actually SetSunDirection give the direction of the light, I look for the coordinate of the Sun, I would like to try emulate a cycle of day and night..
blink0k
Moderator
8
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 6th Jan 2021 20:53 Edited at: 6th Jan 2021 20:54
I think the sun is isometric so there is no point (Think of light being emitted from a giant sheet that stretches to infinity) . What are you trying to do?
Maybe you could use a poin light?
HYDRAK
1
Years of Service
User Offline
Joined: 9th Sep 2020
Location:
Posted: 7th Jan 2021 00:14
I would like to add a day / night cycle to the game, perhaps 2 points of light 1 for the sun and 1 for the moon, moving along an ellipse. With origin of the ellipse in the center of the map.
Would it be wise to disable the "Sun" and use two points of light?
Could knowing how to use Shaders help me achieve my goal?
Thank you for you time blink0k
blink0k
Moderator
8
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
HYDRAK
1
Years of Service
User Offline
Joined: 9th Sep 2020
Location:
Posted: 7th Jan 2021 17:12
Thank you for show me this server discord how can i talk with Kevin Cros or see that bit of work? Gabbitt 3D is the official server of the game creators? or there is another server?
blink0k
Moderator
8
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 7th Jan 2021 22:30
I sent you a PM

Login to post a reply

Server time is: 2021-09-19 21:53:37
Your offset time is: 2021-09-19 21:53:37