I've been looking on the freesdk documentation but I haven't found anything about setting up sprites for custom vegetation. I saw some similar topics on crydev but the websites are offline so I can't view them.
At first I thought that sprites are just another LOD, but then I found that 'use sprites' option on the vegetation tab, so I guess that sprites have to be set up in a specific way for the engine to recognize them as sprites. I'm doing my vegetation in max btw.
So, does anybody know how to set up sprites/imposters for vegetation in the freesdk?
Replies
My leaves are using the vegetation shader, and the trunk aswell. I have also painted the vegetation with the vegetation tool, and the 'use sprites' options is set to true, but it does no seem to create any sprites for me.
I guess I will just manually set up a billboard as a LOD mesh. However, the problem now is that it will not face the camera. Maybe a X-Tree will do the trick.
I think I haven't expressed myself clearly enough, I mean, I want the whole tree to be a billboard, a quad with a diffuse+alpha channel like here, not just the leaves. Maybe the leaves do switch to a sprite, but since I have a lot of them I can't notice it and the improvement in performance is almost 0.
The problem of doing this with lods is that the billboard won't always face the camera. Probably the only option for me is to use the lod+x-trees method.
I've gotten sprites to work myself and it looks like it's replacing the entire mesh, but for some reason the sprites don't have the texture. This is about as far I've gotten though