3Dlove Posted June 3, 2015 Share Posted June 3, 2015 Hello guys I would like to drawText, but WebGL requires canvas size of power of two (256*512 for instance, but 168*220 is not possible). So here is an example : http://www.babylonjs-playground.com/#1AGOSB You can see 2 plans with text : - the plan from the bottom (titleMesh) is OK and good because its dimensions have the same ratio as the canvas (width = 2 * height), but how to have the same result if it has'nt the same ratio : example : (width = 2.5/0.7 * height) - the plan from the top (titleMesh2) : the text is stretched :/ how to don't stretch the text and keep the good ratio and the same visual aspect like titleMesh (in function of dimensions of the mesh) Thanks for your help :-) Quote Link to comment Share on other sites More sharing options...
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.