Page 1 of 1

Custome DDS texture...????

Posted: Wed May 18, 2005 11:07 pm
by vat69
How to add custome (DDS and jpg copy of dds)texture.... i try to add,but I can't see texture in MohRadiant....what i need to do???
//used script:
textures/floors/b_sidewalk02
{
qer_keyword concrete
qer_keyword road
qer_keyword natural
qer_keyword dirt
qer_keyword stone
surfaceparm stone
{
map textures/floors/b_sidewalk02.tga
depthWrite
rgbGen identity
}
{
map $lightmap
rgbGen identity
blendFunc GL_DST_COLOR GL_ZERO
depthFunc equal
}
}

Posted: Thu May 19, 2005 12:25 am
by Axion
In the shader you just posted, you're using a .tga extension. Change it to whatever file type you modified your dds texture into and see if works then.

Posted: Thu May 19, 2005 5:52 am
by vat69
If I change with .tga extension...no problem,i see texture in Radiant...compiling..ok...too. :( I no idea where is the problem :(

Posted: Thu May 19, 2005 5:30 pm
by diego
You should probably specify an editor image.

qer_editorimage textures/floors/b_sidewalk02.tga


I'm using DDS textures in my map and everything works fine. Make sure your jpg images are saved as "baseline" and that both versions are the same resolution. You can test the ingame results by removing the jpgs from your texture folder and turning your texture compression off and on. Without the jpgs, your surfaces will not draw when you turn it off.


On a sidenote, you should probably add your mapname to your shader paths just to make sure you will not conflict with someone else's shader.

So then your shader and texture paths would be:

textures/yourmapname/floors/b_sidewalk02

Posted: Thu May 19, 2005 6:50 pm
by vat69
I find the problem....that texture b_sidewalk02.dds is from max payne and that is dds(DTX5)extension=alpha texture(100%).tga...I just save as dds(DTX1)no alpha.I use nv_dds plugins for PhotoShop.... :D .thanks for help.