Introduction of skybox texture overlays:
Currently, we have:Code: Select all
player:set_sky("#ffffff", "dynamic")
Code: Select all
player:set_sky("#ffffff", "skybox",
{
"texture_top.png",
"texture_bottom.png",
"texture_left.png",
"texture_right.png",
"texture_back.png",
"texture_front.png"
})
The expansion I'm thinking of is:
Code: Select all
player:set_sky("#fog?", "dynamic", -- fog should be determined from the horizon tonemap
{ -- overlay skybox textures with transparency above the stars
"top.png",
"bottom.png",
"left.png",
"right.png",
"back.png",
"front.png"
}
{ -- overlay skybox with transparency behind the stars (to show the dynamic skybox)
"top.png",
"bottom.png",
"left.png",
"right.png",
"back.png",
"front.png"
}
{ -- control the tonemaps for the sky colours to blend.
"tonemap_top.png", -- sets the sky colour when you look up
"tonemap_bottom.png", -- the sky colour when you look down
"tonemap_mid.png", -- the horizon sky colour
"tonemap_star_brightness.png", -- how bright are the stars in the sky?
"tonemap_star_colour.png", -- what colour are these stars? (use the existing 16x16 palette system for nodes)
"tonemap_star_time.png" -- can we see these stars during the day (may not be used, see the first star option.)
"tonemap_skybox_front.png" -- control the opacity of the first skybox table
"tonemap_skybox_rear.png" -- control the opacity of the second skybox table
})
The new part allows tonemap control of star colours, star brightness (and when they'll appear.), and sky colours.
I've made a few mockups to show what this would look like, these are not part of the engine:
Sunset with Sun tonemap enabled.Winter dusk with stars.
Nebula on a cloudless night.
Uses:
A skybox where the skies have visible moons / planets may exist and obscure the dynamic starfield..A nebulae that hangs in the background and is only visible at night.
Changing the skybox tonemaps to simulate seasonal changes.
Having astronomical events in the sky, etc.
Couple of notes:
The overlaid skyboxes must rotate with the dynamic sky, otherwise, it'll look pointless to have.Supplying "" or nil to a tonemap will use the default dynamic skybox settings.
The format for these may have to change, but RBA's tonemap topic is a good start:
viewtopic.php?p=150727
To finish:
RBA implemented sun and moon tonemaps a while ago, why not extend them and their feature set to the rest of the skybox?Edits: Jeez BBCode has crap formatting.