Page 1 of 1

custom texture prob

Posted: Sat May 08, 2004 1:03 pm
by At0miC
I made a custom texture in jpg format (130 x 40 pix, RGB-colors 24bit, resolution 72 dpi, subformat 4:2:2), I putted the texture in main/textures/custom. I can load the texture in mohradiant but I cant see it in the texture list.

help would be nice :D

thnx At0miC

Posted: Sat May 08, 2004 1:08 pm
by blue60007
Did you make a shader for it?

Posted: Sat May 08, 2004 1:09 pm
by At0miC
a shader?? :P psssst can you tell me how to do that :P

Posted: Sat May 08, 2004 1:17 pm
by blue60007
Ahh, there's your problem...


Make a text file in Notepad and save it as mymapname.shader

Paste this into it:

Code: Select all

textures/custom/customtexture
{
qer_keyword brick //put your keywords here (can be searched), if you don't want your textures to show up and have people accidentally use on of yours you could just make it mymapname or something
qer_keyword stone
qer_keyword wall
surfaceparm stone //put the surface type here
{
map textures/custom/customtexture.tga //I've always heard this must be .tga even if it's a jpg...
depthWrite
rgbGen identity
}
{
map $lightmap
rgbGen identity
blendFunc GL_DST_COLOR GL_ZERO
depthFunc equal
}
}




Place this in a /scripts/ foler in /main/ or /mainta/ or /maintt/

If this confused you more, try reading this

Posted: Sat May 08, 2004 1:47 pm
by At0miC
I did what blue said but it still doesn't work, I cant find it in radiant.

I putted the texture in textures/custom/
and the shader in scripts/

Here I have a pk3, plz look at it to find out what I did wrong:
http://www.mm2x.com/upload/files/texture.pk3

Thnx again, At0miC

shader

Posted: Sat May 08, 2004 1:59 pm
by tltrude
It is good to have a shader for your new texture. But one is not needed to see it in the texture window. Although, you must have "Show Non-Shader Textures" set in preferences.

Posted: Sat May 08, 2004 2:00 pm
by blue60007
Hmm, it all looks fine, did you try restarting radiant?

Also compile the map and see if you can get the sounds working, see if you get stone sounds and effects, then you have the shader working... :?

Posted: Sat May 08, 2004 2:03 pm
by At0miC
Yeah srry my fould :) I can see the texture in radiant, good thinking about the restart :P

Thnx all

Posted: Sat May 08, 2004 2:06 pm
by blue60007
{-At0miC-} wrote:Yeah srry my fould :) I can see the texture in radiant, good thinking about the restart :P

Thnx all
Yay! :P

sometimes a mere reload textures doesn't do it...

try

Posted: Sat May 08, 2004 2:06 pm
by tltrude
try this. Is it wood?

Code: Select all

textures/custom/kopie
{ 
	qer_editorimage textures/custom/kopie.tga
	qer_keyword custom //put your keywords here
	surfaceparm wood //put the surface type here 
	{ 
		map textures/custom/kopie.tga
		depthWrite 
		rgbGen identity 
	} 
	{ 
		map $lightmap 
		rgbGen identity 
		blendFunc GL_DST_COLOR GL_ZERO 
		depthFunc equal 
	} 
} 

Posted: Sat May 08, 2004 2:29 pm
by At0miC
It is wood, thnx again

At0miC

custom

Posted: Sat May 08, 2004 2:55 pm
by tltrude
Make sure that texture pops up when you type "custom" in the keyword box. If it does not, you may need to add a text file (shaderlist.txt) to the scripts folder. The text file should have any new keywords listed.

Code: Select all

custom
You may already have that text file in a mod pk3 in main.

Posted: Sat May 08, 2004 3:28 pm
by At0miC
I don't understand. :oops:

Posted: Sat May 08, 2004 3:46 pm
by lizardkid
you know when you pull down the list of textures and it has a whole bunch of stuff like algiers and general_structure?
well yours would appear as custom when you put that txt file in.

Posted: Sat May 08, 2004 3:51 pm
by At0miC
I can see custom in the list so everything is okay then