Rick Posted January 23, 2010 Share Posted January 23, 2010 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? Quote Link to comment Share on other sites More sharing options...
Niosop Posted January 23, 2010 Share Posted January 23, 2010 Wouldn't SetTerrainHeight work? Quote Windows 7 x64 - Q6700 @ 2.66GHz - 4GB RAM - 8800 GTX ZBrush - Blender Link to comment Share on other sites More sharing options...
macklebee Posted January 23, 2010 Share Posted January 23, 2010 you might want to look at this post... perhaps that will help... Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel Link to comment Share on other sites More sharing options...
Rick Posted January 23, 2010 Author Share Posted January 23, 2010 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? Quote Link to comment Share on other sites More sharing options...
macklebee Posted January 23, 2010 Share Posted January 23, 2010 SetTerrainHeight( terrain:TTerrain, x, y, height# ) seems odd to me. Why x & y? Wouldn't it be x & z? X & Y, masterxilo explains this... Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel Link to comment Share on other sites More sharing options...
Rick Posted January 23, 2010 Author Share Posted January 23, 2010 Cool. Thanks! Quote Link to comment Share on other sites More sharing options...
Niosop Posted January 23, 2010 Share Posted January 23, 2010 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. Quote Windows 7 x64 - Q6700 @ 2.66GHz - 4GB RAM - 8800 GTX ZBrush - Blender Link to comment Share on other sites More sharing options...
macklebee Posted January 23, 2010 Share Posted January 23, 2010 its in that same post... well essentially... once you can get the scene's child, terrain, you should be able to use getkey to get the resolution and meterpertile... Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel Link to comment Share on other sites More sharing options...
Recommended Posts
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.