• 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 /
  • Help Room /
avatar image
2
Question by Zephyr-Raine · Mar 21, 2017 at 11:14 AM · unity 5performanceprefabsprocedurallightmapping

Baked lightmaps in procedural game

Hello everyone! I'm currently working on a project where the level is procedurally generated. (See image). ! alt text Each of the objects in rooms are disposed by hand, then each room is stored as asset through scriptable objects (allow the use of "prefabs in prefabs"), which store reference and transform values of each prop.

At runtime, only the current room we're in and the possible adjacent ones are loaded, thus allowing for a better memory management. But here's come the lighting problem. Indeed, we'd want each room to have it's own lighting, and were considering our options.

1. Baking lightmaps : Baking lightmaps for prefabs and objects, knowing that there's no saved instance of objects but only reference to the original prefab, seems doable after some research (https://forum.unity3d.com/threads/problems-with-instantiating-baked-prefabs.324514) but would induce a quite heavy workload.

2. Instantiating dynamic lights for the current room only : We could have our dynamic lights lighten not only the dynamic gameObjects in each room at runtime, but also all the static props and objects that would not move, resulting in fastest development process, but heavier on performance.

How would we know which way to go? How terrible are dynamic lighting and which are the limits on average computer? As we're looking to save time, it seems tedious to code and test both options so we'd love some insights for more experienced users.

Many thanks! <3!

level.png (76.5 kB)
Comment
Add comment · Show 1
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 trojanfoe123 · May 11, 2017 at 08:18 AM 0
Share

I am interested in your question as I am developing a fully-procedurally-generated game.

Any developments?

0 Replies

· Add your reply
  • Sort: 

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

159 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Poor playtest performance in Unity on Mac after switching platform to iOS 0 Answers

How to get an object and align it perfectly on another object with arrow button 0 Answers

Objects with custom shaders cast grayscale shadows when lightmapped 1 Answer

Top Notch Specs, Poor Performance on the Editor 0 Answers

How to interact with multiple instances of a single prefab? 1 Answer

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