Quark and Shaders

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
Morrog
Posts: 58
Joined: Mon Dec 13, 2004 5:13 am

Quark and Shaders

Post by Morrog »

What I'm trying to do is apply normals to my Quake 3 level and have that normal map effect the lightmaps that are generated by q3map2build. I'm not doing any shaders or normal mapping in my engine, I just want the lightmaps affected.

From what I understand I can do a shader like this:

Code: Select all

textures/rusted_metal1.jpg

{

q3map_lightmapsamplesize 1

q3map_normalimage textures/normal_1.jpg

{

map $lightmap

}

{

map textures/rusted_metal1.jpg

blendFunc GL_DST_COLOR GL_ZERO

}

}
and that will apply the normal map during BSP compilation/lightmap generation.
What I don't understand is how I apply that shader to a brush? I'm using Quark. Does anyone know? Or does anyone know what I have to modify in the .MAP file?
MessiaH
Posts: 55
Joined: Tue Jul 06, 2004 6:37 pm
Location: RUSSIA

Post by MessiaH »

I don't know how to do it in QuArK,because I'm Q3Radiant user.
In Q3Radiant this is done the same way as with usual textures:
select a brush or face of a brush,and click texture or shader in texture view window.
Post Reply