experimental q3map feature: brush content control
Posted: Sat Apr 30, 2005 8:14 pm
I posted this over on the q3map2 forum, but it might be of interest to some people here as well.
http://www.splashdamage.com/index.php?n ... ic&t=11906
Problem:
Some shader keywords (such as nonsolid, *clip, liquid, and so on) affect the contents of a brush rather rather than just a given side. Since shaders are only specified on brush sides, this raises the question of which side specifies the brush contents. In past version of q3map (and q3map2) the 'first' side of the brush was used. Unfortunately, which side is 'first' is not under user control and tends to change every time the map is saved.
Solution:
This patch adds a new compiletime shader keyword
q3map_contentpriority <N>
See the post on SD for full details and download. Be warned that I have only tested this briefly (works for me (tm)) and, although this change is pretty simple, I'm not intimately familiar with the guts of q3map. You have been warned!
Bug reports or general feedback on the idea would be appreciated. If the idea is well received, I'll try to get it into the official distribution.
And BTW, good to see some life around LEM again. My old account (SCDS_reyalP) seems to have gone away, but I was an occasional poster here in the past.
http://www.splashdamage.com/index.php?n ... ic&t=11906
Problem:
Some shader keywords (such as nonsolid, *clip, liquid, and so on) affect the contents of a brush rather rather than just a given side. Since shaders are only specified on brush sides, this raises the question of which side specifies the brush contents. In past version of q3map (and q3map2) the 'first' side of the brush was used. Unfortunately, which side is 'first' is not under user control and tends to change every time the map is saved.
Solution:
This patch adds a new compiletime shader keyword
q3map_contentpriority <N>
See the post on SD for full details and download. Be warned that I have only tested this briefly (works for me (tm)) and, although this change is pretty simple, I'm not intimately familiar with the guts of q3map. You have been warned!
Bug reports or general feedback on the idea would be appreciated. If the idea is well received, I'll try to get it into the official distribution.
And BTW, good to see some life around LEM again. My old account (SCDS_reyalP) seems to have gone away, but I was an occasional poster here in the past.