Shaders

If you're looking for mapping help or you reckon you're a mapping guru, post your questions / solutions here

Moderator: Moderators

Post Reply
crossboy
Private
Posts: 3
Joined: Sun Feb 02, 2003 8:19 pm
Location: London

Shaders

Post by crossboy »

Does anyone know how to create shaders for a map. My map name is test_eagle, so I would want the shader, test_eagle.shader (i think), but i have no idea of how to make this or what it should contain.

I would be very grateful if one of you could help me out.

Thanks in advance!

Crossboy
User avatar
wacko
Field Marshal
Posts: 2085
Joined: Fri Jul 05, 2002 8:42 pm
Location: Germany

Post by wacko »

If you won't use new textures or old ones with a altered behavior, you need no shaders. But if you do:
Try viewtopic.php?t=1444, there we explained a little bit. Also you should study the original shaders used in MOHAA. They can be found in the pak0.pk3 under scripts and for new textures with the same settings as original textures, you can copy the shader-info into your new .shader file.
For personal use, you can put the textures in folder MOHAA/main/textures/whatulike/ and the shader-info(s) in a file MOHAA/main/scripts/whatulike.shader. This way, hey are easily to access for correction or adjustment.
For sharing your map including these new textures, you must collect all files in a new pk3
crossboy
Private
Posts: 3
Joined: Sun Feb 02, 2003 8:19 pm
Location: London

Post by crossboy »

Thank you very much for your help, I'll give it a go right now!
User avatar
mohaa_rox
Field Marshal
Posts: 2760
Joined: Mon Nov 11, 2002 7:05 am
Contact:

Post by mohaa_rox »

Wacko wrote:If you won't use new textures or old ones with a altered behavior, you need no shaders.
It's best to use shaders for custom textures. More realistic.
Live to map, not map to live.
-mohaa_rox, .map
moderator
User avatar
wacko
Field Marshal
Posts: 2085
Joined: Fri Jul 05, 2002 8:42 pm
Location: Germany

Post by wacko »

Reading this line myself again, I found it a little confusing myself.
What I wanted to say was, that crossboy might have thought, that he would have to make a new .shader for a new map in any case. This is not so: He would only need to make a new .shader, if he had added new textures and if he used old textures but with a new behavior. In these cases he will ofcourse need a new .shader for them.
TheStorm
Captain
Posts: 233
Joined: Mon Oct 07, 2002 7:45 am
Location: Gavle, Sweden
Contact:

Post by TheStorm »

If you don't use custum textures then the only shader you need to make is the one for the "loading screen" but if you don't have that either then you don't need to make any shaders!
TMT admin, visit www.modtheater.com
HITP Lead Mapper
Member of Electronic Arts MOHteam
crossboy
Private
Posts: 3
Joined: Sun Feb 02, 2003 8:19 pm
Location: London

Post by crossboy »

Thank you very much lads. I just need to make a shader for a couple of custom textures of mine then. Is it one shader per custom texture?
User avatar
wacko
Field Marshal
Posts: 2085
Joined: Fri Jul 05, 2002 8:42 pm
Location: Germany

Post by wacko »

One shader-info per texture, yes, but you can put all in one file e.g. per directory as you will see when studying the original ones.
User avatar
mohaa_rox
Field Marshal
Posts: 2760
Joined: Mon Nov 11, 2002 7:05 am
Contact:

Post by mohaa_rox »

It's best to use shaders. When you shoot, stuff fly out. Pretty cool. When you walk on it, there's the sound.
Live to map, not map to live.
-mohaa_rox, .map
moderator
Post Reply