How do you put "%detailtype" in a vmt? i have tried about every way I could think of. I actually got a ep2 grass sprite to work but it was all pink and black(missing), but I didn't want to use that sprite any way, it was more like me testing. It seems like I cant use any hl2 or css sprites. I am using engine 2009- tf2, because i am trying to use that engine but still only have hl2 and css textures, I have extracted all the textures for hl2 and css in the t2 folder, and it works fine. I have tried to use coastline_redgrass02, redgrass, and i get no sprites in the bsp, after i compile the map in 2009-TF2, so I think let me try it in 2006-HL2, and that doesn't work either.
[code]
"WorldVertexTransition"
{
"$basetexture" "nature/milground001"
"$basetexture2" "nature/dirtfloor001a"
"%tooltexture" "nature/milground001"
"$surfaceprop" "dirt"
"$surfaceprop2" "dirt"
"$basetexturetransform" "center .5 .5 scale 1 1 rotate 0 translate 0 0"
"$basetexturetransform2" "center .5 .5 scale 1 1 rotate 0 translate 0 0"
"%detailtype" "coastline_redgrass02 "
"%keywords" "Blend"
"LightmappedGeneric_DX9"
{
"$normalmapalphaenvmapmask" 1
"$envmapsaturation" 1
"$envmapcontrast" 1
"$envmaptint" "[ .65 .65 .65]"
"$envmap" "env_cubemap"
}
}
[/code]
Do you see any thing wrong with this? If you can please show me how to put the %detailtype and blend both of those textures. Any ideas what I did wrong??
help?
I don't believe the WorldVertexTransition shader supports LightmappedGeneric as a fallback. Try replacing with:
[code]"WorldVertexTransition"
{
"$basetexture" "nature/milground001"
"$basetexture2" "nature/dirtfloor001a"
"%tooltexture" "nature/milground001"
"$surfaceprop" "dirt"
"$surfaceprop2" "dirt"
"$basetexturetransform" "center .5 .5 scale 1 1 rotate 0 translate 0 0"
"$basetexturetransform2" "center .5 .5 scale 1 1 rotate 0 translate 0 0"
"%detailtype" "coastline_redgrass02"
"%keywords" "Blend"
"WorldVertexTransition_DX9"
{
"$normalmapalphaenvmapmask" 1
"$envmapsaturation" 1
"$envmapcontrast" 1
"$envmaptint" "[.65 .65 .65]"
"$envmap" "env_cubemap"
}
}
[/code]
Also, is the surface using this material blended? If not, invert the alpha and try again.
Thank you! But now i get all pink and black texture? does any one know where to find the textures for hl2 and css?
I found a list but they dont say any thing about hl2 or css only detail textures.
[URL]http://developer.valvesoftware.com/wiki/Detail_Props[/URL]
You have to look at the .vmt of the texture to figure out what detail texture it uses.
The detail.vbsp tells the textures what settings the detail props show up as.
yeah I know but I tried to run the map in Hl2 and I had the vmt in both Gmod and Hl2, even ran in it ep2 I still saw the detail where all pink and black. Any ideas?
Probably missing the detail sprites?
Open the material gcf and extract the detail folder.
I dont know what file to extract or from which gcf. I dont even know if this is the grass sprite I will be using. I will be most likely changing it to every one to see the mall and get the best one.
Sorry, you need to Log In to post a reply to this thread.