Sprite texture only visible in lightmap mode?

Discussion for Level editing, modeling, programming, or any of the other technical aspects of Quake
Post Reply
T_Creutzenberg
Posts: 27
Joined: Fri Sep 19, 2008 12:00 pm

Sprite texture only visible in lightmap mode?

Post by T_Creutzenberg »

Hi there! I actually can't find an info that nor was I able to
figure it out myself ...

Is it possible to create a shader for an autosprite so it will
only show up in lightmap mode and not in vertex mode?

I do have an autosprite2 light beam and would like it to
show up only when lightmap mode is activated so it does
not distract too much when you want to play in "lego-quake"
with picmip 5 and vertex light ;)

Is that possible?

Thanks in advance for any help!

Image
User avatar
Hipshot
Posts: 1547
Joined: Sun Jan 20, 2002 8:00 am

Re: Sprite texture only visible in lightmap mode?

Post by Hipshot »

Yes. Add this to the worldspawn.

Code: Select all

Key: vertexremapshader
Value: textures/folder/texture;textures/folder/texture_vertex
Then create the shaders needed.
This will tell the game to use a different shader when playing vertex mode.

I'm using this in the same way it seems you will do. Remove stuff in vertex mode, so they can't be seen. However, the triangles will still be there, just that the effect won't be drawn.
Q3Map2 2516 -> http://www.zfight.com/misc/files/q3/q3map_2.5.16_win32_x86.zip
Q3Map2 FS_20g -> http://www.zfight.com/misc/files/q3/q3map2_fs_20g.rar
GtkRadiant 140 -> http://www.zfight.com/misc/files/q3/GtkRadiantSetup-1.4.0-Q3RTCWET.exe
User avatar
Hipshot
Posts: 1547
Joined: Sun Jan 20, 2002 8:00 am

Re: Sprite texture only visible in lightmap mode?

Post by Hipshot »

Btw, before I saw the hud, I thought this looked like a D3/Q4 level.
Q3Map2 2516 -> http://www.zfight.com/misc/files/q3/q3map_2.5.16_win32_x86.zip
Q3Map2 FS_20g -> http://www.zfight.com/misc/files/q3/q3map2_fs_20g.rar
GtkRadiant 140 -> http://www.zfight.com/misc/files/q3/GtkRadiantSetup-1.4.0-Q3RTCWET.exe
T_Creutzenberg
Posts: 27
Joined: Fri Sep 19, 2008 12:00 pm

Re: Sprite texture only visible in lightmap mode?

Post by T_Creutzenberg »

Great! Thank you very much! That's exactly what I was looking for :D
Post Reply