Custome DDS texture...????

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

Moderator: Moderators

Post Reply
vat69
Private
Posts: 6
Joined: Mon May 16, 2005 7:59 pm

Custome DDS texture...????

Post 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
}
}
User avatar
Axion
Major General
Posts: 683
Joined: Mon Sep 29, 2003 5:14 am
Location: Northern California
Contact:

Post 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.
"The work of a thousand years is nothing but rubble."
- Dr. Carl Goerdeler (1943)
Visit my mapping site: http://www.freewebs.com/axion9
Image
vat69
Private
Posts: 6
Joined: Mon May 16, 2005 7:59 pm

Post 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 :(
User avatar
diego
Captain
Posts: 245
Joined: Sun Dec 21, 2003 10:47 pm

Post 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
Diego
vat69
Private
Posts: 6
Joined: Mon May 16, 2005 7:59 pm

Post 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.
Post Reply