Glass de-rendering itself

Got problems with your models? Struggling with textures? Get help with your custom assets.

Glass de-rendering itself

Postby Stormy on Tue Aug 07, 2012 11:36 am



Any ideas on this one folks? I have struggled with it all day and cannot get it to work. The windows need to be $translucent in order to look windowy, $alphatest won't do and $alpha doesn't seem to do anything. The windows are a separate mesh from the bus and there aren't any sorting issues. Taking $translucent out of the .vmt makes it stop.

QC:
Code: Select all
$modelname custom_models/bus_opentop/bus_opentop_glass
$cdmaterials models/custom_models/bus_opentop
$body bus_opentop_glass glass_ref
$mostlyopaque // have tried with/without, no difference
$staticprop
$sequence idle glass_ref
$surfaceprop glass
$collisionmodel glass_phy
{
$concave
}
   
$lod 200
   {
    replacematerial bus_opentop_glass bus_opentop_glass_low
   }


VMT:
Code: Select all
vertexlitgeneric
{
$basetexture models/custom_models/bus_opentop/bus_opentop_glass
// $nocull 1
// $model 1
$translucent 1
// $envmap env_cubemap
// $envmapmask models/custom_models/bus_opentop/bus_opentop_glass_spec
// $envmaptint "[.7 .7 .7]"
}


Whoever solves it gets a free model! (something simple please)
User avatar
Stormy
May Contain Skills
May Contain Skills
 
Joined: Sun Nov 28, 2010 6:03 am
Location: Cairns, QLD, AUS

Re: Glass de-rendering itself

Postby Sathor on Tue Aug 07, 2012 12:04 pm

vertexlitgeneric
{
$basetexture models/custom_models/bus_opentop/bus_opentop_glass
// $nocull 1
// $model 1
$translucent 1
// $envmap env_cubemap
// $envmapmask models/custom_models/bus_opentop/bus_opentop_glass_spec
// $envmaptint "[.7 .7 .7]"
}


Why the // in front of // $model 1 ? I always have that parameter active on my props.

Although it does not seem necessary for this shader. Might not help at all.
User avatar
Sathor
Senior Member
Senior Member
 
Joined: Sat Jan 20, 2007 10:31 pm
Location: Germany

Re: Glass de-rendering itself

Postby kraid on Tue Aug 07, 2012 4:59 pm

Usually this kind of stuff happens when a refract shader is involved, but as far as i can tell, this is not the case here.
Goldeneye Source v4.2.3
get it now and play for FREE!!!
http://www.goldeneyesource.net
kraid
Been Here A While
Been Here A While
 
Joined: Thu Jan 22, 2009 12:09 pm

Re: Glass de-rendering itself

Postby WhiteDevil on Tue Aug 07, 2012 8:41 pm

I recreated all the things you had on your windows and I didn't get the textures bugged on my models, even with all sort of different setups so I'm guessing there's something in your map what's causing the problems. Maybe vis error or something.

And that bug really does look exactly like the thing refract shader usually does like kraid also said.
User avatar
WhiteDevil
Been Here A While
Been Here A While
 
Joined: Sat May 28, 2005 1:09 pm

Re: Glass de-rendering itself

Postby Stormy on Tue Aug 07, 2012 10:01 pm

@Sathor the $model command never seems to do much on vertexlitgeneric, I think it's more for translucency sorting on brush materials and refract shaders.

@WhiteDevil I've had someone else say that too, so I put it in a new map and same problem. That's not to say I didn't recreate the same leak though. I might send it around for testing elsewhere.
User avatar
Stormy
May Contain Skills
May Contain Skills
 
Joined: Sun Nov 28, 2010 6:03 am
Location: Cairns, QLD, AUS

Return to Custom Asset Help

Who is online

Users browsing this forum: No registered users