Model Texture help


(tman) #1

Can anyone help me with creating a shader for a terrain model (I’m a model nOOb).
I created it with Bryce 5 ,imported it into Milkshape and then exported it as a md3,But I cant seem to get the textures to be applied to the model.

Heres what I got:

models/terrain1/terrain1
{
surfaceparm nolightmap
q3map_clipModel
q3map_forcesunlight
{
map models/terrain/terrain2.tga
blendfunc add
rgbGen Vertex

}
{
	map models/terrain/terain1.tga
	blendfunc blend  		 
            rgbGen Vertex
	
}

}

Thanks for any suggestion


(Orange) #2

I’m pretty sure that all textures have to in the textures folder.
And you also should put your textures in a folder with the same name as your map’s name. This is more comfortable and avoids your textures from replacing someone else’s textures/

So you need something like this:

textures/yourmapname/terrain1
{
    surfaceparm nolightmap
    q3map_clipModel
    q3map_forcesunlight
    {
        map textures/yourmapname/terrain2.tga
        blendfunc add
        rgbGen Vertex
    }
    {
        map textures/yourmapname/terain1.tga
        blendfunc blend
        rgbGen Vertex
    }
}

Anyway, don’t do this until someone will confirm this is true.

I’m not sure how to do this with Bryce or Milkshape, but in 3dsmax you need to change your material name to your shader name (textures/yourmapname/terrain1) and then add a new “Bitmap” in the diffuse slot and put your shader name there also.


(obsidian) #3

Get rid of blendFunc add. You don’t want both stages to be have blending or you’ll end up with translucent/HOM terrain.