tracking pupils + skin shades
Hi,
Im building a lens with 3D object replacing the person's head. I have 3 questions:
1. I have different textures for skin tones, is there a way create a trigger that would toggle between materials?
2. Is it possible to track a persons pupil?
3. Is there a way to hide the environment (head, body, background) and just show the 3D object?
Thank You,
Dan A
Hi Daniel!
1. You can swap the materials using this script
Add this script to the object that you want to change:
Then you can add value in the materials field and the script will swap through them when you tap the screen.
2. It is not possible to track the pupil at this time.
3. You can select your camera object. You can right click the Input field in the Inspector panel to remove Device Camera Texture from its input. The camera will then use the Clear Color field as the background for your 3D object:
Can't wait to see what you come up with!
Cheers,
Jon
Awesome! Thank you so much Jon!
Will post link when theyre done