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

Community Tip - Help us improve the PTC Community by taking this short Community Survey! X

flipping a model

potatochips
14-Alexandrite

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
Announcements

Top Tags