Skybox improvements

Ideas and suggestions for how to improve the Warzone 2100 base game only. Ideas for mods go in Mapping/Modding instead. Read sticky posts first!
User avatar
aubergine
Professional
Professional
Posts: 3462
Joined: 10 Oct 2010, 00:58

Re: Skybox improvements

Post by aubergine »

setSunIntensity() -- https://warzone.atlassian.net/wiki/page ... d=15269897

setSunPosition() -- https://warzone.atlassian.net/wiki/page ... d=15269895

Any help on documenting the sun functions much appreciated ;)

setWeather() -- https://warzone.atlassian.net/wiki/page ... d=15269899

Any help with screenshots showing rain or snow for setWeather() documentation much appreciated ;)

There is still no function to change the skybox itself, eg. change it do a different sky image. Ideally we'd want something like:

setSky(newImage, time); // where 'time' is the amount of time the transition takes, defaulting to 10000ms

getSky(); // returns filename of current sky image

setSkyRotation(speed); // speed 0 = sky does not auto-rotate

getSkyRotation(); // returns current rotation speed

As for WZ not suiting dark skies... viewtopic.php?f=49&t=6005&start=345#p106537
"Dedicated to discovering Warzone artefacts, and sharing them freely for the benefit of the community."
-- https://warzone.atlassian.net/wiki/display/GO
Per
Warzone 2100 Team Member
Warzone 2100 Team Member
Posts: 3780
Joined: 03 Aug 2006, 19:39

Re: Skybox improvements

Post by Per »

See b4ed741ee1cf0ef75c2b13b673e5bfa4438d5fcc. A bit experimental at the moment. The texture name is either a string pointing to a texture page name that is already loaded through the WRF system, or a new file that can be loaded from existing texture paths. I don't really know the limitations of this, as I have not tested it much.
User avatar
aubergine
Professional
Professional
Posts: 3462
Joined: 10 Oct 2010, 00:58

Re: Skybox improvements

Post by aubergine »

Yay, thanks Per! Added initial draft of docs page: https://warzone.atlassian.net/wiki/page ... d=16023782
"Dedicated to discovering Warzone artefacts, and sharing them freely for the benefit of the community."
-- https://warzone.atlassian.net/wiki/display/GO
User avatar
NoQ
Special
Special
Posts: 6226
Joined: 24 Dec 2009, 11:35
Location: /var/zone

Re: Skybox improvements

Post by NoQ »

Wow. If it works, maybe load terrain similarly? :o