Blending textures

Blending textures

Re: Blending textures Posted by Flynn on Wed Jan 3rd 2007 at 9:09am
Flynn
454 posts
Posted 2007-01-03 9:09am
Flynn
member
454 posts 695 snarkmarks Registered: Oct 1st 2004 Location: England
I've followed the "texture blend" tutorial and done it three times. Nothing. What could I possibly be doing wrong!? :mad:
Re: Blending textures Posted by Captain P on Wed Jan 3rd 2007 at 11:30am
Captain P
1370 posts
Posted 2007-01-03 11:30am
1370 posts 1995 snarkmarks Registered: Nov 6th 2003 Occupation: Game-programmer Location: Netherlands
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. :smile:

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.
Create-ivity - a game development blog
Re: Blending textures Posted by Flynn on Wed Jan 3rd 2007 at 11:34am
Flynn
454 posts
Posted 2007-01-03 11:34am
Flynn
member
454 posts 695 snarkmarks Registered: Oct 1st 2004 Location: England
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.
Re: Blending textures Posted by reaper47 on Wed Jan 3rd 2007 at 2:57pm
reaper47
2827 posts
Posted 2007-01-03 2:57pm
reaper47
member
2827 posts 1921 snarkmarks Registered: Feb 16th 2005 Location: Austria
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?
Why snark works.
Re: Blending textures Posted by fishy on Wed Jan 3rd 2007 at 3:18pm
fishy
2623 posts
Posted 2007-01-03 3:18pm
fishy
member
2623 posts 1476 snarkmarks Registered: Sep 7th 2003 Location: glasgow
Flynn said:
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
Re: Blending textures Posted by Naklajat on Wed Jan 3rd 2007 at 4:47pm
Naklajat
1137 posts
Posted 2007-01-03 4:47pm
Naklajat
member
1137 posts 384 snarkmarks Registered: Nov 15th 2004 Occupation: Baron Location: Austin, Texas
Nice catch.

o

Re: Blending textures Posted by Flynn on Wed Jan 3rd 2007 at 6:45pm
Flynn
454 posts
Posted 2007-01-03 6:45pm
Flynn
member
454 posts 695 snarkmarks Registered: Oct 1st 2004 Location: England
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 :razz: 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" "\concrete\concretefloor028c"
"$basetexture2" "\nature\grassfloor002a"
"%tooltexture" "\nature\grassfloor002a"
"%keywords" "test"
}
Re: Blending textures Posted by omegaslayer on Wed Jan 3rd 2007 at 8:49pm
omegaslayer
2481 posts
Posted 2007-01-03 8:49pm
2481 posts 595 snarkmarks Registered: Jan 16th 2004 Occupation: Sr. DevOPS Engineer Location: Seattle, WA
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?
Posting And You
Re: Blending textures Posted by Captain P on Wed Jan 3rd 2007 at 9:14pm
Captain P
1370 posts
Posted 2007-01-03 9:14pm
1370 posts 1995 snarkmarks Registered: Nov 6th 2003 Occupation: Game-programmer Location: Netherlands
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).
Create-ivity - a game development blog
Re: Blending textures Posted by Flynn on Wed Jan 3rd 2007 at 10:31pm
Flynn
454 posts
Posted 2007-01-03 10:31pm
Flynn
member
454 posts 695 snarkmarks Registered: Oct 1st 2004 Location: England
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 2\hl2\materials 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 :biggrin: :

"WorldVertexTransition"
{
"$basetexture" "concrete/concretefloor028c"
"$basetexture2" "nature/grassfloor002a"
"%tooltexture" "nature/grassfloor002a"
"%keywords" "test"
}
Re: Blending textures Posted by omegaslayer on Wed Jan 3rd 2007 at 10:53pm
omegaslayer
2481 posts
Posted 2007-01-03 10:53pm
2481 posts 595 snarkmarks Registered: Jan 16th 2004 Occupation: Sr. DevOPS Engineer Location: Seattle, WA
where is the vmt located. Because I just did it very easily
Posting And You
Re: Blending textures Posted by Captain P on Thu Jan 4th 2007 at 12:05am
Captain P
1370 posts
Posted 2007-01-04 12:05am
1370 posts 1995 snarkmarks Registered: Nov 6th 2003 Occupation: Game-programmer Location: Netherlands
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?
Create-ivity - a game development blog
Re: Blending textures Posted by Flynn on Thu Jan 4th 2007 at 10:12am
Flynn
454 posts
Posted 2007-01-04 10:12am
Flynn
member
454 posts 695 snarkmarks Registered: Oct 1st 2004 Location: England
Well unless I am very much mistaken the tutorial does say to use notepad :confused: 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?
Re: Blending textures Posted by Captain P on Thu Jan 4th 2007 at 1:10pm
Captain P
1370 posts
Posted 2007-01-04 1:10pm
1370 posts 1995 snarkmarks Registered: Nov 6th 2003 Occupation: Game-programmer Location: Netherlands
When you select 'All Files' it shouldn't go wrong then. Odd. What if you place this file in your half-life 2\hl2\materials folder? That one surely works here.
Create-ivity - a game development blog
Re: Blending textures Posted by Flynn on Thu Jan 4th 2007 at 2:20pm
Flynn
454 posts
Posted 2007-01-04 2:20pm
Flynn
member
454 posts 695 snarkmarks Registered: Oct 1st 2004 Location: England
I select "all files" then when I go back to the file I just saved as "all files" it says "text document" :mad:

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"!?
Re: Blending textures Posted by Captain P on Thu Jan 4th 2007 at 2:33pm
Captain P
1370 posts
Posted 2007-01-04 2:33pm
1370 posts 1995 snarkmarks Registered: Nov 6th 2003 Occupation: Game-programmer Location: Netherlands
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.
Create-ivity - a game development blog
Re: Blending textures Posted by Flynn on Thu Jan 4th 2007 at 3:00pm
Flynn
454 posts
Posted 2007-01-04 3:00pm
Flynn
member
454 posts 695 snarkmarks Registered: Oct 1st 2004 Location: England
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!!!! :kitty: :kitty: :kitty:

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.
Re: Blending textures Posted by Captain P on Thu Jan 4th 2007 at 3:21pm
Captain P
1370 posts
Posted 2007-01-04 3:21pm
1370 posts 1995 snarkmarks Registered: Nov 6th 2003 Occupation: Game-programmer Location: Netherlands
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. :smile:

Plus, I get snarkmarks. If only I could buy something with them. :razz:
Create-ivity - a game development blog
Re: Blending textures Posted by fishy on Thu Jan 4th 2007 at 5:33pm
fishy
2623 posts
Posted 2007-01-04 5:33pm
fishy
member
2623 posts 1476 snarkmarks Registered: Sep 7th 2003 Location: glasgow
oh dear......

<div class="abouttext">Message submitted 30 minutes after original post:</b></div>
Flynn said:
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.... :razz:
i eat paint
Re: Blending textures Posted by Captain P on Thu Jan 4th 2007 at 6:11pm
Captain P
1370 posts
Posted 2007-01-04 6:11pm
1370 posts 1995 snarkmarks Registered: Nov 6th 2003 Occupation: Game-programmer Location: Netherlands