Jump to content
This Topic

Recommended Posts

Posted

its in the sbx file

Terrain {
altitude=500.000000
resolution=2048
meterspertile=2.00000000
hiddentiles=0
...
...
...

Have not tried it but maybe with GetEnitityKey( terrainEnt, "resolution", "" ) if you get hold of the terrain entity.

Roland Strålberg
Website: https://rstralberg.com

Posted

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?

Posted

So upgrading worked. Now is there a way to get meters per tile because that looks like it affects the size of the terrain as well, and I would need to know that.

Posted

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

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.

×
×
  • Create New...