"We offer new support options and therefor the forums are now in read-only mode! Please check out our Support Center for more information." - Vuforia Engine Team

VideoPlayback Sample

hey

I am using a chroma key shader to play a video, how can i scale the video dimension to the screen height and width rather than the target height and width?

 

AlessandroB

Wed, 03/20/2013 - 13:05

Hi,

the video is rendered on a textured rectangle which is aligned with the trackable surface (i.e. it is oriented in 3D space), so its scale will only make sense in the 3D world; 

thank you for the reply

is there any way to trick the system and play the video with height and width of the device

my video is chroma keyed using a shader for transparency, i want to detect the marker and then the video to be played on top of the camera stream.

Hi,

you could achieve that by setting the modelview matrix to identity (instead of computing it from the trackable pose) and the projection matrix to an orthographic projection, using this function: