• 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 MrJohny · Aug 08, 2015 at 12:34 PM · editorlightingplayrealtimeglobal illumination

Lighting scene during time, RealTimeGI

Hello I want to ask whether it is possible lighting scene during time ... I mean if the object becomes static during gameplay, will start lighting scene. Thanks for reply

Comment
Add comment · Show 5
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 allenallenallen · Aug 08, 2015 at 12:35 PM 0
Share

Can you be more specific? What do you mean by lighting when static?

avatar image MrJohny · Aug 08, 2015 at 01:05 PM 0
Share

Ok, in real time GI you can lighting scene the statics objects. But if i add static object during time to scene, i want again lighting scene... not only in editor. I want to know if is possible lighting scene during time? simple

avatar image MrJohny · Aug 08, 2015 at 03:11 PM 0
Share

alt text

I mean like this, build lighting scene in play mode. There is script or settings?

avatar image Dyonisian · Feb 22, 2017 at 10:07 AM 0
Share

I think what he's asking is if it's possible to build lighting in-game. So he wants to use baked lightmaps, and when something changes in the game, rebuild lighting so that the lightmaps are updated.

avatar image Dyonisian · Feb 22, 2017 at 12:12 PM 0
Share

As TheDiamondPlay said, you can't do that. What I did find though, is that you can bake multiple lightmaps and switch between them in game. I haven't tested it myself.

http://wiki.unity3d.com/index.php/LightMapSwitcher

2 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by AurimasBlazulionis · Feb 22, 2017 at 12:01 PM

No, you can not do that in the current versions of unity by default. That is because it is a very computationally expensive task.

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 Dyonisian · Feb 22, 2017 at 02:41 PM

As TheDiamondPlay said, you can't do that. What I did find though, is that you can bake multiple lightmaps and switch between them in game. I haven't tested it myself.

http://wiki.unity3d.com/index.php/LightMapSwitcher

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.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Baking Realtime GI for very large worlds is crashing 0 Answers

Precomputed Realtime GI, while playing 1 Answer

How do I adjust the lightmap parameters for objects in Unity 2018? 1 Answer

Switch Precomputed Realtime GI data using scripts 0 Answers

Realtime Global Illumination with procedural objects 1 Answer

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges