Apply textures to curved surface

Tutorial collection, comprehensive listings on main site.

Apply textures to curved surface

Postby Tutorial on Wed Oct 03, 2007 7:24 pm

category
General Half-Life 2/Effects

description
Easily texture a smooth curver without adjusting texture angles

keywords
texture, texturing, curve, alt, right, click, arch, smooth, road.


How many of you have tried to texture a surface, e.g. a road, and to let the texture "curve" with the road?

Like this:

Image

The obvious approach would be to set angles in the materials editor, and a little trial and error would do the trick. Perfectionists, like me, however aren't too satisfied with that.

It perhaps has been revealed before, but I decided to write a tutorial on how to create this effect.

Not many people are aware of the Alt-Right-click method to apply textures. If you try it, you will see that it aligns the texture perfectly, and the lightmaps will be conveniently aligned too.

If you've been only right-clicking all this time, it's now time to change that habit into Alt-right-click.

Using this knowledge, we can acheive what we were going to do.

Create your curved road like this:

Image

The edges are the most important things to notice in this tutorial.

Firstly. Apply your texture to anything that's not curved, like the horizontal section of the road:

Image

Then, make sure you alt-right-click texturize the edge that follows that section. Like so:

Image

Now that you know how to apply the texture in this way. proceed to apply the textures along the edge of the road. Like so:

Image

I believe you all know what's coming next. Simply do the same thing by alt-right-clicking the surface now... corresponding to its edge:

Image

And there you have it. Perfectly aligned angled textures. Perfectly would be an overstatment. You might want to texture shift some surfaces so it appears more natural:

Image]

Nodraw the edges after you use them, for enhanced compilation.

In my experience, ever since having discovered this method, I haven't applied a single angle to any textures.

Enjoy those curves now!

-Snownation.
- Don't send PM's to this user -
Tutorial
Not A Real User
 
Joined: Sun Mar 06, 2005 11:00 pm

Postby MrTwoVideoCards on Wed Oct 03, 2007 8:28 pm

Nice tut, makes things a lot easier now. I never knew you could do this!
User avatar
MrTwoVideoCards
Monothetic
 
Joined: Thu Aug 02, 2007 11:18 am
Location: IN YOUR SOUL

Postby Meotwister on Wed Oct 03, 2007 8:57 pm

yeah this is a good method.. I remember finding out about it off a tutorial I think KungFuSquirrel did back during hl1 days.

really it's like a 'eureka!' moment once you figure it out. :P

effective in bringing it up to date for people who don't know about it.

:-)
Check out my continually progressing portfolio!
http://meotwister.com - Finally up! I also blog there, too!

Image

www.NoMoreRoomInHell.com
User avatar
Meotwister
Resolute Games
 
Joined: Wed Jun 01, 2005 3:53 am
Location: Cordova TN YO!

Postby Rooster on Thu Oct 04, 2007 12:42 am

no friggin way, this is awesome lol, thanks man ^^
Visit my village today!
Rooster
Sir Post-a-lot
Sir Post-a-lot
 
Joined: Thu Jun 08, 2006 6:57 pm
Location: Somewhere Over The Rainbow

Postby Zipfinator on Thu Oct 04, 2007 1:11 am

When I use alt+rightclick on things like this is doesn't work out for me as well... Oh well I've also just learned how to do it with displacements using DispEd. If you don't have it it's a great tool for making curves like this, of course this method also works great too :D
User avatar
Zipfinator
Veteran
Veteran
 
Joined: Thu Dec 21, 2006 6:03 pm
Location: California

Postby Valar on Thu Oct 11, 2007 1:06 am

doesn't work here :shock:
all the more aggravated by the use of the "simply" in your tut :x
the textures align not with the curve but as they always do...help ..?
Image
User avatar
Valar
Been Here A While
Been Here A While
 
Joined: Thu Jan 11, 2007 10:59 pm

Postby zombie@computer on Thu Oct 11, 2007 9:49 am

Valar wrote:doesn't work here :shock:
all the more aggravated by the use of the "simply" in your tut :x
the textures align not with the curve but as they always do...help ..?
Use the left alt, not the right one. Also, only use brushsides that actually share an edge (physically touch each other) and lastly, the actual alignment of the sides must be equal (both aligned to world, or both aligned to face)
When you are up to your neck in shit, keep your head up high
zombie@computer
Forum Goer Elite™
Forum Goer Elite™
 
Joined: Fri Dec 31, 2004 5:58 pm
Location: Lent, Netherlands

Postby Valar on Thu Oct 11, 2007 4:26 pm

all done as you say but it still doesn't curve.
as usual its something silly on my end :-D ill eventually work it out.
thx for your help.
Image
User avatar
Valar
Been Here A While
Been Here A While
 
Joined: Thu Jan 11, 2007 10:59 pm

Postby Kubata on Thu Oct 11, 2007 7:23 pm

Thanks for the info, this will shave off a huge amount of time in the construction.
Image
"You can have all the cool effects and the latest technology, but if you don't nail that 30 seconds of fun, you're not gonna have a great game." - Jaime Griesemer
User avatar
Kubata
Been Here A While
Been Here A While
 
Joined: Sat Jan 28, 2006 12:08 am
Location: Alamogordo, NM

Postby Deh0lise on Thu Oct 11, 2007 7:40 pm

I've seen it before but its fine for people who didn't know about that.
User avatar
Deh0lise
Regular
Regular
 
Joined: Sat Sep 22, 2007 11:33 pm

Postby Snownation on Thu Oct 11, 2007 10:58 pm

My tutorial finally gets posted.

Yeah i forgot to mention that it's left alt right click.

For those who still can't get it, pm me and i can go through it.
BrainBread: Source
Image
User avatar
Snownation
Been Here A While
Been Here A While
 
Joined: Wed May 31, 2006 2:24 pm

Postby MrCaleb on Fri Oct 19, 2007 11:33 am

If i knew it was this easy.
You have no idea how long i'v been messing around with this.
Killing maps just because i couldn't get the texture right.

Thanks mate!
LooK ALiVe!
User avatar
MrCaleb
Member
Member
 
Joined: Thu Nov 02, 2006 9:30 pm
Location: Amsterdam

Postby MadTaco on Wed Oct 24, 2007 8:42 pm

This looks really useful. I had this tutorial in my bookmarks, then noticed it was finally posted in this section. I was never able to understand it, but now that I truly look and read the images, I think I understand how you have to use the edges first. I will try this when I get home. Thank you!
MadTaco
Dumpling
Dumpling
 
Joined: Mon Sep 17, 2007 6:12 pm

Postby ThrashRage on Sat Dec 08, 2007 10:20 pm

dont work, just applies regular texture to a curve thingy. yes they are touching.
ThrashRage
Just Joined
Just Joined
 
Joined: Tue Nov 27, 2007 6:08 pm

Postby Psy on Sat Dec 08, 2007 10:29 pm

The best feature of Hammer.
User avatar
Psy
Veteran
Veteran
 
Joined: Sat Dec 03, 2005 5:41 pm
Location: United Kingdom
Next

Return to Tutorials

Who is online

Users browsing this forum: No registered users