Page 1 of 1

shader error

Posted: Wed May 14, 2003 3:08 pm
by small_sumo
Can this stoopid error be fixed, its 2015 shader and model.

Vertex color specified for shader 'static_carrusted', but vertex colors are not valid for this model
Vertex color specified for shader 'static_carwindowr', but vertex colors are not valid for this model
Vertex color specified for shader 'static_carwindowr', but vertex colors are not valid for this model
Vertex color specified for shader 'static_carrusted', but vertex colors are not valid for this model
Vertex color specified for shader 'static_carwindowr', but vertex colors are not valid for this model
Vertex color specified for shad.........

It just bogs up the console and cannot be good for the map.

Posted: Wed May 14, 2003 3:23 pm
by bdbodger
I agree about the errors boging up the console maybe we neee a thread to post fixes for these errors like the , what is it , invalid number of frames in model ... or is it animation .

Posted: Wed May 14, 2003 3:33 pm
by jv_map
I think you put a vehicle -> car in your map, but this shader is written for a static car (static -> vehicles -> car). That's what causes this error.

I know you need a non-static car in your map since it has to blow up, so I guess you'll have to make new shaders for it.

Just copy those of the static car and replace

rgbGen vertex

with

rgbGen lightingSpherical

Then it should work fine.

Posted: Wed May 14, 2003 4:47 pm
by small_sumo
The shader looks like this, if I do what you said it looks like it will repeat itself, maybe zzzzzzzz its 1 am.

Bye

// Rusted Civilian Car
carrusted
{
cull none
qer_editorimage textures/models/VEHICLES/car/carrusted.tga
{
map textures/models/VEHICLES/car/carrusted.tga
rgbGen lightingSpherical
}
}

// Static Rusted Civilian Car
static_carrusted
{
cull none
qer_editorimage textures/models/VEHICLES/car/carrusted.tga
{
map textures/models/VEHICLES/car/carrusted.tga
rgbGen vertex
}
}

// Rusted Civilian Car Window
carwindowR
{
qer_editorimage textures/models/vehicles/car/carWindowR.tga
cull none
{
map textures/common/reflection1.tga
rgbGen lightingSpherical
tcgen environmentmodel
alphaGen const 0.05
blendFunc blend
}
{
map textures/models/vehicles/car/carWindowR.tga
rgbGen lightingSpherical
blendFunc blend
}
}

// Static Rusted Civilian Car Window
static_carwindowR
{
qer_editorimage textures/models/vehicles/car/carWindowR.tga
cull none
{
map textures/common/reflection1.tga
rgbGen vertex
tcgen environmentmodel
alphaGen const 0.05
blendFunc blend
}
{
map textures/models/vehicles/car/carWindowR.tga
rgbGen vertex
blendFunc blend
}
}