I made a custom texture but every time I try to load it in radiant, it crashes. The texture is a .jpg located in textures/gustav_gun. The shader is located in scripts/ and called gustav_gun.shader
Here is what is in the shader:
textures/gustav_gun/dora_blueprints1
{
surfaceParm nonsolid
qer_keyword gustav_gun
{
map textures/gustav_gun/dora_blueprints1.tga
nextbundle
map $lightmap
}
}
Anyone know what is wrong?
Custom textures not loading in radiant
Moderator: Moderators
-
Bjarne BZR
- Site Admin
- Posts: 3298
- Joined: Wed Feb 05, 2003 2:04 pm
- Location: Sweden
- Contact:
Re: Custom textures not loading in radiant
Shouldent it be 'map textures/gustav_gun/dora_blueprints1.jpg' ?matt_moh wrote:map textures/gustav_gun/dora_blueprints1.tga
And put 'qer_editorimage textures/gustav_gun/dora_blueprints1.jpg' above the 'qer_keyword' entry.
And replace 'qer_keyword gustav_gun' with 'qer_keyword metal'
-
[AoHx]Omnicient
- Corporal
- Posts: 44
- Joined: Sat Jul 26, 2003 1:44 am
Thanks for trying to help, but for some reason it still isn't working.
Here is the new script:
textures/gustav_gun/dora_blueprints1
{
surfaceParm metal
qer_editorimage textures/gustav_gun/dora_blueprints1.tga
qer_keyword metal
{
map textures/gustav_gun/dora_blueprints.tga
nextbundle
map $lightmap
}
}
I changed the 'qer_keyword' to metal and now even though radiant doesn't crash anymore, the texture still fails to load.
I do remember reading on this website that even though your texture may be a .jpg, it still needs to be called a .tga in the shader.
Also, I would like to be able to make all my textures .tga files but photoshop doesn't convert them into the right type of tga files. The .tga file will load in radiant, but when I compile my map and open it up in spearhead, the server shuts down and I get this error message in the console:
ERROR: Load TGA: Only type 2 (RGB), 3 (gray), and 10 (RGB) TGA images supported.
If anyone can show me a working .tga converter or can show me how to make my .jpg work I would realy appreciate it.
Here is the new script:
textures/gustav_gun/dora_blueprints1
{
surfaceParm metal
qer_editorimage textures/gustav_gun/dora_blueprints1.tga
qer_keyword metal
{
map textures/gustav_gun/dora_blueprints.tga
nextbundle
map $lightmap
}
}
I changed the 'qer_keyword' to metal and now even though radiant doesn't crash anymore, the texture still fails to load.
I do remember reading on this website that even though your texture may be a .jpg, it still needs to be called a .tga in the shader.
Also, I would like to be able to make all my textures .tga files but photoshop doesn't convert them into the right type of tga files. The .tga file will load in radiant, but when I compile my map and open it up in spearhead, the server shuts down and I get this error message in the console:
ERROR: Load TGA: Only type 2 (RGB), 3 (gray), and 10 (RGB) TGA images supported.
If anyone can show me a working .tga converter or can show me how to make my .jpg work I would realy appreciate it.
most if not all of the shaders I have seen have some kind of blend func
maybe use this one as a template and add the blendfunc to your shadertextures/algiers/gasvent_1
{
qer_keyword trim
qer_keyword metal
surfaceparm metal
{
map textures/algiers/gasvent_1.tga
depthWrite
rgbGen identity
}
{
map $lightmap
rgbGen identity
blendFunc GL_DST_COLOR GL_ZERO
depthFunc equal
}
}
