Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Danko86 · Feb 03, 2011 at 02:21 PM · lightmappingunderstand

Can't understand lightmapping

Hi all,

I am new to Unity, and I think its really user friendy program, but thing i have problem with is lightmapping.

I saw so many tutorials but really cant understand it :) i can't get difference beetwen lightmapping and simple direct light + ambient colour. Don't understand what is lightmapping used to?

If someone can explain me this, I'll be really gratefull :)

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

3 Replies

· Add your reply
  • Sort: 
avatar image
4

Answer by Slavq · Feb 03, 2011 at 02:31 PM

Hi, I'm new too, but as I know:

Lightmapping = "baking" a texture to static objects - after lightmapping process, e.g. your terrain grass texture will have baked all the lights and shadows (casted e.g. by trees) on it. Even if you turn off lights, it will be visible (because it's a texture right now ;) ) Without lightmapping, shadows are calculated realtime - it slows down the game.

See also:

http://en.wikipedia.org/wiki/Lightmap

PS. Sorry for my english ;)

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
2

Answer by Arielgenesis · Jan 05, 2013 at 02:45 PM

Lighting and and Lightmapping are two different things. Lighting is, as you said, simple directional lights. To understand lightmapping, you have to first of all understand how rendering engine works. But if you can't be bothered, it is simply a method to make your game run faster.

HOW RENDERING WORKS

Let say there is a white cube, shone by a simple red directional light. The cube could appear light because the rendering engine asks the cubes, "hey, what are the lights shining on you" and the cubes answers back.

This 'conversation' (calculations, lots of vector maths) is very resource intensive, meaning, they slow down your game. That is why, someone finally figured out to do these calculations before the game. The process, 'the conversations', is called BAKING. And the result is called, lightmap. Its like creating a map of where the light rays are coming from before the game instead of figuring it out during the game.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by Danko86 · Feb 03, 2011 at 02:44 PM

Hm, I don't understand basic idea od lightmap. Thing I am confused with is that I select light, mesh or terrain in Lightmap object panel. Is this mean that when i select light and open Lightmap object panel and hit "bake selected" that unity will bake lightmap made from this light object on all surrounding meshes and terrains? And when i select mesh or terrain and hit "bake selected" it will bake lightmaps which this mesh or terrain recives from some light objects?!

And what is 2nd panel in Lightmapping called "BAKE"? is it way to light whole scene with skylight, or what?

are baked maps way to improve performance over simple directional lights?

someone explain me this please :)

edit: why someone who knows it just can't help me with this? :(

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

1 Person is following this question.

avatar image

Related Questions

Lightmaps won't work with my scene 0 Answers

Point Lights not Baking with Realtime Directional 0 Answers

Optimization of Procedurally Generated Game 0 Answers

do point lights affect the performance? 2 Answers

Lightmapping issues in Unity.. 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges