q3map_foliage


(Higgins) #1

No matter what i do to this shader, the model wont appear on my terrain. Ive tried changing the alpha number from 0 to 2 and no results. Can any one point out why its not working?

textures/radio/terrain_1
{
	surfaceparm nolightmap
	q3map_novertexshadows
	q3map_forcesunlight
        q3map_foliage models/foliage/weed.md3 0.1 16 0.025 0
	{
		map textures/radio/grass_dense1.tga
		rgbGen vertex
		tcmod scale 0.071 0.071
	}
}

(kamikazee) #2

Have you tried putting the model in your map using a misc_model yet?


(Higgins) #3

yes,why?


(iwound) #4

You could try these…
I tried them in my map but didnt like the results…

They work for me. So might give you an idea where your going wrong…

// q3map_foliage models/mapobjects/plants_sd/leaf_high.md3 1.25 48 0.1 2 		
// q3map_foliage models/mapobjects/plants_sd/grass_low.md3 1.1 48 0.1 2 		
// q3map_foliage models/mapobjects/tree_temperate_sd/tree_temperate_high.md3 2 64 0.025 0

I suggest checking out the shader manual for what each number does.

Good luck


(Higgins) #5

Iam not getting any thing showing up in my map. Ive messed with the numbers and readthe manual, but i cant get it to work.


(nUllSkillZ) #6

Hmm, I only know the following tutorial over at level-designer.de (german):
Foliage Systeme
You could try and take a look.
They use an extra shader for the foliage.


(Diego) #7

I have foliage shaders working in my map. I can’t look at it right now, but double check the pk3 files to see if that weed.md3 is actually present. I don’t remember which one it is, but the md3 model that was used in radar isn’t included in the pk3 files. Until I find something better, I’m using the dry grass weeds from Oasis. I’ll post the shader later if you don’t get it working.

EDIT:


    q3map_foliage models/mapobjects/plants_sd/grassdryfoliage.md3 1.1 64 0.1 2

Someone else posted the other one I’m using. This one works too. I think you are just using a model that doesn’t exist. I think the textures for it are there though.