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

How do I Change Color of a Model?

SOLVED
Visitor

How do I Change Color of a Model?

Hello,

 

I am wanting to change the color of my model but don't quite know where to do this in Vuforia Studio? I know Unity allows you to make a Material and then can turn that into any color you want to slap onto the desired model. I was wanting to know how can I change my model color?

 

Thank You,

1 ACCEPTED SOLUTION

Accepted Solutions

Re: How do I Change Color of a Model?

Hi @kingsbury ,

 

One of the ways to change the color of the 3D Model is as follows:

  • Drag and drop a model-item on to the 3d Model
  • In Home.js, write a js function similar to the one below:
    • $scope.colorChange = function()
      {
           $scope.view.wdg['modelItem-1']['color']='rgba(0,0,255,0.3)';
      }
  • Call this function colorchange(); in a click event of a button or model-item

Hope this helps!

1 REPLY 1

Re: How do I Change Color of a Model?

Hi @kingsbury ,

 

One of the ways to change the color of the 3D Model is as follows:

  • Drag and drop a model-item on to the 3d Model
  • In Home.js, write a js function similar to the one below:
    • $scope.colorChange = function()
      {
           $scope.view.wdg['modelItem-1']['color']='rgba(0,0,255,0.3)';
      }
  • Call this function colorchange(); in a click event of a button or model-item

Hope this helps!