-
I am trying to load the video using createVideoTexture. Using the below code, I can able to load the video successfully. But video rotation is upside down and it is stretched to fit the entire texture size.
Screen shot of the video texture ![]() Help me to find out the solution for rotation and stretch problems. Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 7 replies
-
Indeed, just like an image, the video's dimensions are mapped from 0 to 1 in UV coordinate space. In general the way to fix this is to change your model's UV coordinates. However, we just added a feature to make this much easier: see |
Beta Was this translation helpful? Give feedback.
-
I have changed my js link from released version to pre-release version (https://modelviewer.dev/node_modules/@google/model-viewer/dist/model-viewer.min.js). ![]() Also, Can you provide sample snippet code for using the |
Beta Was this translation helpful? Give feedback.
-
I can able to rotate the video using |
Beta Was this translation helpful? Give feedback.
-
If I try with just a video element, video is playing fine with audio. |
Beta Was this translation helpful? Give feedback.
It is working fine if you unmute it on the pointer event listener.