Game Development Community

Foliage Replicator - Minimum RadiusOuter?

by Spencer Boomhower · in Torque Game Engine · 06/04/2006 (6:15 pm) · 5 replies

I'm getting a lot of use out of the Foliage Replicator, but I've just found a problem: I want to make a cluster of foliage that's about 32x32, but I find that making the RadiusOuter that size causes the objects to not show up. From what I can tell, either or both of the RadiusOuter values have to be at least 64. Too big for my needs, at least in this one spot.

Can anyone suggest a way to make that RadiusOuter work with smaller values, or some kind of workaround? Thanks,

-Spencer

#1
06/04/2006 (6:44 pm)
Have you tried increasing FoliageRetries? If that parameter does what I think it does (and I'm not certain about it), the foliage replicator might not be finding any available locations to place the foliage due to the smaller size of the total area. Couldn't hurt to try it unless you've already ruled it out.
#2
06/04/2006 (7:03 pm)
Hi Brian,

I had tried upping FoliageRetries from 10 to a 100 at one point, but just to be sure I did a test: I made the replicator 32x32 and made the retries value 10000. It didn't help. It was a good thought, though, thanks.

-Spencer
#3
06/04/2006 (7:10 pm)
You could make it 64x64, and then use Blockers to shape the foliage:

http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=6467
#4
06/04/2006 (7:13 pm)
It should work, I've done it.

What is your CullResolution set to? Maybe 32? ;)

And your ViewDistance and ViewClosest ?
#5
06/04/2006 (7:25 pm)
@Sam3D:

You win the prize :). The CullResolution was it exactly. When I originally set the CullResolution, whatever documentation I was reading left me puzzled as to what it actually did. After playing with it a bit, 64 (the number I had it at) seemed to not make everything disappear (on a replicator that was probably 128x128 or something) so I left it at that. It didn't cause problems until, as you guessed, I tried making the replicator smaller than 64x64.

This documentation seems to explain it well: http://tdn.garagegames.com/wiki/WorldBuilding/MissionEditor/fxfoliagereplicator

Interestingly, the culling seems to occur whether I check "use culling" or not. It just comes down to the CullResolution.

Anyway, thanks for the help!!

-Spencer

EDIT: PS: Jaimi, thanks for the suggestion, that looks like a cool resource!