FxFoliageReplicator Question ...
by BJNelson · in Torque Game Engine · 09/26/2004 (8:57 pm) · 4 replies
Hi guys,
I've managed to setup a fxFoliageReplicator using the foliage.jpg from the default trees without any problems. However, when I save a new grass image and try to use it for the foliage, all I get is untextured billboards.
I've tried renaming the default tree foliage to foliage3 and loading it with the same results which leads me to conclude that the image somehow needs to be loaded into the engine before I can use it. The tree foliage is loaded in with the tree model, should I just create a small grass model and place it somewhere to preload it?
Thanks,
Matt
I've managed to setup a fxFoliageReplicator using the foliage.jpg from the default trees without any problems. However, when I save a new grass image and try to use it for the foliage, all I get is untextured billboards.
I've tried renaming the default tree foliage to foliage3 and loading it with the same results which leads me to conclude that the image somehow needs to be loaded into the engine before I can use it. The tree foliage is loaded in with the tree model, should I just create a small grass model and place it somewhere to preload it?
Thanks,
Matt
About the author
#2
This is what I have done:
To test the fxFoliageReplicator I used the foliage.png file which is located in data/shapes/trees/foliage.png
Once I had a working prototype, I created grass.png and put it in the same directory then tried to load it into the replicator with no luck.
I then renamed foliage.png to test.png and tried to load that, also no luck.
From this I concluded that foliage.png was working because it's already loaded for the tree dts. My grass.png is not :{
Hope that makes more sense?
09/26/2004 (11:15 pm)
Heh, I reread my post and yes, it was confusing. Sorry about that.This is what I have done:
To test the fxFoliageReplicator I used the foliage.png file which is located in data/shapes/trees/foliage.png
Once I had a working prototype, I created grass.png and put it in the same directory then tried to load it into the replicator with no luck.
I then renamed foliage.png to test.png and tried to load that, also no luck.
From this I concluded that foliage.png was working because it's already loaded for the tree dts. My grass.png is not :{
Hope that makes more sense?
#3
ie 32x32 or 128x128, or even 32x128? it must have a # of 2,4,8,16,32,64,128,256,512, so on to work right..
also is the path going to the right file in the replicater code?
ie ~/data/shapes/textures/"your file"
[just a sample pathway] :)
also is the texture in the right folder.. If your paths are right :)
only things I could think of..
09/27/2004 (1:53 am)
Is your png file the right size?ie 32x32 or 128x128, or even 32x128? it must have a # of 2,4,8,16,32,64,128,256,512, so on to work right..
also is the path going to the right file in the replicater code?
ie ~/data/shapes/textures/"your file"
[just a sample pathway] :)
also is the texture in the right folder.. If your paths are right :)
only things I could think of..
#4
I was specifying png at the end of the filename :{
Thanks for you time guys,
Matt
09/27/2004 (3:18 pm)
Ahhh ... *smacks head*I was specifying png at the end of the filename :{
Thanks for you time guys,
Matt
Torque Owner Thomas \"Man of Ice\" Lund