Problem with displacements alpha texture

Problem with displacements alpha texture

Re: Problem with displacements alpha texture Posted by Arzie on Sun Nov 14th 2004 at 7:18am
Arzie
20 posts
Posted 2004-11-14 7:18am
Arzie
member
20 posts 282 snarkmarks Registered: Nov 14th 2004 Occupation: - Location: -Finland
Well i got a little problem here. Its hard to explain, so ill post couple of pics :wink: . I looked the tutorial at here, displacements part II (http://www.snarkpit.com/editing.php?page=tutorials&game=HL2&id=113)
All go good so far, until i start to edit vmf with notepad. At alpha, it says something like:

"row0" "255 255 255 255"
"row1" "255 255 255 255"
"row2" "255 255 255 255"
"row3" "255 255 255 255"

now, if i change the whole "row3" to "0 0 0 0", ill go to hammer and open the map, it looks something like this:

http://koti.phnet.fi/anttis/tgf/pic.gif

Now, i dont want it go THAT way, i want it as the top of the hills are rock, and other down parts are grass. Ill try to remake the terrains and stuff, but still it makes it wrong way :S. So whats the problem?
Re: Problem with displacements alpha texture Posted by Zevensoft on Sun Nov 14th 2004 at 10:56am
Zevensoft
50 posts
Posted 2004-11-14 10:56am
50 posts 145 snarkmarks Registered: Sep 29th 2003
Try:

"row0" "0 0 0 0"
"row1" "0 0 0 0"
"row2" "0 0 0 0"
"row3" "255 255 255 255"

Instead.
Re: Problem with displacements alpha texture Posted by Arzie on Sun Nov 14th 2004 at 11:36am
Arzie
20 posts
Posted 2004-11-14 11:36am
Arzie
member
20 posts 282 snarkmarks Registered: Nov 14th 2004 Occupation: - Location: -Finland
Zevensoft said:
Try:

"row0" "0 0 0 0"
"row1" "0 0 0 0"
"row2" "0 0 0 0"
"row3" "255 255 255 255"

Instead.
Well then its just changin the rock to grass, and grass to rock. You can figure as the numbers as the playfield, top to down. If i change the last 255 to 0, it'll make a alpha texture "dot" at the down left corner, all trough at Z axis. I want it to be as the number is from side of the map :razz:
Re: Problem with displacements alpha texture Posted by ReNo on Sun Nov 14th 2004 at 1:14pm
ReNo
5457 posts
Posted 2004-11-14 1:14pm
ReNo
member
5457 posts 1991 snarkmarks Registered: Aug 22nd 2001 Occupation: Level Designer Location: Scotland
Its far from ideal at the moment, as the array of numbers in notepad doesn't represent the terrain in hammer perfectly (ie. its NOT that the top left number in the array is the top left corner of the terrain in hammer, its actually bottom left I believe). Trust me though, you can definately use notepad as I suggested to get terrain alpha masking the way you want...

User posted image

That path for example was done using notepad. Sure it took a wee bit of time and trial and error to get looking right, but its possible. I suggest you just try putting all 0's in the alpha section in notepad, with a single 255 at once of the corners, and seeing which corner of the notepad array, represents each corner of the terrain in hammer. Once you have that figured out, you know which edges are which edges and so you can easily figure out what to make rock and what to make grass.
Re: Problem with displacements alpha texture Posted by Orpheus on Sun Nov 14th 2004 at 1:21pm
Orpheus
13860 posts
Posted 2004-11-14 1:21pm
Orpheus
member
13860 posts 2024 snarkmarks Registered: Aug 26th 2001 Occupation: Long Haul Trucking Location: Long Oklahoma - USA
looks like this trick was used on those light fixtures duncan :lol:

strange building, nice but strange.. tis yours?
Re: Problem with displacements alpha texture Posted by Arzie on Sun Nov 14th 2004 at 1:36pm
Arzie
20 posts
Posted 2004-11-14 1:36pm
Arzie
member
20 posts 282 snarkmarks Registered: Nov 14th 2004 Occupation: - Location: -Finland
Ah, now i figure it out somehow. Needed just little thinking :wink: . Its hard tho with notepad.

Aye, it is a nice looking map there.
Re: Problem with displacements alpha texture Posted by Orpheus on Sun Nov 14th 2004 at 1:56pm
Orpheus
13860 posts
Posted 2004-11-14 1:56pm
Orpheus
member
13860 posts 2024 snarkmarks Registered: Aug 26th 2001 Occupation: Long Haul Trucking Location: Long Oklahoma - USA
Arzie said:
Ah, now i figure it out somehow. Needed just little thinking :wink: . Its hard tho with notepad.

Aye, it is a nice looking map there.
assuming you sorted it out, with no assistance from your fellow members, you may claim credit for the kill..

but you must type the solution down, and then change the responce to answered, which is blue.

[color=white]if a fellow members answer was correct, mark theirs blue instead.[/color]
Re: Problem with displacements alpha texture Posted by Arzie on Sun Nov 14th 2004 at 2:23pm
Arzie
20 posts
Posted 2004-11-14 2:23pm
Arzie
member
20 posts 282 snarkmarks Registered: Nov 14th 2004 Occupation: - Location: -Finland
I am sorry about it, but i didnt understand the whole thing there :razz: . I was looking at ReNo's map, and thought than theres no need to do it with side ways, cause you can do all at top to down. Like, making "255 255 0 255" makes a texture dot at the map, you can place it on top of the hill, so it make the top as alpha texture.

and im not trying to get credit here with anything.
Re: Problem with displacements alpha texture Posted by Orpheus on Sun Nov 14th 2004 at 2:38pm
Orpheus
13860 posts
Posted 2004-11-14 2:38pm
Orpheus
member
13860 posts 2024 snarkmarks Registered: Aug 26th 2001 Occupation: Long Haul Trucking Location: Long Oklahoma - USA
/me looks at members number and talks slowly.. slides into admin mode for a moment

ok, our site is set up in such a way as to have a limited successful search option.. it uses keywords to find answers to problems, in this way you do not post as many redundant questions.. (you as in forum members, not you personally)

ok, you the member who began this thread have the option of marking correct answers "correct" .. the yellow answers are perspective possibilities for you to chose from.. or if they are of no assistance and you personally figure out a solution you may post the answer, and mark it as correct.

the thing is, do not take credit prematurely, and do not mark answers correct or incorrect until you are certain they are so.

now, you claim to have solved your dilemma, post the solution and mark it correct, so the database can benefit from your knowledge..

there is a drop down box with choices.. use it.

hope that made more sense.. :smile:

slides back out of admin mode
Re: Problem with displacements alpha texture Posted by ReNo on Mon Nov 22nd 2004 at 12:55am
ReNo
5457 posts
Posted 2004-11-22 12:55am
ReNo
member
5457 posts 1991 snarkmarks Registered: Aug 22nd 2001 Occupation: Level Designer Location: Scotland
I'm going to mark my suggestion as correct just to get this case
closed. The problem was obviously just a small misunderstanding of how
the array of numbers in notepad relates to the grid in hammer. I don't
think my answer was particularly helpful to this person but I do
believe it explains all you can hope to about the topic.