Scripts / Tree shade script - auto array populate

Author
Message
!nullptr
Forum Support
9
Years of Service
User Offline
Joined: 27th Mar 2015
Location: Australia
Posted: 18th Apr 2015 21:40 Edited at: 18th Apr 2015 21:49
As part of my concept testing for an Australian outback themed project I needed a script to apply a "shade" value of trees, specifically an accumulative effect (given outback trees are found in clumps as averse to "forests".)

I ended up with a script that allows a tree to be added in the IDE, "tree shade" script applied, "health" value set and simply copy pasted at will and at random with no need to keep track of the count.

For coders, they may be interested in how the array is auto counted and populated.

See comments for use - specifically performance issues if you get stupid about it. I tested it with over 500 (low poly) trees and didn't even notice it was running so I know it works when used within it's intention boundaries. See comments for more information.

Development/ Gaming Rigs
Sys 1: i7-4770 (3.5)/16Gb/128 SSD/3Tb/970gtx/2 x 23, 1 x 27 LCD - Sys 2: i7/8Gb/670gtx/1.5Tb/1 x 23 LCD - Sys 3: Amd Quad/8Gb/645gtx/1Tb/30" LCD

Attachments

Login to view attachments
PM
Pirate Myke
Forum Support
13
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, California
Posted: 18th Apr 2015 21:47
Looks very interesting, Glad you tagged the script by both forum names. its hard to know who your talking to sometimes.
I am myke1net on the steam board.

Nice script. great work again.
Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2400 Mhz, 4 Core(s), 4 Logical Processor(s), 8gb RAM, Nvidia gtx660, Windows 7 Pro 64bit

Tarkus1971
Audio Media Maker
9
Years of Service
User Offline
Joined: 24th Feb 2015
Location: England, UK
Posted: 19th Apr 2015 15:35
great script sistermatic
Devcore35
GameGuru TGC Backer
9
Years of Service
User Offline
Joined: 5th Aug 2014
Location: Rouen (76) - France
Posted: 19th Apr 2015 19:38
Great script ! Thank you !
PM

Login to post a reply

Server time is: 2024-05-06 09:25:44
Your offset time is: 2024-05-06 09:25:44