Page 2 of 2

Posted: Mon Dec 22, 2003 4:30 pm
by BiG_HeaD
I got so far this time!


Heres what i got done:

I got the .tga to be the tree color i want.

Its a nice purple with purple leaves.

Cant post here cuase its like 2mb.

Posted: Mon Dec 22, 2003 9:54 pm
by bdbodger
That's good now make a shader for the .tga by copying the original one from scripts/trees.shader . Use the .tga name of your .tga and give the shader a name .

Posted: Mon Dec 22, 2003 10:09 pm
by HDL_CinC_Dragon
bdbodger wrote:Make a hallway with a door at each end to connect the sky boxes and put a areaportal brush in both doors that fills the door but is thinner than the door so it is inside the door it can overlap the structural brushes around the frame though .
ok, my response to this is... what?

Posted: Tue Dec 23, 2003 2:03 am
by mohaa_rox
not much of a skinning guru are you?

u have to reskin the tree to make it purple. open ps or psp, add a layer, make it a "color" property, then select a purple color, and flood fill the layer. it should turn purple.

then follow bdbodger's steps to get the purple textures onto the tree.

Posted: Tue Dec 23, 2003 2:18 am
by BiG_HeaD
by copying the original one from scripts/trees.shader

Whats that mean?

Posted: Tue Dec 23, 2003 2:50 pm
by bdbodger
Ok lets do this one step at a time . In the main directory you have pk3 files . One of those files is called pak0.pk3 . Open that with winzip or winrar .

When you have that open go to the scripts directory .

look for a file called trees.shader

Extract that file to your harddrive

What .tik file are you remakeing purple ?

in pak0.pk3 models directory find the static directory open that directory

find the natural directory open that directory .

now find the tik for the tree you are makeing purple

Extract the tik to your harddrive .

Ok now open the tik in notepad and find the line that reads " surface blah blah shader ??????? "

The ??????? is the shader you are looking for .

Open the trees.shader in a new notepad window

find the ??????? in the trees.shader it will look something like this

Code: Select all

static_pine_branches
{
	qer_editorimage textures/models/natural/pinebranchs.tga
	cull none
	{
		clampmap textures/models/natural/pinebranchs.tga
		depthWrite
		alphafunc GE128
		rgbgen vertex
	}
}
copy the ???????? shader to a new notepad window

give your shader a shader name and put the name of your tga where the old tga was

Code: Select all

static_purple_branches
{
	qer_editorimage textures/models/natural/purple.tga
	cull none
	{
		clampmap textures/models/natural/purple.tga
		depthWrite
		alphafunc GE128
		rgbgen vertex
	}
}
make sure the path to your tga is right such as

textures/models/natural/purple.tga

find the line that reads " surface blah blah shader ??????? " in the tik that you opened earlier and put your shader name where the ????????? is . At the bottom of the tik put this

/*QUAKED static_natural_tree_purpletree(0.5 0.0 0.5) (-16 -16 -32) (16 16 480)
*/


Ok now save the tik as purple_tree.tik and put it in the models directory on your harddrive . Save the shader file as purple.shader and put that in the scripts directory on your harddrive . make sure the path to your tga is right such as textures/models/natural/purple.tga and that is what you had put in the shader .

Ok you are done open mohradiant and look for your tree on the right click menu .

Posted: Tue Dec 23, 2003 4:22 pm
by BiG_HeaD
step2: look for a file called trees.shader

Where the heck is it?!?!

Ive been searching for 10 minutes. Pak0.pk3???!

Posted: Wed Dec 24, 2003 10:42 am
by bdbodger
I am beginning to think this is a joke . How do you send people your map don't you put it in a .pk3 don't you know how to open one in winzip or winrar or packscape ? how did you get the .tga to edit ? have you looked in the main directory of your game ?