Custom texture help.

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

Moderator: Moderators

Post Reply
Classic
Corporal
Posts: 39
Joined: Thu Dec 08, 2005 8:24 pm
Location: Some where in GA
Contact:

Custom texture help.

Post by Classic »

I've set up my own custom texture pack like the tutorial an Nemisis says, but when I try to pull them up the textures it loads them but not the shaders.

Here is an example of my shader script. Is anything wrong with it?

textures/mine/darkmarble.tga
{
qer_keyword rock
qer_keyword wall
surfaceparm sand
{
map textures/mine/darkmarble.tga
depthWrite
rgbGen identity
}
{
map $lightmap
rgbGen identity
blendFunc GL_DST_COLOR GL_ZERO
depthFunc equal
}
}
User avatar
At0miC
General
Posts: 1164
Joined: Fri Feb 27, 2004 11:29 pm
Location: The Netherlands

Post by At0miC »

U can remove '.tga' after darkmarble on the first line. And u can the 'qer_editorimage' key with value 'textures/mine/darkmarble.tga' so it will show an example of the texture in radiant.
Classic
Corporal
Posts: 39
Joined: Thu Dec 08, 2005 8:24 pm
Location: Some where in GA
Contact:

Post by Classic »

At0miC wrote:. And u can the 'qer_editorimage' key with value 'textures/mine/darkmarble.tga' so it will show an example of the texture in radiant.
Sorry I don't quite get what you mean, and shouldn't it automaticaly add an example in the texture box? Also it dosn't load the shaders.
PKM
General
Posts: 1888
Joined: Tue Aug 09, 2005 4:43 pm
Location: Philadelpia but stuck in San Antonio TX (hell)

Post by PKM »

doesn't he also have an extra "}" bracket at the end. i know textures that are using the alpha get that but regular textures ?



example:

Code: Select all

textures/c_structure/sfront1e3
{
	qer_keyword concrete
	qer_keyword wall
	surfaceparm stone
	{
		map textures/c_structure/sfront1e3.tga
		rgbGen identity
		depthWrite
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
		depthFunc equal
	}
} 
textures/c_structure/sfront1e2
{
	qer_keyword concrete
	qer_keyword wall
	surfaceparm stone
	{
		map textures/c_structure/sfront1e2.tga
		rgbGen identity
		depthWrite
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
		depthFunc equal
	}
} 
if you take the above, classic , and just insert your texture names, it should work fine.
i'm not f****** angry, i'm from philadelphia .
Image
Classic
Corporal
Posts: 39
Joined: Thu Dec 08, 2005 8:24 pm
Location: Some where in GA
Contact:

Post by Classic »

So you only need one script? I had one per texture.
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post by bdbodger »

You can put all your shaders in to one .shader file and put it in the scripts directory
Image
Classic
Corporal
Posts: 39
Joined: Thu Dec 08, 2005 8:24 pm
Location: Some where in GA
Contact:

Post by Classic »

Okay thanks the only problem now is though exerything loaded I can only see 3 of my 7 textures.
PKM
General
Posts: 1888
Joined: Tue Aug 09, 2005 4:43 pm
Location: Philadelpia but stuck in San Antonio TX (hell)

Post by PKM »

Classic wrote:Okay thanks the only problem now is though exerything loaded I can only see 3 of my 7 textures.
if you want, zip everything up (script(s) and texture(s) then email it to me

wholesale_phil@yahoo.com

and i'll take a look at it.
i'm not f****** angry, i'm from philadelphia .
Image
Post Reply