Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / simple forest

Author
Message
Zipir
15
Years of Service
User Offline
Joined: 11th Aug 2009
Location: Turkey
Posted: 29th Jul 2011 16:41 Edited at: 29th Jul 2011 16:41
Hello can anyone help for make forest with instanced objects

load tree object id(1) - ok
make advanced terran id(2) - ok

for t=3 to 503
instance object t,1
th#=get terrain ground height(2,object position x(t),object position z(t))
position object t,rnd(500),th#,rnd(500)
next t

but height positions not correct for instanced trees
Daniel TGC
Retired Moderator
17
Years of Service
User Offline
Joined: 19th Feb 2007
Location: TGC
Posted: 29th Jul 2011 17:08 Edited at: 29th Jul 2011 17:09
Try this tutorial for size:

Forest tutorial
Quisco DaLuse
17
Years of Service
User Offline
Joined: 3rd Feb 2007
Location: USA
Posted: 29th Jul 2011 17:15
Maybe try this also:


You need to determine the random position before you look at what the terrain height is at that point.
Zipir
15
Years of Service
User Offline
Joined: 11th Aug 2009
Location: Turkey
Posted: 29th Jul 2011 17:36 Edited at: 29th Jul 2011 17:36
Quisco DaLuse tnx for example now problem is solved

Login to post a reply

Server time is: 2024-11-22 18:25:46
Your offset time is: 2024-11-22 18:25:46