• 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
Question by TheGnawers · Jul 09, 2014 at 09:28 PM · textureterrainmodelblood

Blood splatter PNG file flush with terrain?

Hello,

I just made a blood splatter .PNG image in GIMP with a transparent background and I was wondering how to place this onto a piece of my terrain? I tried placing the image of the blood on a plane but that made the blood look rigid and it didn't match up to the terrain quite correctly. I don't need it so that an object shoots the blood everywhere (getting shot), but rather it be a preset texture on the ground so when a player comes across the blood it is already there (static). All the while looking as if the blood is actually on the ground.

Thanks.

Comment

People who like this

0 Show 1
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 steakpinball · Jul 10, 2014 at 03:20 AM 0
Share

Possibly relevant: http://stackoverflow.com/questions/16080508/how-to-draw-images-on-terrain-in-unity

1 Reply

· Add your reply
  • Sort: 
avatar image

Answer by Olgo · Jul 10, 2014 at 03:39 AM

I believe what you may be looking for is the Projector.

found here: http://docs.unity3d.com/Manual/class-Projector.html

One of it's suggested uses would be to create bullet holes. I believe you could spatter blood using your blood .PNG file.

It won't combine a texture with your terrain texture but you can shine it on to your terrain, you could even tell it what layers to ignore. In this case, you would want to ignore all layers except for terrain so you dont have it shining on your players as they walk over it.

Hope that helps.

Comment

People who like this

0 Show 4 · 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 roach374 · Jan 22, 2016 at 09:30 PM 0
Share

There is such an ocean of settings to wade through at the various levels (Texture, Material, Projector), that it's basically blind luck to ever get this working properly at all. I finally managed to get it working using the GUI/Text Shader of all things, on the Projector Material (in Unity 5). Too bad none of the various YouTube or Forum tutorials about this ever work properly, or they're all ten years old, or links are dead. Very frustrating.

avatar image Olgo roach374 · Jan 22, 2016 at 09:48 PM 0
Share

I believe the method I described in my answer is now Legacy and has now been replaced. Once I get back to my dev computer I'll check it out and hopefully come back with more info.

avatar image roach374 Olgo · Jan 22, 2016 at 10:18 PM 0
Share

Man that would be super-awesome of you. Thanks. The way I got it working doesn't really work with Terrains, Spheres, or anything other than a flat quad, so pretty useless. The projector also seems to indiscriminately spam the texture onto all Meshes in the scene, rather than the one I want. I guess I'd need to put every mesh onto it's own layer in the scene...

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

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

Capsule Collider Moving Through Terrain 0 Answers

Incorporating Unity textures, models, and terrain into Eclipse 0 Answers

Creating Box Collider On Specific Terrain Textures 1 Answer

[SOLVED] Pixelated terrain on phones with Mali/Tegra GPUs 2 Answers

Imported model having issues with textures 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