RenderHeads / UnityPlugin-AVProVideo

AVPro Video is a multi-platform Unity plugin for advanced video playback
https://www.renderheads.com/products/avpro-video/
235 stars 28 forks source link

GLSL Shader with OES Rendering - Position Locked ? #1262

Closed FlorianJullien closed 2 years ago

FlorianJullien commented 2 years ago

I am trying to change the position of a mesh that is rendering a 360Video (or flat - I use both in project) in update using camera position I am using OES Rendering on Android to render videos on Meshes using Apply To Mesh Script. This Mesh uses the AVProVideo-Unlit-AndroidOES shader and I am having an issue re-positioning the Mesh. The mesh is a sphere and the behaviour wanted is a basic follow of the Sphere center with the camera. The position is set basically via a script : gameobject.transform.position = cam.position; in Update. There are no problems of rendering : the video loads and displays as wanted. The Question is : Is the position of the rendering locked in the Shader ?

My setup

Possible Lead I guess it has something to do with this line on the Shader but I am afraid I can't go further on this without help ! image

Thank you for your answers !

Ste-RH commented 2 years ago

The calculated transform of the hierarchy, including the spheres gameobject transform, should still be concatenated in. Are you seeing an issue here?

Ste-RH commented 2 years ago

Closing due to lack of response. Please re-open if this is still an issue.