Textures are coloured


Dwin
04-17-2005, 11:06 AM
A certain texture is showing up with different colours.

This is what it should look like:



This is what it does look like:








BasieP
04-17-2005, 11:47 AM
is it a model?

normal texture?

also in test map?

also on other machines?

you have problems with this in other maps also?

do some testing yourself and post the results, perhaps we can help you better then

Colonel Forbin
04-17-2005, 03:30 PM
I've had this problem with a few CS:S custom maps. Certain textures have a colour blended into them, and when you get a bunch in a row they create a rainbow effect. The only thing out of place in the console (without developer on) is the following

Error: Material "engine/occlusionproxy" uses unknown shader "Occlusion"

This has never happened to me with an official map.

http://www.allied4life.com/ss/temp/rarshots/dorf_colour.jpg

Watchtower
04-17-2005, 06:26 PM
dwin, i had the same problem

Its caused by using a texture from a model. The .vmt file states the texture as a "VertexLitGeneric" type for models only, so any brushes that use the texture will look like that.

If you look at the texture in question, you'll notice it says "props/models/texturename" in the directory/name inside the texture browser for Hammer.

Simply remove that texture and replace it with the one that doesnt have props/models/ in the name. 99% chance that there is an identical texture like your using already made for brushes.

If you cant find one without it, and want THAT texture, extract the .vmf in question from the source-materials .gcf file, and make a new .vmt file for it with notepad with the following lines:


"LightMappedGeneric"
{
"$baseTexture" "yourdirectory/yourtexturename"
"$surfaceprop" "yoursurfacetype"
}

Booya!
Your set.

--Watchtower

Dwin
04-17-2005, 08:46 PM
Yep, I already changed the texture name so that it doesnt have props/models/ in the name. Before that, the texture were all black.

I checked the.vmt, and I suspected that the "VertexLitGeneric" was the cause of this problem.

Thanks, Watchtower.

Colonel Forbin
04-17-2005, 08:51 PM
Is it the cause of the problem that I'm seeing too?

Watchtower
04-17-2005, 08:54 PM
Yes. Do exactly what I said and you'll be set Col. Forbin

Day of Defeat Forum Archive created by Neil Jedrzejewski.

This in an partial archive of the old Day of Defeat forums orignally hosted by Valve Software LLC.
Material has been archived for the purpose of creating a knowledge base from messages posted between 2003 and 2008.