GameMonetize Posted December 13, 2016 Share Posted December 13, 2016 Starting with v2.6, we introduced the support for WebRTC. So now you can create a specific VideoTexture which will be connected to your default WebCam: BABYLON.VideoTexture.CreateFromWebCam(scene, function(videoTexture) { }, { maxWidth: 256, maxHeight: 256 }); The third parameter is optional and can be used to define minWidth, maxWidth, minHeight and maxHeight. These values will be used to constraint the camera resolution. Example: https://www.babylonjs-playground.com#1R77YT#2 Vousk-prod., meteoritool, adam and 2 others 5 Quote Link to comment Share on other sites More sharing options...
meteoritool Posted December 14, 2016 Share Posted December 14, 2016 Super awesome ! Getting closer to augmented reality I guess ;-) I love how everything is simplified thanx to BJs !!! davrous 1 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.