scp-fs2open / fs2open.github.com

Origin Repository for SCP FreeSpace 2 Open
https://www.hard-light.net/
Other
399 stars 160 forks source link

FR: Hardcode scalable sphere and cube for volumetric nebulae and asteroid boundaries #6227

Open Durandal-Thoth opened 1 month ago

Durandal-Thoth commented 1 month ago

Similarly to how Freelancer handles asteroids and nebulae as scalable "zones" using an invisible deformable sphere/cube mesh, this proposal would introduce a sphere and cube for freelancer which can be scaled independently on all axes and, ideally, rotated.

These new boundary meshes would be able to define the dimensions of asteroid fields and volumetric nebulae which would look like this - the white ovals in the demonstration gif here are spheres which have been scaled to accomodate debris, asteroids, and nebulae throughout a game area.

https://i.postimg.cc/NFWj7cNX/flms.gif

BMagnu commented 1 month ago

At least for the volumetrics part: Would you expect parts in your sphere to always be completely filled with nebulae, or just partly / randomly populated? Because the former would probably be much easier to accommodate by just making it a pof. Furthermore, do you want more than one sphere / cube per mission? Remember, as of now, we can only have one area of volumetrics per mission, so we'd need to render all together. This is possible, but will obviously suffer from low resolution when stretched over a large area.

Durandal-Thoth commented 1 month ago
BMagnu commented 1 month ago