Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 akaBase · Feb 04, 2019 at 06:21 PM · overlapbullet marks

Bullet (Splat) Marks Overlap edge of GameObject

Hello all,

I have run into an issue with my splat marks overlapping the edge of the objects that the projectile collides with (I use Raycast but is easier to put that way).

See screenshotalt text

Does anyone know of a simple way of making them wrap round corners or of another solution.

Thanks.

screen-shot-2019-02-04-at-181010.png (29.4 kB)
Comment
Add comment · Show 2
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 TreyH · Feb 04, 2019 at 07:32 PM 0
Share

This is probably too vague -- how are you making your marks? Is that some flat object sitting in the space?

avatar image akaBase TreyH · Feb 04, 2019 at 08:39 PM 0
Share

Yes its a quad thats positioned using the position and normal of the object hit in the raycast of the trajectory of that projectile.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by JonPQ · Feb 04, 2019 at 10:37 PM

This is not simple to solve, you either live with it, use smaller decals... or calculate polygons to project on to and duplicate the geometry. You can also make decals using UNity's simple blob projector, but it will also project onto sides of objects and objects behind... and isn't too fast if you want a lot of decals.

You are probably better off buying something from the asset store, that can can calculate intersect polygons properly, and draw all decals in one draw call. something like this... https://assetstore.unity.com/packages/tools/advanced-bullet-decals-63202 but please look at all options available carefully, some have the same problem you have.

Comment
Add comment · Show 2 · 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 akaBase · Feb 05, 2019 at 11:51 AM 0
Share

Thanks, I'm am trying to make this without using outside assets (I do realise I'm making it harder for myself but find its the best way to learn), also I am currently looking at using an L shaped plane and corner plane made in blender to get round this, do you know of any pitfalls to this method before I get too far along?

avatar image JonPQ akaBase · Feb 05, 2019 at 07:13 PM 0
Share

if you are only using right angled corners. on your walls then there are a few different workarounds you could try.... so you might still have same problem at ceilings and floors, but lets ignore those for now and just do walls and corners... you'll need 2 scenarios, inside and outside corners (convex and concave)

I think best to make things work with 1 polygon first. so it can clip itself at corner.

If you don't $$anonymous$$d not wrapping around corner... just do one plane, (not L shape) shrink the plane to stop at the corner, then set your UV's to clip the texture appropriately... still some tricky math.

first you'll need to deter$$anonymous$$e IF your bullet hits more than one polygon... to deter$$anonymous$$e a corner. so after the first raycast... you may need to do a few more at the corners of your decal, to deter$$anonymous$$e if all impacts have (roughly) the same collision normal (same flat surface) If not.. you'll need to calculate the corner position to clip your polygon.

re:- wrapping round corners.... I think it might be easier to use flat plane rather than L shape... and place 2 of them... one on each surface... but then clip geometry, and edit the UV's on each plane

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

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

Related Questions

Overlap in Google Chrome and Safari 2 Answers

overlap between scenes!!! 1 Answer

Check when an object covers another entirely 0 Answers

How to highlight certain gameObjects in an screenarea 0 Answers

I need a weird shape for a cast. What is the best way to do it? 1 Answer


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