Garux / netradiant-custom

The open-source, cross-platform level editor for id Tech based games.
https://garux.github.io/NRC/
Other
334 stars 59 forks source link

Decal Projected Road #214

Open Baker7 opened 2 months ago

Baker7 commented 2 months ago

Hey Garux, just sharing something I made that ... well for me for now ... is going to change everything ...

Decal projected roads via map preprocessing ...

(These pics were initial tests .. I don't claim they look great, I could do way better with the appearance, this was a test subject).

autoroad

decal_hills2

I didn't actually put that in the map compiler, I made Zircon engine (my modified DarkPlaces) act as command line .map tool if -csg is specified in the command line ... and it preprocesses the .map file looking for info_decal and looks for a start and end point and reads the "texture" and the "step" and the "target".

Then it creates a series of decal projections from A to B at the specified interval, inserting _decal and info_nulls to paint the road onto the map during the map compile process.