[Guide] Displacements - Basic Construction

Freyja

aa
Jul 31, 2009
3,009
5,838
Lots of people have asked about displacements recently, and with YM's tutorial being half-broken, and IMO a inferior method of constructing displacements, I've been requested a few times to write this tutorial on how I do my displacements.

Disclaimer: This tutorial is more about the method of constructing the base brushes. I will write another tutorial soon on the theory of how to actually sculpt and texture and design the displacements.

This method is a lot faster than the others, and a lot easier on your sanity.

I will be using a similar cliff structure to YM's original tutorial in order to highlight the differences.

This is the product we will end up with:

nVYUYaA.jpg





The basic foundation of this method is that displacements sew by the alignment of their faces, not the base brush underneath. This means that ALL these configurations below will sew together (faces that turn into displacements are shown selected):

chfEjOh.png

R5GmNEB.png

HZJv1qE.png

F2uzk4B.png

25cRber.png


So what does this mean? This means that instead of complicatedly constructing your displacements with miltered corners and thick brushes, which gets almost nightmarish on complex structures, we can build our displacements out of basic blocks and still have it all sew nicely together. So let's get started!

Here we have the two basic components that will make up this entire cliff structure. A 256x256x256 cube, and a 512x512 ground block.

mWIIhYK.png


Next, we will shift-drag these cubes and start to build the base brush structure of our cliff. Make sure they stay together - it's just like large lego! As long as they sit nicely together on the grid like this your final product will sew. You can also see hehre I've moved them to align with the ground brush like one of the examples above.

BGXNAZU.png


When it comes to inner corners, you don't actually need this brush that I have selected. It won't be seen, and you should delete it when you're done. The top block we'll need though - as the top of it will serve as ground on top of the cliff.

S9WqpYW.jpg


Continuing to build the structure, I've deleted one of the blocks to make the tunnel that will feature at the end of the build.

6Jc9IcS.jpg


Next, I copied the ground tiles around to that they fill up the ret of the space. You'll notice that they're twice the size of the cliff blocks - this is fine, they'll still sew as long as they're exactly twice the length, or half the length of the touching face. I do this because the ground usually needs a bit less resolution in displacements.

XOyUFGE.jpg


The one inside the tunnel you can downsize to fit nicely.

UItZupY.jpg


Next, I go ahead and select all the faces that will turn into displacements, at least on the cliff to start with. You can do this is sections, which I reccomend because it's crazy trying to select an entire map's worth of displacements at once.

fOz1Kn2.jpg

GPIgQGu.jpg


Then turn them into displacements as you'd normally would. I used power 2 here.

cikMdUc.jpg

CgQd6dN.jpg


As you can see, the block from earlier was untouched because it has no outward facing faces. This is usually when I delete it.

2owYyrA.png


And this is our final structure - all turned into displacements and it should sew perfectly together.

2Fs8bSq.jpg


Next, we'll start actually turning it into a nice looking cliff. The way I do this is by using smooth with the face normal tool in displacements. To get started, I usually make a bunch of cubes and rotate them like this - this gives me 45 degree faces in the main directions.

RkfkJZe.png


You'll notice that by default, your displacement paint geometry tool is set to 'face normal'. This means that you can sample the angle of another face somewhere in the map and use that as the push/pull direction. If you alt-right click on the face pictured here...

hJSsXq3.jpg


Your displacement tool will rotate it's axis to match that face, and you can now push, pull and smooth in that direction!

9hKnAqW.jpg


So then I go through and smooth out the right angled corners. You can see here, I sampled the face correspinding to the inner corner and selected smooth in the paint geometry window. You'll also notice that I only have the direct two displacement faces selected here - this is because otherwise, smooth will reek havok with the top and bottom of your cliff structure. We'll go into that shortly.

AWSNmC2.jpg


Smoothing with light, gentle clicks (don't hold it down!!) we can get a nice curved shape out of these displacemnets in this way.

xaVtnZC.jpg


Now to fix up the parts of the cliff we left behind - select the face of the ground in the corner. Using the same face normal angle - just with raise/lower selected, we pull this corner out from under the new smoothed corner. This makes it sew a lot nicer and requires less fixing up when we get to that stage. You can do this with the top too, but it doesn't matter as much on inner corners like this.

OPl9mqf.jpg


And as you can see, once we hit sew the displacement comes and meets your new smooth corner nicely.

XLUa1AD.jpg


Going through and doing the rest of the corners in this way - I noticed that I missed some of the floor tiles! So I just shift-dragged and fit these on the edge here. You can also see that I've "pushed back" the corner on the top of the cliff here, similar to what I did in the last part.

DkrofD2.jpg


From here, I went through and just roughed up the displacements a bit. Using the face normal, you can smooth the corners between the top of the cliff and the walls - or the walls and floor if you want. You can round the roof of the cave too. I also suggest pulling and pushing the walls around a bit just to get an interesting shape for the cliffs - usually I pull the bottoms and tops out a bit, vary the height a bit too, and roughen up the ground. I also did some alpha painting to fix up the textures.

NwweFAB.jpg


And here's our result - it could do with a lot of polishing but you get the idea of how to construct displacements in this manner.

nVYUYaA.jpg
 
Last edited:

Freyja

aa
Jul 31, 2009
3,009
5,838
You could very easily make them from larger brushes.

However, splitting them up gives a larger resolution to work with, and it also allows for finer construction of the displacements - like the tunnel above. I just prefer to work with a standardized cube size to begin with and them edit from there when the situation desires.
 

Muddy

Muddy
aa
Sep 5, 2014
2,581
4,597
Next, we'll start actually turning it into a nice looking cliff. The way I do this is by using smooth with the face normal tool in displacements. To get started, I usually make a bunch of cubes and rotate them like this - this gives me 45 degree faces of all the directions possible.

http://i.imgur.com/RkfkJZe.png
Fuck me that's clever.
 

Pocket

Half a Lambert is better than one.
aa
Nov 14, 2009
4,699
2,581
OK, show of hands, who here besides Freyja had ever heard of the alt-right-click trick before now?

We keep finding these new undocumented techniques for doing crazy stuff and it's making my head hurt. :psyduck:
 

Bloodhound

L6: Sharp Member
Jan 3, 2011
316
489

tyler

aa
Sep 11, 2013
5,100
4,621
OK, show of hands, who here besides Freyja had ever heard of the alt-right-click trick before now?

We keep finding these new undocumented techniques for doing crazy stuff and it's making my head hurt. :psyduck:

I've known forever. Actually I told her about that a few weeks ago. I am surprised people don't know about it.
 

DonutVikingChap

L5: Dapper Member
Mar 15, 2013
233
140
OK, show of hands, who here besides Freyja had ever heard of the alt-right-click trick before now?

We keep finding these new undocumented techniques for doing crazy stuff and it's making my head hurt. :psyduck:

I don't remember who it was but someone taught me that method when I was working on the huge displacement quarry in pl_invasion, except using a block like this, which then ended up on one of the buildings in the map when I was done with it:
445b50088f0895c3e45a6682f5d405d3.png
But I ended up mostly using the shiny new "Screen XY" thing in the Sculpt menu instead.
 

Freyja

aa
Jul 31, 2009
3,009
5,838
I've known forever. Actually I told her about that a few weeks ago. I am surprised people don't know about it.

I've been using face normal for years...you can go back and watch the keikoku 72h steam from last year and watch me use it there!... I learned about it from Booj when he made that fancy cube so many years ago. (And I don't remember you telling me this either, sure it wasn't someone else?)
 
Last edited:
Sep 7, 2012
638
501
I swear that trick was featured in YM's tutorial on badlands-style displacements because he used it a lot for hoodoo.
 

tyler

aa
Sep 11, 2013
5,100
4,621
I've been using face normal for years...you can go back and watch the keikoku 72h steam from last year and watch me use it there!... I learned about it from Booj when he made that fancy cube so many years ago. (And I don't remember you telling me this either, sure it wasn't someone else?)

Oh, I think I'm thinking of telling you about scaling the orb thing. Was that it?
 

Freyja

aa
Jul 31, 2009
3,009
5,838
Oh, I think I'm thinking of telling you about scaling the orb thing. Was that it?

Yes I remember you telling me that now and being amazed at learning a new trick, but I have already forgotten how to do it. It would be much appreciated if you could post it here for the thread and I'll cover it in my next part...
I swear that trick was featured in YM's tutorial on badlands-style displacements because he used it a lot for hoodoo.

It was, I was looking at that tutorial earlier today.
 
Last edited:

tyler

aa
Sep 11, 2013
5,100
4,621
If you hold down alt and M1 and then move the mouse up or down, it will scale the displacement tool accordingly so you don't need to stop painting geometry to change the size of the orb.
 

MoonFox

L10: Glamorous Member
Mar 17, 2015
739
74
http://puu.sh/j7yE4/7c0bc2c359.vmf
Just use 'Save As' and then put it in Team Fortress 2/bin/Prefabs.
I am gonna go ahead and assume it works, all I get are link action commands (open, open in new tab, open in new window, inspect element), if there is another place I could download this prefab, it would be helpful.
 

Tumby

aa
May 12, 2013
1,087
1,196
I am gonna go ahead and assume it works, all I get are link action commands (open, open in new tab, open in new window, inspect element), if there is another place I could download this prefab, it would be helpful.
(I'm german so I gues I will have to translate the button I have myself)
I can do the following 2 things:
  • Right clicking the link and then clicking "Save Target As..."
  • Opening the link in a tab and then right clicking the text and clicking "Save Page As..."
 

MoonFox

L10: Glamorous Member
Mar 17, 2015
739
74
Its opening as a .txt, I know it should in file source, but not as a map


some days my English is pretty bad for brit, but it opens in windows as a .txt and works similar, it does not copy download, and my best bet is to make my own prefab for my home system
 
Last edited: