Log in or register to post comments

Change color of 3D model

April 10, 2012 - 7:38am #1

Hi,
how can I change the color of 3d model in AR application without using virtual buttons?
It is possible in Unity? :confused:

Tank you.

reddog

Re: Change color of 3D model

April 13, 2012 - 8:01am #6

Attach it to an object at the top level of your project hierarchy. This could be a GameObject instance, or an instance of the ARCamera.

Post a snippet of the code you're using if you still have trouble.

Re: Change color of 3D model

April 13, 2012 - 6:39am #5

Tank you for your answer David.
I try to use code from unity forum but without success.
Make a new Mono script with code from Unity forum but where I must put the script. On imageTarget prefab? On object mesh into prefab?

Tank you

Re: Change color of 3D model

April 11, 2012 - 7:44pm #4

Here is a thread on the Unity forum that demonstrates a few methods for accomplishing this - http://forum.unity3d.com/threads/51117-Change-color-of-an-individual-Game-Object

So you are either affecting the material color, or the vertex colors on the mesh.

To accomplish this interactively, simply execute these methods from the appropriate event handler.

Re: Change color of 3D model

April 10, 2012 - 12:03pm #3

Hi David,
sorry for my imprecision (and for my english).
The question is how to change color of the model in the app, when target is detect and model is show by app.
I would change color of an object interactively with a screen touch or with an interface button.
It is possible?

Tankyou

Re: Change color of 3D model

April 10, 2012 - 9:04am #2

To change this procedurally, or simply to change the color in Unity?

To change this in Unity, you can alter the material and texture properties in the Inspector.

Log in or register to post comments