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 Classic Chat / Sun too high

Author
Message
Pfaber1
1
Years of Service
User Offline
Joined: 7th Jan 2018
Location:
Posted: 4th Feb 2019 07:39
Hello. I have created a small 3d world and wish to add a sun in the sky . It works fine apart from the fact it's so high in the sky it's off the page . Any way of moving it?
puzzler2018
User Banned
Posted: 4th Feb 2019 10:01
Its at fixed distance im afraid - could try setsundirection - but I think that's on the X and Z directions and not Y which is what you need.

Perhaps make your own by using a sphere as big as say 2000 and set cull mode to 0 and apply a texture or color

and then add a smaller sphere say 200 x 200 sphere which sits around 1900 mark on the Y

puzzler2018
User Banned
Posted: 4th Feb 2019 10:11
Something like this



Untested
puzzler2018
User Banned
Posted: 5th Feb 2019 22:12
How we doing with this one?
fubarpk
Moderator
14
Years of Service
Recently Online
Joined: 11th Jan 2005
Location: Adelaide
Posted: 5th Feb 2019 22:39 Edited at: 5th Feb 2019 22:42
If you mean agks sky and sun system
SetSunActive( active )
SetSunDirection( vx, vy, vz ) can help position the sun


if your using agks built in skybox
SetSkyBoxVisible( active )
SetSkyBoxSunVisible( visible )
fubar
Rick Nasher
1
Years of Service
User Offline
Joined: 25th Jul 2017
Location: Amsterdam
Posted: 6th Feb 2019 18:59
If you take it too low the earth will scorch! lol
Ortu
DBPro Master
11
Years of Service
Recently Online
Joined: 21st Nov 2007
Location: Austin, TX
Posted: 6th Feb 2019 23:38
Why change the climate? Because dessertification is yummy... *ducks*
http://games.joshkirklin.com/sulium

A single player RPG featuring a branching, player driven storyline of meaningful choices and multiple endings alongside challenging active combat and intelligent AI.
Rick Nasher
1
Years of Service
User Offline
Joined: 25th Jul 2017
Location: Amsterdam
Posted: 7th Feb 2019 10:09
I see a Dune planet coming..

Login to post a reply

Server time is: 2019-04-23 19:56:16
Your offset time is: 2019-04-23 19:56:16