cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X

flipping a model

potatochips
13-Aquamarine

flipping a model

is there a way to flip a model in vuforia studio?

1 REPLY 1

Yes, there is a way to flip model through JS Code.

function flip(src,target){
 var img = new Image();
 img.onload = function(){
  var c = document.createElement('canvas');
  c.width = this.width;
  c.height = this.height;
  var ctx = c.getContext('2d');
  ctx.scale(-1,1);
  ctx.drawImage(this,-this.width,0);
  this.onload = undefined; 
  target.src=c.toDataURL();
 }
 img.src=src;
}

 

Please go through above example 

Regards,
Swapnil More
Top Tags