idchlife Posted October 3, 2016 Share Posted October 3, 2016 I'm trying to play video inside of sphere, using VideoTexture and have issue. Video is inverted and I can't understand how to invert it to normal state. Quote Link to comment Share on other sites More sharing options...
aWeirdo Posted October 4, 2016 Share Posted October 4, 2016 Hi @idchlife could you please make a PG displaying the issue? It makes it much easier. You can find a video texture to use (already available in the PG) if you go to babylonjs docs and find the video texture tutorial :-) so you don't even have to upload anything. Quote Link to comment Share on other sites More sharing options...
jerome Posted October 4, 2016 Share Posted October 4, 2016 just create your sphere with sideOrientation set to BACKSIDE, let backfaceculling enable and you shoud see the video right from inside your sphere http://doc.babylonjs.com/tutorials/Discover_Basic_Elements#side-orientation Quote Link to comment Share on other sites More sharing options...
idchlife Posted October 4, 2016 Author Share Posted October 4, 2016 @jerome didn't help @aWeirdo Here is example: http://www.babylonjs-playground.com/#1X8NRY#7 If you fly inside sphere you will see video is inverted. Also new problem occured, that it's not only inverted but upside down! How can I reverse those things from the inside of sphere? Quote Link to comment Share on other sites More sharing options...
aWeirdo Posted October 4, 2016 Share Posted October 4, 2016 @idchlife http://www.babylonjs-playground.com/#1X8NRY#8 now it's the correct side up, but ofc still have mirrored effect from the inside. It appears correct now for me, let us know if you believe something is wrong. The "new BABYLON.VideoTexture()" takes an aditional boolean value at the very end which when set to true, inverts the texture on the Y axis, so it basicly it flips it 180* Quote Link to comment Share on other sites More sharing options...
idchlife Posted October 4, 2016 Author Share Posted October 4, 2016 @aWeirdo thank you! It helped a lot! 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.