Blending textures
Post Reply
Quote
Re: Blending textures
Posted by Flynn on Wed Jan 3rd at 9:09am 2007


I've followed the "texture blend" tutorial and done it three times. Nothing. What could I possibly be doing wrong!?



Quote
Re: Blending textures
Posted by Captain P on Wed Jan 3rd at 11:30am 2007


So what did you expect to see and what did you actually see? It's really hard to tell what went wrong if you don't explain what exactly you did. <img src=" SRC="images/smiles/icon_smile.gif">

I mean, I don't know whether you know blended materials only work on displacement maps, or if you know where to place the .vmt's, etc.






Quote
Re: Blending textures
Posted by Flynn on Wed Jan 3rd at 11:34am 2007


Alright, this is the contents of my test.vmt file:

"WorldVertexTransition"
{
"$basetexture" "/concrete/concretefloor028c"
"$basetexture2" "/nature/grassfloor002a"
"%tooltexture" "/nature/grassfloor002a"
"%keywords" "test"
}

I P.M.ed it to Andrei and he said everything was A-okay.





Quote
Re: Blending textures
Posted by reaper47 on Wed Jan 3rd at 2:57pm 2007


At what point did you feel like it's not working? Doesn't it show up in the texture browser in Hammer? Or does it just not blend?





Quote
Re: Blending textures
Posted by fishy on Wed Jan 3rd at 3:18pm 2007


? quoting Flynn
Alright, this is the contents of my test.vmt file:

"WorldVertexTransition"
{
"$basetexture" "/concrete/concretefloor028c"
"$basetexture2" "/nature/grassfloor002a"
"%tooltexture" "/nature/grassfloor002a"
"%keywords" "test"
}

I P.M.ed it to Andrei and he said everything was A-okay.

It looks ok to me, all except the red bits.




i eat paint



Quote
Re: Blending textures
Posted by Naklajat on Wed Jan 3rd at 4:47pm 2007


Nice catch.


=o



Quote
Re: Blending textures
Posted by Flynn on Wed Jan 3rd at 6:45pm 2007


Nope-sorry fishy you are completely wrong. I just gave a "bad example" in the literal sense. I forgot to mention that I had played around with that file before and tried every possible thing that I could. I simply forgot to change it back before posting the file. I'm sorry to spoil your rather witty reply I have tried putting the file in both "materials" and "materialsrc" in both the "Half-Life 2/hl2" and the "Sourcesdk_content" directories. Both nothing.

Here it is:

"WorldVertexTransition"
{
"$basetexture" "concreteconcretefloor028c"
"$basetexture2" "naturegrassfloor002a"
"%tooltexture" "naturegrassfloor002a"
"%keywords" "test"
}





Quote
Re: Blending textures
Posted by omegaslayer on Wed Jan 3rd at 8:49pm 2007


Your still not giving us any info as to where its not working. Is it not showing up in the hammer texture browser? is it showing up as pink/black checkered board in the texture browser window? is it showing up on a displacement, but not blending when you change the alpha settings?

What is it?






Quote
Re: Blending textures
Posted by Captain P on Wed Jan 3rd at 9:14pm 2007


I think fishy hit the right spot however: from looking at some HL2 .vmt files, the first / or shouldn't be there, and you should use / rather than , just to be safe.

For Hammer and the game to recognize the material, they need to be in the Half-Life 2/hl2/materials folder. The sourcesdk_content folder is just were most mappers put their source files (material, model and map source files, like .tga's, .vmf's and such).






Quote
Re: Blending textures
Posted by Flynn on Wed Jan 3rd at 10:31pm 2007


lol you know when you think "Ah, that was it" but then it turns out not to be. I have have thought that about a dozen times with this saga. I replaced the backward slashes with forward slashes and removed the first forward slash and then saved the file over the existing file in my Half-Life 2hl2materials folder and started up Hammer typed in the keyword "test" and nothing happened. Nothing whatsoever happened. Nothing whatsoever. No texture displayed, nothing. Out of all the mysteries I have dealt with in Hammer, this has got to be the strangest one yet. Especially considering how easy Andrei said it would be in his tutorial. Here's the "new and improved" file:

"WorldVertexTransition"
{
"$basetexture" "concrete/concretefloor028c"
"$basetexture2" "nature/grassfloor002a"
"%tooltexture" "nature/grassfloor002a"
"%keywords" "test"
}





Quote
Re: Blending textures
Posted by omegaslayer on Wed Jan 3rd at 10:53pm 2007


where is the vmt located. Because I *just* did it very easily






Quote
Re: Blending textures
Posted by Captain P on Thu Jan 4th at 12:05am 2007


Worked for me too. Are you sure it's actually a .vmt file and not a .vmt.txt file (which might easily happen if you use notepad for example)?

Also, the keyword system locks up my Hammer. What happens if you type 'test' into the filter box?






Quote
Re: Blending textures
Posted by Flynn on Thu Jan 4th at 10:12am 2007


Well unless I am very much mistaken the tutorial does say to use notepad Just incase I saved it as all files and still it refused to work. Captain P: Are you sure it won't work if I use notepad? Is the tutorial wrong?





Quote
Re: Blending textures
Posted by Captain P on Thu Jan 4th at 1:10pm 2007


When you select 'All Files' it shouldn't go wrong then. Odd. What if you place this file in your half-life 2hl2materials folder? That one surely works here.





Quote
Re: Blending textures
Posted by Flynn on Thu Jan 4th at 2:20pm 2007


I select "all files" then when I go back to the file I just saved as "all files" it says "text document"

Alright dude, I went to all the trouble of downloading and installing a program entitled "NotePro" and I opened the file and it did indeed say "test.vmt.txt".

I then went on "save as" but the "all files" option was not there. So now the question is, how the hell can we save this damned thing as "all files"!?





Quote
Re: Blending textures
Posted by Captain P on Thu Jan 4th at 2:33pm 2007


It works for me when I select to save as All Files and type 'test.vmt' as the filename. Did you type 'test' only?

Anyway, if nothing of that helps, perhaps you can try Notepad++. I'm pretty happy about that program and you should surely be able to save documents with any extension you wish.
Alternately, if you're using Windows XP, you can tell it to display extensions for known file-types in the 'tools->folder options' menu, in the View tab. That allows you to change the extension in explorer.






Quote
Re: Blending textures
Posted by Flynn on Thu Jan 4th at 3:00pm 2007


O.M.G. it works! I was able to change the file extension in windows explorer!!!! O.M.G. Captain P you are my virtual hero!!!! O.M.G. O.M.G. O.M.G.!!!!!!! You are everyso reliable and consistant in your replies!!!! Thank you so very much!!!! Extra Snarkmarks for you!!!!

Sorry I just had to do all that lol. It's as if christmas has come all at once. It even works in game and everything! Thank you for being everyso helpful all of you guys.





Quote
Re: Blending textures
Posted by Captain P on Thu Jan 4th at 3:21pm 2007


No problem. I've changed my post above to a possible solution so in case anyone else has the same problem, this thread can be marked as solved. <img src=" SRC="images/smiles/icon_smile.gif">

Plus, I get snarkmarks. If only I could buy something with them. :P






Quote
Re: Blending textures
Posted by fishy on Thu Jan 4th at 5:33pm 2007


oh dear......

Message submitted 30 minutes after original post:

? quoting Flynn
Nope-sorry fishy you are completely wrong. I just gave a "bad example" in the literal sense. I forgot to mention that I had played around with that file before and tried every possible thing that I could. I simply forgot to change it back before posting the file.

am I still completely wrong, now that you know how to give the file a .vmt extension?

didn't think so....




i eat paint



Quote
Re: Blending textures
Posted by Captain P on Thu Jan 4th at 6:11pm 2007


Heh, true. <img src=" SRC="images/smiles/icon_smile.gif">






Post Reply