2
$\begingroup$

First of all, I'm actually making a fictional race track mod for a racing simulator, and I already finished the main terrain modelisation and now I'm having some other issues.

One of them is: How to make a separate object respect (snap to) the elevation of the terrain?

Wireframe

Like the screen shot above, I started to make circuit fences using the array modifier, but the pieces of the fence don't automatically match the terrain.
Some constrains may help, but they seem to only be useful in specific situations with simple objects. Is there a easier solution to make the objects match the terrain elevations?

$\endgroup$
0

1 Answer 1

0
$\begingroup$

The Shrinkwrap modifier is probably what you're looking for. It has a mode called "Project" that will just translate the objects along one axis until it reaches the target.

You probably won't be able to use the Shrinkwrap modifier on the fences themselves, though. You'll probably have to create a strip of edges that goes on the ground where you want the fence to be (you can make it not renderable, so it doesn't show up). Then you'd use the Shrinkwrap on that to make it stick to the terrain. Then you'd use Dupliverts to make a fence piece on each vertex of that strip.

There may be a simpler solution. I hope this idea will get the creative juices flowing...

From the Manual on Shrinkwrap:

The Shrinkwrap modifier allows an object to “shrink” to the surface of another object. It moves each vertex of the object being modified to the closest position on the surface of the given mesh (using one of the three methods available).

enter image description here

From the Manual on Dupliverts:

Duplication Vertices or DupliVerts is the duplication of a base object at the location of the vertices of a mesh. In other words, when using DupliVerts on a mesh, an instance of the base object is placed on every vertex of the mesh.

enter image description here

$\endgroup$
6
  • $\begingroup$ Why not just use a curve with an array, and shrinkwrap the curve to the terrain? $\endgroup$ Commented Jul 6, 2016 at 19:48
  • $\begingroup$ Cuz I don't like working with curves :-p $\endgroup$
    – Matt
    Commented Jul 6, 2016 at 21:07
  • $\begingroup$ ....otherwise, it sounds like that'd work, too. $\endgroup$
    – Matt
    Commented Jul 6, 2016 at 21:08
  • 1
    $\begingroup$ Curves aren't hard to use. How did you create the road? I assumed that you used a curve to make it. If you had, you could have used the same curve for your fence as well. They don't have to be the same object. $\endgroup$ Commented Jul 6, 2016 at 21:26
  • $\begingroup$ Hi again and thank you for the quick answer! :) I used the curve to create the layout like you said but it was flat and I created the elevation after that. to be honest I was too afraid creating flat track with hundred of objects and using one curve to modifie the elevation for all of them. Maybe I will try it with a smaller project. $\endgroup$
    – Halulam
    Commented Jul 6, 2016 at 21:49

Not the answer you're looking for? Browse other questions tagged .