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 beeboks · May 11, 2014 at 07:45 PM · shadermeshcullingpolygon

Hiding or deleting specific faces of a mesh with a texture or LUT?

Hi, is there a way of hiding or deleting certain faces using a texture or LUT? I'm making an RPG type character generator and certain armor penetrates the body mesh and I'd like to hide certain parts of that mesh based on which armor is selected.

Is there a way to hide or delete just some polygons on a unified mesh with a shader or LUT of polygon indices? I'm currently going to try and do this by splitting out the mesh into different meshes that fit with the armor, so say I'll have a normal set of legs, and then legs that fit with that armor, but I know this is way inefficient and since I'm planning on releasing on mobile, I'd like to find a more efficient method.

What would be the best way to do this?

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

2 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by b1gry4n · Apr 13, 2016 at 12:16 PM

The best way (and probably easiest in the long run) is to edit the mesh in 3d modelling software. Just remove them there. If you need both versions, make 2 versions and apply the one with deleted faces when you put on gear that requires the faces deleted.

Depending on how your game works... after character creation you bake the skinned mesh into a single mesh. Not quite sure how to do that as I havent attempted, but I do know its possible. I have seen assets on the store that do this exact thing.

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 inum76 · Apr 13, 2016 at 11:40 AM

@beeboks

I don't know the exact specifics, but what you can do is apply a material with a transparency texture to your model at run time. You can even have this material set on standby and add it only when needed via script. You can even have more then one material on standby (like 20 if needed) to give your model, if it needs to have more then one material type change.

You could also split your model's UV so your model can use many materials through one UV and just adjust the transparency to each material individually via script, rather than swap materials.

Either method to me would be the least complicated method I can think of. It would take some knowledge of scripting to pull it off, but I am sure it would work, and work fast. Fast enough for mobile.

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

22 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 avatar image avatar image avatar image avatar image avatar image

Related Questions

How is a polygon determined to be front facing or back facing? 1 Answer

Shader - Hide self overlapping mesh 1 Answer

Can a shader render darkness inside a mesh? 2 Answers

Have part of mesh change color 0 Answers

C#, Creating a single mesh polygon problems 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