Log in or register to post comments

Rotate video texture

July 4, 2013 - 1:38pm #5

Hi guys, 

I am trying to rotate my video texture 90 degree. I want to change angle between marker and video texture.

I mean they should be perpendicular to each other as the attach file

Anyone help me for this ?

Thanks

 

AttachmentSize
Image icon video_texture_on_the_marker .jpg140.76 KB

Rotate video texture

July 4, 2013 - 10:59pm #4

Hi, have a look at the code in renderFrame() in VideoPlayback.cpp and simply add a rotation before the code that draws the texture rectangle, using SampleUtil::rotate() function.

 

Rotate video texture

July 5, 2013 - 11:20am #3

Hi AlessandroB

 
Thank you for your quick response, I did what I want. Thanks alot man.

Rotate video texture

July 5, 2013 - 11:38am #2

you're welcome

Rotate video texture

January 5, 2017 - 2:11am #1

Hey,

When I rotate the video through 90 degrees (in Script and Unity), the video is not stable anymore. It starts following the camera. Any idea why this is happening?

Log in or register to post comments