Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
13 Jun 22 - 14 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
1
Question by purpleduck · Nov 22, 2010 at 09:34 PM · environmenttexturinghuge

Texture size limit

Is there something that limits me from using a single huge terrain texture in Unity?

In facts, the world in an hypothetical game would be composed by average-sized environments, not huge. Think of a deathmatch level in Unreal. Is it conceivable that I use no tiles, but a single huge texture, color plus normal, in such environment? Can Unity handle it?

Somewhere I read that a single material is quickier to render for Unity than many. Right or wrong?

So is a single material with very big textures quickier to render than many with smaller textures?

Am I forgetting something?

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 Peter G · Nov 22, 2010 at 09:39 PM 0
Share

I believe the largest texture you can have is 4096 * 4096.

3 Replies

· Add your reply
  • Sort: 
avatar image
4
Best Answer

Answer by skovacs1 · Nov 22, 2010 at 10:57 PM

Yes, as PeterG commented, the largest size for a Texture 2D is 4096x4096. If you can fit/map all of your detail into that then you can do it just fine. For larger, more complex objects, this means that you will spend a fair amount of time setting up your UVs.

Unreal levels are built one of two ways, BSP brushes that carve out the area or imported models, but a combination of both is common. For texturing, they apply tiled textures to surfaces and you can edit the UV's as you like. For imported objects, your UVs should be setup correctly so that you can just drop your textures onto those objects because it is a pain otherwise. Whatever you decide to construct your level with in Unreal, the general method applied is to reuse the same textures and pieces. It's not about using one giant texture across the surface but very few reasonably sized textures as much as possible.

The fewer the materials you have, the quicker the scene can render, but this applies primarily if your draw calls can be batched which for very complex objects isn't going to happen. In that case, they recommend you combine the objects into one mesh. Assuming your UVs are good and you're using the same material, this will speed things up. See the docs.

As has been said so often, it's not the size that matters, but rather what you do with it (hence the size limit) and, as always, quality over quantity. A few medium-sized textures that are properly used/re-used will look just fine and render fast. Consider adjusting your UVs to index different parts of a medium-to-larger material so that you can combine your smaller textures into one. Using texture blending and the like, you can also reduce the amount of unique textures used if applied wisely.

Less is more and the idea is to have fewer meshes, materials, and textures (proportional to the number of materials).

Comment
Add comment · Show 1 · 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 soggychips · Feb 12, 2014 at 11:28 PM 1
Share

If 4096x4096 is the largest Texture2D size allowed, why does the documentation for Texture2D packing have the line "Texture2D atlas = new Texture2D(8192, 8192);" in its example?

http://docs.unity3d.com/Documentation/ScriptReference/Texture2D.PackTextures.html

avatar image
0

Answer by jeff-smith · Aug 18, 2015 at 04:45 PM

Depending on the GPU available, you can create textures larger than 4096x4096. I am currently creating 7200 x 3600 pixel textures in our TerraViz project. I believe that 8192 is the upper limit.

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 HinxVietti_WITL · Apr 07, 2020 at 11:02 AM

This is the largest size of a texture that is supported by the graphics hardware. Note that even if the GPU could support a large texture size, for example 16384, you could still simply run out of memory if trying to create one (16384x16384 texture at 32 bits per pixel is 1 gigabyte of data, which may or may not be available).

Check this .

https://docs.unity3d.com/ScriptReference/SystemInfo-maxTextureSize.html

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

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Is in game environmental changes possible? 1 Answer

Game doesn't run in another computer 0 Answers

A game which includes 2d and 3d environment. 2 Answers

Skyboxes in Unity 2018 1 Answer

Can I share my bought assets to teammate? 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