devour Posted June 11, 2018 Share Posted June 11, 2018 Hey Guys, i need a best practice for drawing text on multiple meshes with the same material. In my first attempt i created a StandardMaterial and DynamicTexture for each mesh and called the drawText method on the DynamicTexture. This works but it reduces the performance. The framerate drops till it become unplayable (browser freezes). I would be grateful if u have solution for this. Quote Link to comment Share on other sites More sharing options...
JohnK Posted June 11, 2018 Share Posted June 11, 2018 Hi and welcome @devour Have you tried applying the same dynamicTexture to each mesh? In this playground different text is written on different rectangles using SPS system and one large dynamicTexture. It should be extendable to meshes other than rectangles. https://www.babylonjs-playground.com/#A9K31I#2 devour and adam 2 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.