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 BobbleHead · May 30, 2013 at 12:29 PM · iostextures

What is the best way to build a large game world, including texturing for iOS?

I'm currently building for latest devices, but a broad answer is very welcome.

As an example say I have the below wall built out of loads of little cubes:

alt text

If I was to build this wall with cubes, it would not be the best route due to inside unused faces and they'd all need a texture (say 3 different textures for variety).

However, if I was to build this wall as one mesh with a 3d modelling tool, would that be more costly in game? I mean uv mapping would be larger on this object. Though, it would also contain less verts, and ploys. I don't know what would be cheaper then.

I'm either going to model the entire wall as background geometry, 1 mesh with 1 texture., or I will create 3 maybe 4 different building blocks and build it that way but then they'd have 3 or 4 textures.

I'm concerned about draw calls, as well as vert and poly count, understandably. I'm also unsure on what the best practice is for texture sizes for iOS.

Suggestions welcome, Thanks, NoviceBobble.

example.jpg (52.1 kB)
Comment
Add comment · Show 4
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 Tarlius · May 30, 2013 at 12:41 PM 0
Share

It sounds like you're looking at a $$anonymous$$ecraft clone of sorts. Theres quite a lot of answers around for that sort of thing. You basically want to make your own mesh and atlas for each 100x100 (or so) section of land. If you're doing cubes I think you'd probably be better doing the generation in code.

If you're not looking for the challenge, there's stuff on Asset Store that does it.

avatar image BobbleHead · May 30, 2013 at 07:19 PM 0
Share

Nope not a $$anonymous$$e craft clone, just using cubes. I ask as I am conscious of say 2000 cubes killing the frame rate etc and am looking for advice. I think a texture atlas is a good direction though, thank you

avatar image Tarlius · May 31, 2013 at 02:16 AM 0
Share

Whilst the gameplay may be different, the problem sounds the same. Although perhaps you won't need to rebuild your mesh often like $$anonymous$$ecraft. As for 1000s of cubes; theres a hard limit on how many game object you can have in a scene apparently (a $$anonymous$$ecrafter ran into the problem a few weeks back). If they all share the same texture, they should get batched though.

avatar image BLOODLORD · May 31, 2013 at 02:24 AM 0
Share

you can allways change the clipping distance of the camera, and add fog might help with FPS

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by HeavyPepper · May 31, 2013 at 06:03 PM

I've had luck going with the building block method rather than creating the whole level as a single mesh. In my case, having 18k vertices and 200 draw calls has performed well even on the iPhone 4.

To optimize things...

If you know your building blocks will be seen from one side only then you don't need to have a complete cube. Model only the sides which will be seen, then place them into your scene and rotate your object for corners. In other words, instead of a cube, use a plane for your walls and as you add more planes rotate them as needed. This way you'll only have vertices for visible objects and avoid unnecessary geometry.

Combine as much as you can into a single texture. I've been using 2048px texture maps where multiple objects can use the same texture.

Avoid lights and bake everything once your scene is set-up. Use unlit shaders that support lightmapping.

What helped me out a great deal in understanding level building was downloading the MadFinger example from ShadowGun. Take a look at how they built their level... it should give you further insight.

http://blogs.unity3d.com/2012/03/23/shadowgun-optimizing-for-mobile-sample-level/

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 raybarrera · May 31, 2013 at 06:06 PM

Something like this: https://www.assetstore.unity3d.com/#/content/2648

?

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

17 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

Related Questions

What is the most practical way to convert NPOT textures to POT for an almost finished game? 5 Answers

How to make plane which cover 360angle 0 Answers

poor performance is slowing down the rate 1 Answer

Textures on iPhone appear blurry? 1 Answer

Is it possible to turn JPEG images into textures at runtime in Unity on iOS devices? 0 Answers


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