ian Posted May 6, 2017 Share Posted May 6, 2017 Does BabylonJS support canvas.getContext("2d") for building 2D games ? If it does how to establish things? Is there any playground how to start? greetings Ian Quote Link to comment Share on other sites More sharing options...
Katalonian Posted May 7, 2017 Share Posted May 7, 2017 16 hours ago, Matias said: No. Why would you use 3D framework for purely 2D, when 2D frameworks are optimized for it? It's not ideal to use BabylonJS for 2D. The concept is completely different. In 3D you render 3D models, while in 2D you render sprites. You can do something that is close to 2D because of how camera is positioned. This is what I have done: 2 Mathias, but it looks like from up-above the models you used are different than in normal 3d view. Did you somehow replaced models when in 2d view? Is it actually possible to do so? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted May 8, 2017 Share Posted May 8, 2017 If you want to do 2d inside a texture you can do it with the DynamicTexture: https://www.babylonjs-playground.com/#13XUOM#7 (see line #47) 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.