Jump to content

Terrain resolution


Rick
 Share

Recommended Posts

When I output the value of terrain.resolution for a 128x128 with 1 meter per tile I get 82309936. When I'm generating my grid I'm looping through the entire terrain and so for a 128x128 1 meter per tile I setup my loop from 64 to -64 stepping by -1. What is the relationship between 82309936 and 128x128 1 meter per tile in such that I can get the x & z values of the corners of the terrain?

Link to comment
Share on other sites

hmmm... i wonder what it could be? :P

 

terrain.resolution gave the resolution... i wonder if terrain.meterspertile gives the meters per tile? :P:lol:

 

and yes, meterspertile does effect the size of the terrain... essentially the meterspertile is nothing more than the X & Z value that is used to scale the terrain. so terrain.scale.x would return the same thing as meterspertile and terrain.scale.y can be used to get the altitude.

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

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...