Jump to content

flatten terrain


Rick
 Share

Recommended Posts

I'm wondering what commands I would look into for flattening terrain. I'm thinking in terms of say an RPG if I want to place a building on uneven terrain that I would be able to flatten the area around the building so it's level on the ground. Has anyone tried something like this?

Link to comment
Share on other sites

SetTerrainHeight( terrain:TTerrain, x, y, height# ) seems odd to me. Why x & y? Wouldn't it be x & z?

 

I'm picturing find all the x & z points in the terrain that the object would be placed on. Then maybe pick the "middle" point and set all the surrounding heights to that so they are all the same height?

Link to comment
Share on other sites

Yup, hardest part (and it's not that hard) is converting the world space coordinates to the grid position SetTerrainHeight expects. You just have to know the terrain size and resolution and that 0,0 is the center of the terrain. Is the current size/resolution available? I seem to remember a post that said something about it, but I'm old and my memory don't work any betterer than my talk does.

Windows 7 x64 - Q6700 @ 2.66GHz - 4GB RAM - 8800 GTX

ZBrush - Blender

Link to comment
Share on other sites

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.

 Share

×
×
  • Create New...