shader error

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
User avatar
small_sumo
Lieutenant General
Posts: 953
Joined: Mon Jul 01, 2002 4:17 pm
Contact:

shader error

Post 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.
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post 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 .
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post 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.
Image
User avatar
small_sumo
Lieutenant General
Posts: 953
Joined: Mon Jul 01, 2002 4:17 pm
Contact:

Post 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
}
}
Post Reply