Unity3d Game scene Optimization talk (2)

Source: Internet
Author: User

Dynamic real-time lighting is very resource-intensive compared to static lighting. So in addition to the dynamic characters and objects (such as can be beaten around the flying oil barrels) static terrain and buildings, all use Lightmap.

powerful Unity has built-in a powerful lighting map Baking tool Beast, which is the product of Autodesk Company (horrible monopoly, feeling and 3d of software to be plugged in one hand). It is said to have been used to make the edge of the killing strip and mirror.


Mirror edge of the architectural scene beautiful clean lighting, lightmap effect.

It is easy to make lightmap in unity, and you can bake them directly after adjusting several parameters. Support Gi,skylight,

first-Class effect!!! Of course you need a better machine, or you'll have to wait for a long baking process.

Built-in lighting map baking tool Beast

p Scene preparation and lighting map baking

Click Window--- lightmapping to open the lighting map baking panel :

1. Verify that all the mesh bodies that will be used to bake the light map Uvs are correct. The simplest approach is to select the Generate lightmap uvs option in the Mesh import settings ( Beas T auto-split UV)

2. Mark all mesh bodies or terrains as  static –  in object panel This will tell  unity,  these objects will not be moved and changed and can be given a light map.
 

3. To control the accuracy of the illumination map , enter the Bake Panel and adjust the value of the Resolution . (To get a better understanding of your lightmap texels usage , find lightmap Display in the scene window Small window and select Show Resolution).




1. Click the Bake button.

2. Unity Editor ' s will appear with a progress bar in the lower right corner .

3. When the baking is finished , the Lightmap editor window displays the already baked light map .

Scene and game views are automatically updated at the same time – now your scene has the effect of a light map !

Unity Lightmap's settings are more detailed and high-end content, please refer to your own documentation, that is the king!!!!!

Unity3d Game scene Optimization talk (2)

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.