• 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 raphu604 · Oct 19, 2013 at 08:02 PM · characterbulletdecalholeskinned-mesh

Bullet holes (decals?) on Characters

This question has been asked on Unity Answers before, but the answer wasn't really an answer at all and all the threads about decals are VERY confusing in my opinion. Now I've spent A LOT of time searching for a solution to this, but I simply couldn't find one. I am creating an FPS, and I want to have bullet wound decals on my enemies when I shoot at them. What would be the best possible method to do so? I know that the bootcamp demo had a nice decal system, but somebody on the Unity forums said it was very very difficult to isolate it and use it for other projects...

I'm stuck and I simply don't know what to do... Spawning a plane with a texture on it (classical decal example you find in evey tutorial) at the hit.point location wouldn't look good, since the colliders of the character/ragdoll are only capsules that do not really match the actual geometry of the body. Would a projector be the solution? But if yes, wouldn't that hurt performance badly? In case it doesn't, can somebody please explain how I am supposed to do it?

I really hope somebody can help me. Thanks in advance :)

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

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Dantus · Nov 06, 2013 at 10:10 AM

Have you considered to use the Decal System: https://www.assetstore.unity3d.com/#/content/3779

It is not really easy to use it at runtime.

Comment
Add comment · Show 6 · 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 raphu604 · Nov 06, 2013 at 09:02 PM 0
Share

Yes I tried, and I'm the guy who contacted you about the problem with the limited amount of decals in the Decal System forum thread xD In the end I kinda managed to get projectors to work as they should by using the builtin projector/multiply shader and spawning them with an offset on the ragdoll... Now I just have to find a way to decrese the amount of drawcalls, like.... some way of batching them together, given that this is possible... Or maybe set a timer and make them disappear automatically :)

avatar image Dantus · Nov 06, 2013 at 09:09 PM 0
Share

I see :) I am pretty sure we would have found a solution for your issue. If you need to lower the draw calls, you may consider to try it again and we can continue where we stopped.

avatar image raphu604 · Nov 06, 2013 at 10:27 PM 0
Share

It is really awesome how much support you are giving to all the people! Really! Das ist echt unglaublich :O Now, the problem with your decal system was that I couldn't create more than 4 bullet holes on a skinned mesh... But now I tried it on another model, and on that the limit was 3... and 3 it was every time °+ this is really weird... Should I upload a webgame build?

avatar image Dantus · Nov 06, 2013 at 10:30 PM 0
Share

Yes, please! And also try the demos that come with the Decal System. Do you have the limitation there as well when you import the newest version of the Decal System into an empty project? But I suggest that we continue the discussion in the Decal System thread :)

avatar image raphu604 · Nov 06, 2013 at 10:34 PM 0
Share

yes, they are there as well... by the way okay, I'll send you the link there

Show more comments

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.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



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

Bullet Holes, Decals 0 Answers

add material to object when a collision occurs 2 Answers

Parenting Bullet Holes? 1 Answer

How to make a bullet follow a 3d character's body rotation using a orthographic view. 1 Answer

Bullet hole on target 3 Answers

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges