Telling Radiant that a texture is a clip texture

Discussion for Level editing, modeling, programming, or any of the other technical aspects of Quake
Post Reply
dichtfux
Posts: 571
Joined: Thu Feb 02, 2006 10:51 pm

Telling Radiant that a texture is a clip texture

Post by dichtfux »

Does anyone know how to tell Radiant that a texture is a clip texture?

I'm creating a map for quake2world atm and they're using a custom clip texture. It works fine in-game, but I can't use View-Filter->Clips in Radiant, which is pretty annoying (clips are not filtered when I use it).

I've had a look at the file in radiant/games/q2.game and it's got the following lines (the one for q2w looks the same, at least for those lines):

Code: Select all

...
cont7="mist"
cont17="playerclip"
cont18="monsterclip"
cont19="current_0"
...
Looks like it has something to do with it, but I don't understand what to do. Ideas, anyone?

I'm using the latest Radiant 1.5 from svn on linux/x86, downloaded & compiled 2 days ago.
Last edited by dichtfux on Tue Mar 25, 2008 9:23 pm, edited 1 time in total.
[color=#FFFFFF][url=http://maps.rcmd.org]my FPS maps[/url][/color]
obsidian
Posts: 10970
Joined: Mon Feb 04, 2002 8:00 am

Re: Telling Radiant that a texture is a clip texture

Post by obsidian »

AFAIK, Radiant just parses the name of the shader. For instance, skip won't be filtered with hints, but if you rename it hintskip, it will.
dichtfux
Posts: 571
Joined: Thu Feb 02, 2006 10:51 pm

Re: Telling Radiant that a texture is a clip texture

Post by dichtfux »

Hm, the texture is already named common/clip.

(Note that this is q2 and that the default clip texture is e1u1/clip or something like that.)
[color=#FFFFFF][url=http://maps.rcmd.org]my FPS maps[/url][/color]
Ingar
Posts: 1
Joined: Tue Mar 25, 2008 6:59 pm

Re: Telling Radiant that a texture is a clip texture

Post by Ingar »

I solved this by creating a shaderlist.txt and common.shader in $datadir/default/scripts.
I also added the following to q2w.game, it tells radiant where it can find the shader scripts:

Code: Select all

shaderpath="scripts"
I've tried this with gtkradiant 1.5 and it resolves the clip issue. As a bonus,
I added semi-transparency to common/clip, common/hint and common/trigger.

The relevant changes are in quake2world SVN :)
pjw
Posts: 860
Joined: Sun May 07, 2000 7:00 am

Re: Telling Radiant that a texture is a clip texture

Post by pjw »

Thanks for the enlightenment Ingar--you kick ass!

It's not often that we get a Q2-related question on here... :)
Post Reply