Dear PC Developers,
I’ve been trying to have a Playable world generated. I have a Mesh with the topology of the level and want to spawn trees/forests aswell as grass on the level. Now the level is really big (5km x 5km) and fairly flat. I’ve been working with the templates feature (thanks for adding that!) and spawing random instances of templates in certain areas.
Now to fill just a simple view I generate thousands of elements with textures (Trees and grass .png) on the world layer and therefore my performance is affected. I’ve tried using Batch Groups where each template (so every different texture) has it’s own batch-group (tree1, tree2, tree3, tree4 and grass1, grass2, grass3). This improved performance perfectly but now I am facing graphical issues. Now the batch groups seem to always render infront of other objects of other batch groups. (all Tree 4s are infront of Tree 3, Tree3 is always infront of Tree2 etc.)
you can see an example here: https://playcanv.as/p/6ElSFD6U/
Has anyone got an idea on how I can fix this, so every object is rendered correctly depending distance from the camery on the world layer ? Or maybe have an alternative. I’ve tried it with texture atlas and sprites but that was even less perfmant than image-elements.
Thank you and kind regards,
Bruno