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

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
Announcements

Topics available:
AR/VR for Data Optimization AR/VR for Security and Control AR/VR for Inspection