Jump to content

HL2 Displacement Mapping


m8nkey

Recommended Posts

I've just started playing around with displacements and I've run into some difficulty "capping" the sides of displacements.

I tried to model a displacement road running up a slope. The road had extruded gutters and a foot path which were also displacements. I tried to creat more displacements to fill in the side of the gutter but couldn't get them to match up between the road and the gutter.

Another application I'd like to achieve is a round building with windows cut out.

If my discriptions make no sense I can provide some pics

All the tutorials for displacement modelling I've found on the net have been terrain specific. Can anyone point me in the right direction?

Link to comment
Share on other sites

Thanks for the suggestions

Algor: I use fixed values for vertex movement and only move them on one axis at a time.

Killertomato: Ah, somehow missed the sew tool, reckon I need to have a play with that. I don't need to delete faces, was just going to make several displacements for each element and sew them together.

Erratic: I'm just trying to experiment and mix up the architecture in my current project. Using brushes for curves looks damn ugly. The map comprises of a small street area comprising of two accessable streets. Due to the small size I think I can afford some extra modelled detailing, relying less so on textures.

I'm also considering creating a prop for the curves if the displacements don't work out.

Here's a WIP of what I'm trying to achieve. Textures are placeholders.

displacement.jpg

Link to comment
Share on other sites

i see now what you meant. good luck with the sew tool, as it more then often fails to sew correctly (glad it excists tho!) :)

Depends how neat and regular your displacements are. If you keep things tight then sew will nearly always work.

lets all pray valve creates a new engine and new tools

Compared to all the in-house tools I have used over the last seven years Hammer is very solid and stable. We have some of the best tools, engine and gameplay programmers in our studio, yet our tools are still unstable and flakey since they are in a state of constant development flux. Hammer is a pleasure to work with in comparison.

Link to comment
Share on other sites

For your builting just clip the displacement along the texture borders and sew to regular brushes on the interior..

Unless you mean every individual window pane, which is kinda silly, but then you can just make a new translucence masked version of the texture...

A prop would work but displacements are the best option here due to it's size, lighting, and for render expense.

i see now what you meant. good luck with the sew tool, as it more then often fails to sew correctly (glad it excists tho!) :)

Do you realize that the edges of the brushside from which two displacements are derived need to be co-located to be sewable?

Link to comment
Share on other sites

I just had a play with Smoothing Groups, applying them to both displacements and brushes, and they didn't have any effect whatsoever.

According to the wiki "The lightmap scale must be small enough that at least one lightmap luxel is small enough to fit on each face."

I found this statement a bit ambiguous. Does this mean the lightmap scale must be 1:???:

I played around with lightmap scale, even trying a scale of 1 and still no effect (even though this wouldn't be feasible anyway)

Link to comment
Share on other sites

×
×
  • Create New...