augmented reality tutorial - transparency & shadow in unity

12
AUGMENTED REALITY TUTORIALS TRANPARENCY & SHADOW IN UNITY MAX + PhotoShop + Unity ISIDRO NAVARRO AR & VR Architect

Upload: isidro-navarro

Post on 18-May-2015

1.747 views

Category:

Technology


0 download

DESCRIPTION

Augmented Reality Tutorial to create Shadows using Transparency with Unity. The model from 3DMAX is exported to UNITY in FBX format and textures are edited using PHOTOSHOP. Unity includes VUFORIA AR-package to asing Markers. The App 'MODELOS 3D ETSAB AR' is avaiable

TRANSCRIPT

Page 1: Augmented Reality Tutorial - Transparency & Shadow in Unity

AUGMENTED REALITY TUTORIALSTRANPARENCY & SHADOW IN UNITY

MAX + PhotoShop + Unity

ISIDRO NAVARROAR & VR Architect

Page 2: Augmented Reality Tutorial - Transparency & Shadow in Unity

2

AUGMENTED REALITY TUTORIALSBy ISIDRO NAVARRO

TRANSPARENCY & SHADOW IN UNITY

MAX + PHOTOSHOP + UNITY2013

INTRODUCTION• Application using Augmented Reality

‘MODELOS 3D ETSAB AR’– Transparency using UNITY– MAX -> Render to Texture (lightmap)– Photoshop -> Alpha Channel– Unity -> Shader with transparency from Alpha.

Page 3: Augmented Reality Tutorial - Transparency & Shadow in Unity

3

AUGMENTED REALITY TUTORIALSBy ISIDRO NAVARRO

TRANSPARENCY & SHADOW IN UNITY

MAX + PHOTOSHOP + UNITY2013

MAPPING• MAX– Insert an Skylight and No Exposure Control

Page 4: Augmented Reality Tutorial - Transparency & Shadow in Unity

4

AUGMENTED REALITY TUTORIALSBy ISIDRO NAVARRO

TRANSPARENCY & SHADOW IN UNITY

MAX + PHOTOSHOP + UNITY2013

• MAX– Unwrap geometries

Page 5: Augmented Reality Tutorial - Transparency & Shadow in Unity

5

AUGMENTED REALITY TUTORIALSBy ISIDRO NAVARRO

TRANSPARENCY & SHADOW IN UNITY

MAX + PHOTOSHOP + UNITY2013

• MAX– Render to Texture each mesh• CompleteMap for objects and LightMap for the plane.• Create new Materials using Diffuse Map only for both.

Page 6: Augmented Reality Tutorial - Transparency & Shadow in Unity

6

AUGMENTED REALITY TUTORIALSBy ISIDRO NAVARRO

TRANSPARENCY & SHADOW IN UNITY

MAX + PHOTOSHOP + UNITY2013

EDITING TEXTURES• PHOTOSHOP– Addition of Alpha Channel to the shadow map• Create a layer with the background

Page 7: Augmented Reality Tutorial - Transparency & Shadow in Unity

7

AUGMENTED REALITY TUTORIALSBy ISIDRO NAVARRO

TRANSPARENCY & SHADOW IN UNITY

MAX + PHOTOSHOP + UNITY2013

EDITING TEXTURES• PHOTOSHOP– Addition of Alpha Channel to the shadow map• Select by color and create an Alpha channel with the

selection• Reducing bright to layer gets darker shadows

Page 8: Augmented Reality Tutorial - Transparency & Shadow in Unity

8

AUGMENTED REALITY TUTORIALSBy ISIDRO NAVARRO

TRANSPARENCY & SHADOW IN UNITY

MAX + PHOTOSHOP + UNITY2013

APPLYING TEXTURES• MAX– Save as PNG image in 512x512 format– Add as Difusse Map to the plane

Page 9: Augmented Reality Tutorial - Transparency & Shadow in Unity

9

AUGMENTED REALITY TUTORIALSBy ISIDRO NAVARRO

TRANSPARENCY & SHADOW IN UNITY

MAX + PHOTOSHOP + UNITY2013

3D MODEL IN UNITY• UNITY– Save the texture maps and the MAX file into the

assets folder of the Unity Project– Assing the model to the Image Target

Page 10: Augmented Reality Tutorial - Transparency & Shadow in Unity

AUGMENTED REALITY TUTORIALSBy ISIDRO NAVARRO

TRANSPARENCY & SHADOW IN UNITY

MAX + PHOTOSHOP + UNITY2013

• UNITY– Activate ‘Alpha Is Transparency’ parameter in the

Texture Map and use ‘Truecolor’ Format

10

Page 11: Augmented Reality Tutorial - Transparency & Shadow in Unity

11

AUGMENTED REALITY TUTORIALSBy ISIDRO NAVARRO

TRANSPARENCY & SHADOW IN UNITY

MAX + PHOTOSHOP + UNITY2013

• UNITY– Select the shader ‘Transparent/Bumped Difusse’– Use the color correction for darker shadows

selecting the Plane object from the Assets folders