• 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 Vygg · May 25, 2012 at 06:32 PM · tilemapprocedurallightmappingtile

Lightmapping and Diablo3-style big-tile levels

We're working on a game that will have procedurally generated levels. One of the approaches to level construction we're considering is using big tiles like those used in Diablo 3

Tiles in Diablo 3 seem to use some form of lightmapping (at least the ambient occlusion is clearly visible). The game reportedly runs well on low-end PCs (with dynamic shadows turned on), so it's unlikely that it does lighting in realtime.

The question is, how can we use Unity / Beast lightmapping for the big tiles, and how do we combine them into levels at runtime?

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

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Dhaiku · Aug 07, 2012 at 05:46 PM

create a prefab for each tile then do instantiate prefab create a grid (= array of arrays) and everytime you run, you select each tile/prefab and instantiate it on a random position in the grid do a few checks to make sure you don't place 2 tiles on each other etc and your done

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

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

Lightmapping and Diablo3-style big-tile levels 0 Answers

Tidy Tile Mapper - Strange Rotation Angle 2 Answers

Efficient method of storing coordinate values sequentially in an array 0 Answers

Tilemap2017 Access position & sprite of specific Tile in new Grid System 2dGame 1 Answer

2D/Orthographic Tile Alignment Issue 0 Answers

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