Jump to content

Realtime Lighting Editor


Recommended Posts

The GL2 renderer (rend2) will use realtime lighting as an option in addition to lightmaps. Which of course means that you can preview your lights and get the mood just right, unlike in Radiant.

There will be an ingame lighting editor which you can use to add, remove, and adjust lights on your level. These lights will get saved to a .rtl file with the same name as the map (t2_trip.rtl for instance). A .rtl will get automatically generated at level start if one does not exist, based on a special "realtime_light" entity (which gets discarded after map load, so it doesn't affect the entity limit).

 

No screenshots of this yet, just code, which I need @@SomaZ to assist me in finishing.

I've got the code written, except for the saving and loading. Just the basic console commands for right now.

https://pastebin.com/StwxpyiK

 

It's currently set up like a gamecode file - you'll want it to probably live on the client.

SomaZ, afi and Archangel35757 like this
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...