Terrains, skys, Oceans, anything to do with the environment

Terrain Height

Terrain Height

Postby Shando » 02 Apr 2013, 07:44

Hi Guys,

Is there any way to find the height of the Terrain at a certain point in 3D space?

Basically, I want to create a small piece of code that randomly drops Trees, Bushes and Rocks onto the Terrain, but only if the location is within certain parameters:

Trees - not above 50m and not below 0m (I'm planning on placing water in the scene which will be -1m and below)
Bushes - not above 75m and not below 0m
Rocks - not below 25m

I'm assuming that height will be expressed in metres??

Thanks

Shando
User avatar
Shando
Skyline Moderator
Skyline Moderator
 
Posts: 560
Joined: 06 Mar 2013, 22:35
Location: Moffat Beach, Queensland
Skill: Programmer
Skill: Scripter
Skill: Level Designer

Re: Terrain Height

Postby SolarPortal » 03 Apr 2013, 16:51

There is no lua commands that support this yet, but i will put a terrain library together that will allow you to get a height from an x/z position and a few more commands.

we will release this as a patch as soon as it is complete :D

I'm assuming that height will be expressed in metres??

yes.
User avatar
SolarPortal
Skyline Founder
Skyline Founder
 
Posts: 3631
Joined: 29 Jul 2012, 15:56
Location: UK
Skill: 3D Modeller
Skill: 2D Artist
Skill: Programmer
Skill: Level Designer

Re: Terrain Height

Postby Shando » 03 Apr 2013, 21:34

but i will put a terrain library together that will allow you to get a height from an x/z position and a few more commands


Once again, more goodies coming our way :mrgreen:

we will release this as a patch as soon as it is complete :D


And again, "ask and ye shall receive" 8-)

Regards

Shando
User avatar
Shando
Skyline Moderator
Skyline Moderator
 
Posts: 560
Joined: 06 Mar 2013, 22:35
Location: Moffat Beach, Queensland
Skill: Programmer
Skill: Scripter
Skill: Level Designer

Re: Terrain Height

Postby SolarPortal » 04 Apr 2013, 09:14

lol :D
User avatar
SolarPortal
Skyline Founder
Skyline Founder
 
Posts: 3631
Joined: 29 Jul 2012, 15:56
Location: UK
Skill: 3D Modeller
Skill: 2D Artist
Skill: Programmer
Skill: Level Designer


Return to Environment

Who is online

Users browsing this forum: No registered users and 1 guest

cron