How do I Change Color of a Model?
Jul 18, 2019
09:25 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Jul 18, 2019
09:25 AM
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,
Solved! Go to Solution.
Labels:
ACCEPTED SOLUTION
Accepted Solutions
Jul 18, 2019
09:56 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Jul 18, 2019
09:56 AM
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
Jul 18, 2019
09:56 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Jul 18, 2019
09:56 AM
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!
