Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
12 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
0
Question by konstantin_lozev · May 14, 2016 at 09:41 AM · decalsskinned meshbullethole

Bullet holes on a a character skinned mesh?

I basically want to achieve this effect http://i.dailymail.co.uk/i/pix/2013/09/15/article-2421049-1BD5EFCA000005DC-2_634x339.jpg , I have tried with small quads, but it works very, very badly when the decal has to be big, especially for the head, which is rounded. I s there another way to do it? It has been in games since the Half Life 2 era (2004). I cannot believe it's not standard in Unity...

The results are very diverging, from using stencils, to projectors with custom shaders, to this asset https://www.assetstore.unity3d.com/en/#!/content/13889 . None of those that I saw seem to "carve" a hole the way a (clamped) normal map in the secondary map of the standard shader would do, i.e. those seem to simply put a "smear" on the skinned mesh.

I could argue that "carving" a hole with a normal map is exactly what you do with the secondary map of the standard shader when you use normal map with it - you create a high-quality decal. The thing is this does not work with skinned meshes (or at least I cannot make it work).

Hi, I copied the link to an example in my original post in order to clarify. I put now an example from my project on the difference between what I want to do with projected normal map (on the quad to the right) vs on what I can do with projected shadow shader (on the avatar in the middle). I hope it's clear now http://i.imgur.com/VJIyIGW.jpg

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 meat5000 ♦ · May 15, 2016 at 08:04 AM 0
Share

Normal $$anonymous$$aps appearing as they should depend entirely on the lighting situation. Not all lights can produce the effect. You are using the standard shader?

avatar image konstantin_lozev meat5000 ♦ · May 15, 2016 at 09:12 AM 0
Share

For the hole on the quad on the right I use the standard shader with the bullet hole normal map attached to the secondary map. For the spot on the character I use a projector with a Projector/$$anonymous$$ultiply shader, which is one of only two standard projector shaders in the Unity's Standard assets. If there were a "normal map" projector shader, that could do the trick I guess, but I have not found such projector shader...

avatar image meat5000 ♦ konstantin_lozev · May 15, 2016 at 09:52 AM 0
Share

There is an interesting Shader in the CGBook. Perhaps you can use it in some way, or otherwise add to it. There's decent articles out there if you do want to write your own shader.

https://en.wikibooks.org/wiki/Cg_Program$$anonymous$$g/Unity/Projectors

Show more comments

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

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Create transparent hole in sails 0 Answers

When Object Pooling Bullet Decal Arrays in UnityScript, My code use the original prefabs instead of the instantiated cloned prefabs 2 Answers

A Bullet's rigidbody, hit.normal 4 Answers

Skinned mesh and Bones limit 0 Answers

Skinned Mesh disappears if the camera is too close. 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