fenomas / noa

Experimental voxel game engine.
MIT License
608 stars 86 forks source link

Is there a way to draw on the gaming canvas #170

Closed levlups closed 2 years ago

levlups commented 2 years ago

I tried to draw on the noa.container.canvas but it doesnt work ??? I cant get the context("2D") , any ideas???

fenomas commented 2 years ago

HTML canvas objects only do one mode - noa's is using webgl, so that's why trying to get a 2D context returns null. If you want to draw 2D stuff on top of the 3D scene, that's probably something to ask in the babylonJS forums about?