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

Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

How do I Change Color of a Model?

kingsbury
3-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
ytella
17-Peridot
(To:kingsbury)

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!

View solution in original post

1 REPLY 1
ytella
17-Peridot
(To:kingsbury)

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!

Top Tags