Jump to content

Home

Shader question


Jesterspaz

Recommended Posts

Posted

i am trying to get some custom textures to work. i have the pk3, and the shader stuff, but what is the default shader script for just a plain ol' /jpg texture. i am getting the holodeck grid when i load the map...

 

therapy anyone?

Posted

If your custom textures are not showing up, make sure you do the sv_pure 0, (yeah, I know you know that already), make sure their dimensions are powers of 2. (512x512, 256x512, etc)

 

Also, make sure you're saving them as 'baseline standard' if you're using Photoshop or something along those lines.

 

I'd go back and double check to make sure that all the dimensions are powers of 2. You never know... ;)

Posted

The default shader script :D

 

textures/folder/texture
{
     {
            map $lightmap
            rgbGen identity
     }
     {
            map textures/folder/texture.tga
            blendFunc GL_DST_COLOR GL_ZERO
     }
}

Posted

What do you mean by 'default'?

 

Do you mean you should give this to every texture in your map?

 

Also, if your textures are in a PK3 you STILL have touse sv_pure 0?

Posted
Originally posted by Machine_IX

What do you mean by 'default'?

Do you mean you should give this to every texture in your map?

 

No I don't. What I mean is if you don't create a shader for your texture, this one is applied.

Posted

That...was completely unnecessary information, Xcom. :D

 

Textures don't need anything by default. Just make a base/textures/yourmapname/ folder (you will likely need to create the textures folder too). That should be it, though.

 

Try running the map in SP if it's a MP map. If you see the textures there and not in MP, that further defines your problem.

 

And no, you shouldn't need to use sv_pure if the map is in a pk3.

Posted
Originally posted by RichDiesal

Textures don't need anything by default.

 

Bah. He asked for it and he got it. ;)

And I didn't say he had to make it.

Posted

No image that a shader is referring to should have any kind of extension. Remove the .jpg at the end of the image path and leave it blank. It will try to find a .tga first and then resort to .jpg.

Posted

That's not what I asked.

 

Are you testing this in its own PK3? If so, are you positive the textures are in that PK3? Go back and double check that all the textures you used are in the PK3 in their appropriate folder.(textures/whatever/)

 

And secondly, if you go into SP mode and type "devmap yourmap" do you see the textures then?

Posted

i dont know what you mean by baseline standard, and what do you mean by outside the pk3, i have a pk3 with the correct structure, and the actual folder with the textures inside, is this wrong or what

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...