ArunP Posted September 9, 2017 Share Posted September 9, 2017 When i recreate texture or material, clone/dispose created more one texture (clone logic incorrect material.texture.clone() and material._texture.clone()) example https://www.babylonjs-playground.com/indexstable#Y48SUQ this is very important for dynamic scene, please fix source ** I tryed run in this latest version and saw what recreate correctry, but i not undersend how... and other -- i see what canvas2D will be not suported in future? I see GUI, this is very cool feature, but GIU can't do many tasks... Tell me whether it is possible to work with canvas2d in babylon.js 3.0, or will the support be returned in the future? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted September 11, 2017 Share Posted September 11, 2017 Hello I suggest using bjs 3.1 if it fixes your issue. Canvas2d was removed in favor of GUI. What feature from Canvas2D are you missing? Quote Link to comment Share on other sites More sharing options...
ArunP Posted September 11, 2017 Author Share Posted September 11, 2017 2 hours ago, Deltakosh said: Hello I suggest using bjs 3.1 if it fixes your issue. Canvas2d was removed in favor of GUI. What feature from Canvas2D are you missing? As I understand the problem, not only my ... I do not know English so well to explain. but here are some examples. canvas2d correctly displayed the fonts (bold / normal / italic size... etc). Example canvas2d - http://joxi.ru/8AnoBv7TjMj8vr GUI: http://joxi.ru/L21zRyZS8k8WMA How I did not try to insert Electrolize bold so it at me and was not installed. The containers was were easiered to align and scale in the one inner scene layer. canvas2d it was easy to use sprites. In the GUI, I got it only after the dances with a tambourine and only by observing the dimensions view and not the mathematics. canvas2d allowed direct access to the object canvas. In the GUI, the changes were not rendered. Maybe I just did not understand api. The GUI is much simpler and more convenient than the cumbersome configs. But so far the functional is less than ( GUI is a great solution - good example how is must be, but need time for adapt and looking alternative Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted September 12, 2017 Share Posted September 12, 2017 Hello, regarding fontstyle this is something we can add if you want (bold, italics and so on). Anyway canvas2D should still work even with Bjs 3.1 as long as you call this line: Babylon.Tools.getClassName = Babylon.Tools.GetClassName Quote Link to comment Share on other sites More sharing options...
ArunP Posted September 13, 2017 Author Share Posted September 13, 2017 That would be great! I've already removed the extension ... Problem in class Canvas2d. Internal references led to remote properties of BABYLON possibly inside the assembly Canvas2d there is this override. Babylon.Tools.getClassName = Babylon.Tools.GetClassName I diden't saw. nockawa has been updating the repository a long time ago, so this is logical. And in source codes on how much I understand it never and did not have. . on PG everything seems to be all the scenes where the canvas2d was used, now breaked.https://doc.babylonjs.com/playground?tag=canvas2d When you can add support for styles in the GUI? And what will be the target version? Thanks for you responce. I have long wondered how you manage to do everything. Presentations, moderation. programming, tutorials and much more... =) Wingnut 1 Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted September 13, 2017 Share Posted September 13, 2017 Hello this is done (in the 3.1 preview): https://www.babylonjs-playground.com/#XCPP9Y#247 Quote Link to comment Share on other sites More sharing options...
ArunP Posted September 13, 2017 Author Share Posted September 13, 2017 6 hours ago, Deltakosh said: Hello this is done (in the 3.1 preview): https://www.babylonjs-playground.com/#XCPP9Y#247 Thanks! 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.