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 Michiluki · Oct 16, 2012 at 07:40 AM · texturesbuilding

Sims like building

alt text

I want to implement a sims like building phase. My question about the whole thing is how EA is solving the obvious performance problem? Example: The whole house is covered in different textures so Im not sure if its possible to just use one big quad and put 256 different textures on it?

My idea is to detect the outside of the house and to only render this part, after a player is nearby the inner house will be rendered.

Hope you guys can give me some comments on it.

Edit: As suggested I uploaded a picture, imagine a house like this but like 50 times. Im not sure how that works performance wise and whats the best approach to render the tiles like I said what happens if every tile has a different texture. Do I have to render each texture with a quad or is there some secret technique for it ?

tinyhouse_0002.jpg (64.4 kB)
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
1
Best Answer

Answer by MadDave · Oct 16, 2012 at 09:54 AM

Rendering a huge number of different textures is a bad thing since it requires a lot of draw calls (i.e. driver overhead, pipeline reconfiguration overhead...).

There are two possible solutions:

  • Combine as many textures as possible to large atlases. Try to render the whole house with one texture if possible. The size of an atlas is restricted by hardware, of course, usually you cannot go higher than 2048 or 4096

  • However, in most games you have too many textures to fit on a single atlas. "The Sims" has hundreds of furniture pieces and you don't know which ones the user is going to use. In that case you have to dynamically combine the textures that are acutally used to a big atlas. Every time something in the house changes you will have to update the atlas. That causes a little overhead, but afterwards you can render the house in a single draw call. Many games use that trick.

Comment
Add comment · Show 2 · 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 Michiluki · Oct 16, 2012 at 09:59 AM 0
Share

The second solution seems to be just fine, thank you very much :)

avatar image MadDave · Oct 16, 2012 at 12:40 PM 1
Share

Feel free to accept and vote the answer if you like it!

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

11 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

Related Questions

how to get nice building overlay textures 1 Answer

Why can't I build Web Player in Unity while I have no problems with building standalone versions? 2 Answers

Getting texture from project files and placing in script 1 Answer

The Sims-like movement script? 1 Answer

Change textures at runtime on object with multiple textures? 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