custom texture prob

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

Moderator: Moderators

Post Reply
User avatar
At0miC
General
Posts: 1164
Joined: Fri Feb 27, 2004 11:29 pm
Location: The Netherlands

custom texture prob

Post 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
blue60007
General
Posts: 1247
Joined: Sun Mar 07, 2004 11:44 pm

Post by blue60007 »

Did you make a shader for it?
Image
User avatar
At0miC
General
Posts: 1164
Joined: Fri Feb 27, 2004 11:29 pm
Location: The Netherlands

Post by At0miC »

a shader?? :P psssst can you tell me how to do that :P
blue60007
General
Posts: 1247
Joined: Sun Mar 07, 2004 11:44 pm

Post 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
Image
User avatar
At0miC
General
Posts: 1164
Joined: Fri Feb 27, 2004 11:29 pm
Location: The Netherlands

Post 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
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

shader

Post 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.
Tom Trude,

Image
blue60007
General
Posts: 1247
Joined: Sun Mar 07, 2004 11:44 pm

Post 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... :?
Image
User avatar
At0miC
General
Posts: 1164
Joined: Fri Feb 27, 2004 11:29 pm
Location: The Netherlands

Post by At0miC »

Yeah srry my fould :) I can see the texture in radiant, good thinking about the restart :P

Thnx all
blue60007
General
Posts: 1247
Joined: Sun Mar 07, 2004 11:44 pm

Post 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...
Image
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

try

Post 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 
	} 
} 
Tom Trude,

Image
User avatar
At0miC
General
Posts: 1164
Joined: Fri Feb 27, 2004 11:29 pm
Location: The Netherlands

Post by At0miC »

It is wood, thnx again

At0miC
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

custom

Post 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.
Tom Trude,

Image
User avatar
At0miC
General
Posts: 1164
Joined: Fri Feb 27, 2004 11:29 pm
Location: The Netherlands

Post by At0miC »

I don't understand. :oops:
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

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

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
User avatar
At0miC
General
Posts: 1164
Joined: Fri Feb 27, 2004 11:29 pm
Location: The Netherlands

Post by At0miC »

I can see custom in the list so everything is okay then
Post Reply