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
3
Question by LordVe · Oct 10, 2013 at 01:46 AM · meshmaterialsuv mapping

Is it possible to use Multiple Materials on a single mesh?

I have recently switched from using individual cubes to creating a single mesh, generated at run-time, to represent blocks in my game. I have run into a bit of an issue. I have too many blocks to use a single texture atlas, since the max is 4096x4096 I will need to use ~4.

I was wondering if there was a way to use more than one material for this.

I would prefer to be able to use the Materials I was using previously if at all possible. That way I don't have to attempt to do the normals and such on more atlas...

So, My question is, can you use more than on Material to UV a mesh, and if so how?

So, Can anyone help me?

Comment
Add comment · Show 8
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 clunk47 · Oct 10, 2013 at 01:48 AM 0
Share

Sure, just change the size of the material array in the $$anonymous$$esh Renderer Component of the object.

alt text

mats.png (45.0 kB)
avatar image LordVe clunk47 · Oct 10, 2013 at 01:50 AM 0
Share

How would I go about using them to do the UV for my $$anonymous$$esh?

avatar image clunk47 clunk47 · Oct 10, 2013 at 01:52 AM 0
Share

You'd most likely need to unwrap your 3D model in the external application you used to model the mesh, then just export multiple versions of your UV map. $$anonymous$$ake a separate material for each map. You may need to use a transparent shader depending on your needs.

avatar image LordVe clunk47 · Oct 10, 2013 at 01:54 AM 0
Share

I might not have been clear above. I am generating the mesh at runtime.

Show more comments
avatar image LordVe · Oct 10, 2013 at 01:59 AM 0
Share

Well I thank you for attempting to help me.

avatar image robertbu · Oct 10, 2013 at 02:18 AM 0
Share

You need to learn about submeshes.

http://answers.unity3d.com/questions/312492/submesh-creation-from-script.html

avatar image LordVe · Oct 10, 2013 at 02:44 AM 0
Share

I am not sure Sub$$anonymous$$eshes would work in this case. I am using a modified version of the ChunkRenderer from BlockStory's Tutorials. Any Ideas?

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.

Follow this Question

Answers Answers and Comments

16 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

Related Questions

Using different UV for multiple model copies 2 Answers

Updating UV in imported mesh without having to re-material 0 Answers

How to make UV maps offset the same way? 1 Answer

Normal maps not applying to certain faces of a mesh 2 Answers

Apply texture to a mesh on all 3 sides 2 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