Unity Light Lightmapping

Source: Internet
Author: User

1, why use lightmapping?

In short, real-time light calculations are time-consuming, with more light sources and more time-consuming calculations. Using Lightmap to simulate the effect of light, you do not have to calculate the light, will bring a significant performance improvement. Of course, you do not have the lighting effect is also no problem, specific or look at the project needs. The simplest is to bake the vertex color of the map directly in 3dmas or Maya. or use Unity's own lightmaping to bake a map, either way! All the same!

After baking, in fact the scene of the lights can be deleted, but it is possible that we have to add a model to the scene, so first reserved, until the release of the time to delete

2. Why use Lightprobes?

Because the scene is all false light, the dynamic object or character is not affected by the light will be very abrupt, appear out of tune. If you think it's okay, you don't need to take care of it, you need to use Lightprobes if you want the character to have this effect.

3, baking pre-show UV

No matter what kind of baking, you need to show the model UV operation, if the UV does not show, or the range of UV beyond the 0-1 box, baking will be wrong.

Select the model you want to bake, check "Generate lightmap UVs" in the Inspector panel and apply-apply. The UV expands successfully after the read bar finishes, and the more the number of model polygons the longer the UV time.

4. Adjust the lighting.

Set the light position and light in the scene and select a shadow mode. By default, only parallel lights can show shadows in real time, and other types of lighting have no real-time shading.

What about spot lights, spotlight, and real-time shading? First open the Playersettings panel (Edit > Project Settings > Player).

The rendering Path is set to the deferred light Deferred Lighting, and the shadow of the point light is displayed.

After the two channels are equipped with no shadow, the light needs to be preserved.

Single-channel baking with shadow, can not keep the lights. Single channel baking saves resources. (Proper adjustment of parameters effect better)

Reference: http://unity.jb51.net/meigongsheji/shanweisheji/35.html

Unity Light Lightmapping

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.