Blend Textures:

Blend Textures:

Re: Blend Textures: Posted by Cassius on Sat Jun 4th 2005 at 7:04pm
Cassius
1989 posts
Posted 2005-06-04 7:04pm
Cassius
member
1989 posts 238 snarkmarks Registered: Aug 24th 2001
Make them?
[Im_invisible] "I would suck a man off, but only for sustenance."
Re: Blend Textures: Posted by ReNo on Sat Jun 4th 2005 at 7:33pm
ReNo
5457 posts
Posted 2005-06-04 7:33pm
ReNo
member
5457 posts 1991 snarkmarks Registered: Aug 22nd 2001 Occupation: Level Designer Location: Scotland
Its fairly easy, though I haven't actually made one myself. Basically
you just make your two VTF's of your chosen terrain (or whatever two
textures you want to blend), and then reference them both in a VMF file
and tell them to blend. I cracked open one of valve's HL2 blend
materials and here was the contents...

"WorldVertexTransition"

{

"$basetexture" "nature/cliffface002a"

"$basetexture2" "nature/dirtfloor002a"

"%tooltexture" "nature/blendcliffgrass001a_tooltexture"

"$basetexturetransform" "center .5 .5 scale 2 2 rotate 0 translate 0 0"

"$basetexturetransform2" "center .5 .5 scale 4 4 rotate 0 translate 0 0"

"%keywords" "wasteland"

}

Obviously the first two parts reference the two VTF files you want to
blend between, while the third property lets you specify the texture
that should be shown in hammer's texture browser. The next two let you
tweak how the textures are placed in relation to each other it seems.
The keyword property just lets you give a term that can be picked out
easily in the texture broswer.

Hope that helps.
[img]http://card.mygamercard.net/sig/Default/reno84.png[/img]
Designer @ Haiku Interactive | ReNo-vation.net
Re: Blend Textures: Posted by Cassius on Sun Jun 5th 2005 at 12:42am
Cassius
1989 posts
Posted 2005-06-05 12:42am
Cassius
member
1989 posts 238 snarkmarks Registered: Aug 24th 2001
Any reason why
"WorldVertexTransition"
{
"$basetexture" "TextureTest/lej_dirt"
"$basetexture2" "TextureTest/lej_grass"
"%tooltexture" "TextureTest/lej_grassdirt_tooltexture"
"$basetexturetransform" "center .5 .5 scale 2 2 rotate 0 translate 0 0"
"$basetexturetransform2" "center .5 .5 scale 4 4 rotate 0 translate 0 0"
"%keywords" "lejnats"
}
shouldn't be working? Both the textures referenced exist.
Re: Blend Textures: Posted by fishy on Sun Jun 5th 2005 at 2:27am
fishy
2623 posts
Posted 2005-06-05 2:27am
fishy
member
2623 posts 1476 snarkmarks Registered: Sep 7th 2003 Location: glasgow
is it appearing in hammer at all? purple checks? tried alpha painting to see if both textures are borked?

the .vmt looks ok.
i eat paint
Re: Blend Textures: Posted by ReNo on Sun Jun 5th 2005 at 2:56am
ReNo
5457 posts
Posted 2005-06-05 2:56am
ReNo
member
5457 posts 1991 snarkmarks Registered: Aug 22nd 2001 Occupation: Level Designer Location: Scotland
Try creating a couple of basic lightmapped_generic VMT's for the
textures to test if they work on their own - at least that will let you
see if the problem is in the blend VMT or something else.
[img]http://card.mygamercard.net/sig/Default/reno84.png[/img]
Designer @ Haiku Interactive | ReNo-vation.net
Re: Blend Textures: Posted by Cassius on Sun Jun 5th 2005 at 5:16am
Cassius
1989 posts
Posted 2005-06-05 5:16am
Cassius
member
1989 posts 238 snarkmarks Registered: Aug 24th 2001
Some images in this post have been automatically down-sized, click on them to view the full sized versions:

User posted image
Re: Blend Textures: Posted by ReNo on Sun Jun 5th 2005 at 5:37am
ReNo
5457 posts
Posted 2005-06-05 5:37am
ReNo
member
5457 posts 1991 snarkmarks Registered: Aug 22nd 2001 Occupation: Level Designer Location: Scotland
Doesn't look like you have a "lej_grassdirt_tooltexture.vtf", which
means the VMT is referencing a VTF that doesn't exist when it looks for
the texture to use in hammer's texture browser. I'm guessing the
texture blending works fine, it just doesn't show up right in the
browser?
[img]http://card.mygamercard.net/sig/Default/reno84.png[/img]
Designer @ Haiku Interactive | ReNo-vation.net
Re: Blend Textures: Posted by Cassius on Sun Jun 5th 2005 at 6:06am
Cassius
1989 posts
Posted 2005-06-05 6:06am
Cassius
member
1989 posts 238 snarkmarks Registered: Aug 24th 2001
Thank you, master Reno, it works now.
Re: Blend Textures: Posted by Orpheus on Sun Jun 5th 2005 at 12:46pm
Orpheus
13860 posts
Posted 2005-06-05 12:46pm
Orpheus
member
13860 posts 2024 snarkmarks Registered: Aug 26th 2001 Occupation: Long Haul Trucking Location: Long Oklahoma - USA
ReNo said:
Its fairly easy,.... and then reference them both in a VMF file and tell them to blend.
For my reference, can you clarify this one point Duncan?

I do not wanna make any custom textures, but I would like to know how to say, blend grass and rocks, or grass and a path of dirt.

A tutorial link would suffice.. I am just curious.

The best things in life, aren't things.