Game Development Community

FoilageReplicator, mod or pick apart?

by Daniel Thornton · in Torque Game Engine · 08/30/2005 (8:09 am) · 4 replies

Ok, I'm trying to make billboards that I can individually place in my level. But I wan't them to always rotate to face the view/player, like the fxFoilageReplicator does. Not sure what would be the easiest way to do it, modify the replicator, or find the code that makes it always orient, and apply that to my billboards. It seems to me the replicator code is somewhere in the engine, and I don't know c++. but am a little comfortable with torque script. any help or a point in the right direction to any code would help. thanks

#1
08/30/2005 (8:38 am)
If you are using max you can make a two poly shape and name it BBZ::name, that will rotate it around its z axis to always face the camera or just BB::name, then it will face the camera along every axis...
#2
08/30/2005 (9:05 am)
Well, using maya. looking around for how to use BB in the maya exporter. Thanks for pointing that out.
#3
08/30/2005 (9:11 am)
If you don't know C++ modifying Foliage Replicator code (or even creating a new object in code) is probably not a good solution. Daniel's idea is more along the lines of what you want.
#4
08/30/2005 (10:19 am)
The replicator seems to be more of an efficient way to 'generate' the billboards, since it simply passes the seed to the client for foliage placement... so it would seem to me to modify it to not be based off of this number would defeat the purpose of using it :) The suggested solution of exporting a billboard seems to be what you want.