Jump to content

How to Create Sides on a Ground Mesh?


adam
 Share

Recommended Posts

I can think of a few ways to do this, but I have a couple questions first.  Does it need to be a single mesh?  If so does the bottom need to stitch itself together as it goes to simplify the geometry?

or do you just need something to cap it.

Link to comment
Share on other sites

Cooool playground!  Wow!

Ok, let me roll an idea past ya.  START with your ground mesh on the bottom of the box.  Now raise the Y-height of every point EXCEPT those around the outer edge of the mesh.  Now add about 13... to the height of every noise-affected point.  Your box is 40 high, the land surface sits about 1/3 up, so 40/3 = 13.xx. 

Ya know how displacementMaps tend to raise everything in the middle of a mesh, but leave the outer edges of the mesh... at their original height?  Same with your thing.  Keep your outer edges on the bottom of the box, and then raise all your not-along-edge noise-points normally, +13.  That might work.  You might even want to USE a displaceMap instead of a ground.

Also, if you get all your not-raised edge vertices to be directly under the noise-affected edge vertices... your side walls will be perfectly vertical.  If not, the sides of the mesh will have a steep taper.

Does this make any sense?  In other words, you will be adding one row of vertices on each side of the current ground, and placing each point of those... at the bottom of the box.  Also, if you want nice texture on those sides, good luck.  In my method, the texture will be smears and streaks, I believe.  UV adjusting should be able to fix that, somewhat, I guess.

I think that would work... but you know me, Adam.  More dreamer than coder.  :)  If BJS had a ground.setVertexHeight( {row: x, column: y, amount: z}) helper-function, I might have tried to draw the sides myself.  :)

Link to comment
Share on other sites

  • 3 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...