luciusDXL / TheForceEngine

Modern "Jedi Engine" replacement supporting Dark Forces, mods, and in the future Outlaws.
https://TheForceEngine.github.io
GNU General Public License v2.0
976 stars 71 forks source link

New Dev panel with lighting controls #399

Open kevinfoley opened 6 months ago

kevinfoley commented 6 months ago

Added a new Developer panel to the settings menu, which optionally exposes new controls to dynamically adjust lighting for 3DOs.

The Jedi engine uses 3 directional lights to illuminate 3DO models; however, the position and brightness of each light was hardcoded in the original engine. The lighting controls in the Developer panel allow you to adjust each of the 3 directional lights individually, exposing a capability that was built into the original software engine even back in 1995 but never properly utilized until now.

The Developer panel also includes an optional setting to import all 3DOs with gouraud shading, overriding the shading flags defined in the 3DO. This setting takes effect when models are loaded and therefore requires restarting the engine. tfe_gif_Sat-Mar-30-00_02_53-2024_1 tfe_gif_Sat-Mar-30-00_22_07-2024_0

Currently the lighting settings in the developer panel only support software rendering.

luciusDXL commented 5 months ago

I plan on integrating this PR after the next release (any day now).