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 bpears · Jun 20, 2013 at 11:50 PM · texturerenderingopacity

How to use several textures on a mesh - like the terrain does?

How can a mesh be painted with multiple textures, with different opacities in some spots? I'm guessing this would need to be done in modeling software, but still not sure how to choose opacities between them at different parts of the mesh. This would be helpful in breaking up boring repetitive textures, as the terrain system in unity allows.

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 xandermacleod · Jun 21, 2013 at 12:31 AM 1
Share

typically this is done in the modelling software lieke you thought. in maya you break the object into smller objects, assign new textures to them, then recombine them and sew up the verts. then when the fbx is imported into unity it will come with multiple materials in an array on the object which will be assigned to the faces you speciied in maya. In 3dsmax you use subobjects, and similarly upon importing it will come with multiple material slots in an array.

To make part of the model transparent you simply need to change the material's shader to one which supports transparency; but the same method applies.

avatar image xandermacleod · Jun 21, 2013 at 12:34 AM 1
Share

alternatively you can do this in a 2d package like photoshop combined with some shader writing. Simply create a greyscale image that will define which areas will be transparent and which areas will be opaque. (usulally white = opaque, black =trans) then creat a custom shader which has a map that will allow you to control which areas are transparent. I would highly recommend the 3d modelling software solution though if you can.

avatar image bpears · Jun 21, 2013 at 01:00 AM 0
Share

I would think somehow you could just tile all the textures you want onto the mesh, and use transparency to blend them all where ever you want. Can this be done with a shader? Assign maybe an alpha for each texture? Or maybe would need a material for each texture that is being blended. Trying to understand what direction to look in, never written a shader.. yet.

avatar image whydoidoit · Jun 21, 2013 at 01:38 AM 1
Share

It's a shader effect - you use the textures and the the merging between the sources is done by reading colours from a "control" texture... You can use things like T4$$anonymous$$ to do it.

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

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

Display a texture fade? 0 Answers

Change texture detail distance? 2 Answers

Copy result of pass to another pass of the same shader 1 Answer

Help with shader with uniform opacity when overlapped, globally mapped texture. 0 Answers

3dTexture does not scale to matrix dimensions 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