Hi All,
I need to add large no of text labels around mesh objects (>300).
I have tried
Dynamic texture with separate mesh for each label
Solid particle system with attaching different material created using dynamic texture.
TextBlock GUI’s
None of these approaches seem to be efficient and tank my FPS by half.
Are these any other ways which I can look into to make the rendering optimised ? Any help would be appreciated.
Hi,
You wouldn’t happen to have an example for your needs?
Labels should be attached to meshes (and should you interact with them?)
There’s recently been a number of topics around this subject in the forum. Choices are basically around using a dynamicTexture, cloning GUI for mesh or using a shader. I think you can exclude the meshwritter (my opinion).
Here a few links that might be of interest to you:
To get better advise, I would really recom you give some more information (or create a small PG).
Meanwhile, have a great day
In this case things went complex, Thin Instances seems to be a good option.
Sadly there are no docs about per-instance uv offset, so custom ShaderMaterial or Node Materials could be needed, with shader or Node Materials, you can parse the per-instance color (vec4) as a uv offset (vec2) and a uv scaling (vec2), so Texture atlas can be used and all the labels would require one texture.
With shader or Node Materials, you can pass camera-related stuff into the shader before each frame, making it possible to compute the billboard transform on gpu.