Unite2015 probelight English version

40

Transcript of Unite2015 probelight English version

Building on game Environment

art for mobile platform using the

Light Probes

Yi Sang Yun

CONTENT SLIDE

1. Sample project and speaker introduce

2. What is the light Probes ?

3. How to make light probes

4. Example for using the light Probes, Benefits

5. Attention to using light Probes

6. Conclusion, vision

7. Q & A

Defense Technica

Development company : Kuno Interactive

Sci-fi style defense game

Release : IOS(2013.6), Android(2013.8), Steam(2013.10), XBOXlive, PSN(2014. 4)

Majestic Tactics

Yi SangYun

Kuno interactive - Lead Artist

KGC 2013 Defense Technica Post-moterm for mobile convertion

Guarneri Studio - Environmnet / Technical Artist

Gametech 2015 Unity3D Environmnet art for mobile platform

Facebook Game 3D Environmnet Artist Group manager

https://www.facebook.com/groups/3Dbackground

Development company : Guarneri Studio

Tactical strategies mobile game for Android

Not release yet

Profile

Light Probes ?

Although lightmapping adds greatly to the realism of a scene, it has

the disadvantage that non-static objects in the scene are less

realistically rendered and can look disconnected as a result. It isn’t

possible to calculate lightmapping for moving objects in real time but it

is possible to get a similar effect using light probes. The idea is that

the lighting is sampled at strategic points in the scene, denoted by the

positions of the probes. The lighting at any position can then be

approximated by interpolating between the samples taken by the

nearest probes. The interpolation is fast enough to be used during

gameplay and helps avoid the disconnection between the lighting of

moving objects and static lightmapped objects in the scene.(from unity

document)

Unity Manual - Light Probes(4.X Pro Only)

Unity 4.X use only pro vesion. But unity 5 not limitation

Unity3D 4.x Unity3D 5.x

Make a empty componet. And select Light Probe Group, you can see the Light Probe Group

Component in the scene window.

How to make Light Probes

You can see the white sphere(Probe).

Yellow line is cell. It show the influence between light probes

(it works 4 probes at least)

Unity Manual – Probe Lights

Unity3D 4.x ver You can

see the check the show

probes and Show Cells

Unity3D 5.x ver You can

see the Scene window.(it

baked)

Also check the mesh option in inspector.

Use light probes.

Unity 5 add Reflection probes option.

Defense technica mobile stage 31

Use Light Probes On Use Light Probes Off

Unity5 always see the Cell. If you click using light

probes.(Uncomfortable….)

Lighting prefab for Lightmapping

Lighting prefab for bake the Light probes.

Separate prefabs for prefabs because result com

out brighter than the scene bake setting

Prefab for light probes

Managing Lighting Prefab about Light probes(Unity 4.X)

Unity 5 removed bake Probes menu. So, other solution consideration.(multiply

shader Tintcolor or etc…)

Reasons and benefits of using Light Probe in Project

How can avoid the fixed and quiet lighting by Unlit shader.

- It goes well 50 vs 50 massive battle game design

Less work.(makes the light probes in scenes and bake one more)

- scene use variable concept change the light setting.

- only one person works in environment concept and modeling, TA, effect

Low mobile device can use it(iphone 4S – defense technica)

Majestic Tactics Battlemap 03

Majestic Tactics Battlemap 04

Day and night Scene Example

- it use same props

Majestic Tactics Battlemap 03 Majestic Tactics Battlemap 04

Comparison of the brightness change unit according to the day and night setting probe

Majestic tactics for Android

Draw call and batching call amount over the 1,000 calls

Skinned mesh draw in 55 vs 55

If horseman draw in 110 VS 110.

(too many skinned meshes)

Target Device analasys

Samsung Galaxy S3

4.8”1280x720(HD)

exinos 4412

Quad-core 1.4G, MP4

440MHz

2G RAM

Android

IOS

Apple iphone 5

4” 1136x640

A6(Dual Core – 1.3G +

PowerVR SGX543 3 Gpu

cluster)

1G RAM

The reason battle 50 vs 50 can in mobile device.

Send to device Conclusion

draw Unit caculate Send to server

Calculate in Server

Game Art

Character Environment

Effect

UI Game Logict

Mobile device architecture attached to CPU and GPU.

Variable shader test

Lighting design consider Lambert and Wrapdiffuse.

Character shaders

Character shaders

DeckEdit scene

Left : Probe light / Lambert

Right : Probe light + Rim light / Wrapdiffuse

Unlit shader not using light probes.(Albedo

return only 1 value)

If surface shader compiler include noambient

does not draw.

Light Probes demerits and causion

Similar dynamic lighting

- it is not show the lighting direction

- Just reflection of lighting tone and color. Use only mood and tone.

Influenced by mesh normal.

- Mesh normal face look the down direction, influenced by ambient color.

- Does not look good when the light saturation low.

It should be the located where the change of

light is made.

X, Y, Z mainly problems arising from the

object to move in three-dimensional

axis

Frame rate is no reason for a sudden

fall or the unit is dark or blinking

symptoms appear.

probe problems occur can not be

properly placed in the unit path.

If you check the unit by turning the

cells seem to be engaged only one

line long.

Frame rate drop

Normal and Tangents

face is set to 1 smoothing group and the Normal and Tangent value to Calculate

Bake Even after being affected by the ambient color value.

The need to adjust the ambient color for the scene later Light probe bake.

Ambient color

Unity5 does not influenced ambient color after bake the probes

If mesh use light Probe, does not apply dynamic batching.

In order to reduce skinned meshes are drwan in the scene.

Hero horse unit

Skinned mesh

Drawcall : 1

It use light probe. max 5unit appear

Solder horse unit

Use Mesh animation

Drawcall : 12 but it use dynamic batching method,

It appeared maximum 50 unit. It does not light probes

Facebook Unity development community screen shot who upload SangWon Lee.

Unity 5 Light Probes

Diffuse shader Unity 5 standard shader

Gamma color space brighter than necessary. But mobile platform does not support

linear color space.

Albedo multiply the color intensity values.

This issue has been resolved after Unity 5.1 version. This problem occurred by enlighten

algorithm.

Low performance device can use light probe.

- Target device : Samsung Galaxy S2(Android), iphone 4(IOS)

- Target device : Samsung Galaxy S3(Android)), iphone 5(IOS)

It is a necessary to technical guide for 3D artist.

Texture is not too bright depiction.

Variable shader can use it.

Conclusion

And one more thing…

Sprite lamp

Sprite lamp : 2D Dynamic lighting

sprite texture can makes a normal map(similar

to UE4 imposter)

Legend of dungeon

Sample Video

https://www.youtube.com/watch?v=ZICgQQLRNT0

게임 3D 배경 아티스트(Game 3D Environment Artist)

http://www.facebook.com/group/3Dbackground

Yi Sang Yun

illustor @ Gmail.com

+82 10 9313 0583

Q&A