tranlong021988 Posted July 24, 2016 Share Posted July 24, 2016 Let say I have a plane mesh contain a video texture, how to make it fit camera view (modify position only) ? I know some formula here: http://stackoverflow.com/questions/14614252/how-to-fit-camera-to-object But they not work smooth with device orientation camera (lagging), so if anyone know how to directly draw/streaming video as a background in BJS scene ? I need they render everything in same canvas so DOM Div splitting impossible. Thank you. Quote Link to comment Share on other sites More sharing options...
aWeirdo Posted July 24, 2016 Share Posted July 24, 2016 Hi @tranlong021988, i'm not quite sure if this is what you want, but i'm asuming you're after a video textured mesh to always be in full camera view? perhaps a layer as background can help you out.. Quote http://www.babylonjs-playground.com/#UUXLX#15 i've never tried doing it so i don't know if it even supports video texture but it's worth a try.. tranlong021988 and Wingnut 2 Quote Link to comment Share on other sites More sharing options...
RaananW Posted July 24, 2016 Share Posted July 24, 2016 Jumping in! It is very simple to change the layer's texture to a video texture - http://www.babylonjs-playground.com/#UUXLX#17 Hope this helps! Wingnut and tranlong021988 2 Quote Link to comment Share on other sites More sharing options...
tranlong021988 Posted July 25, 2016 Author Share Posted July 25, 2016 @RaananW @aWeirdo : Trying that . Thanks you. . 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.