Search Unity

Blood textures on walls and stuff?

Discussion in 'Scripting' started by a1s2d3f4, Aug 29, 2011.

  1. a1s2d3f4

    a1s2d3f4

    Joined:
    Mar 20, 2011
    Posts:
    415
    How would you do something like making blood appear on the wall when the blood particles hit the wall?
     
  2. handsomePATT

    handsomePATT

    Joined:
    Nov 30, 2010
    Posts:
    574
    there is a decal framework out there which is free
     
  3. a1s2d3f4

    a1s2d3f4

    Joined:
    Mar 20, 2011
    Posts:
    415
    it says its $45.00
     
  4. handsomePATT

    handsomePATT

    Joined:
    Nov 30, 2010
    Posts:
    574
    theres a free version and a paid version
     
  5. a1s2d3f4

    a1s2d3f4

    Joined:
    Mar 20, 2011
    Posts:
    415
    Can't find it.
     
  6. Ntero

    Ntero

    Joined:
    Apr 29, 2010
    Posts:
    1,436
  7. Dreamora

    Dreamora

    Joined:
    Apr 5, 2008
    Posts:
    26,601
    the free version was taken offline long time ago (it was the 1.x version of the same). was for unity 2.x anyway
     
  8. CheyTac

    CheyTac

    Joined:
    Feb 17, 2011
    Posts:
    71
    is there any other decal framework free? =/
     
  9. a1s2d3f4

    a1s2d3f4

    Joined:
    Mar 20, 2011
    Posts:
    415
    Oh come on :/ someone has to know how to do this...
     
  10. MarkusDavey

    MarkusDavey

    Joined:
    Jun 3, 2011
    Posts:
    258
    Could try delving into the world of "projectors". When someone gets hit, you create a projector that faces behind that "hit" and casts a blood texture onto that surface.

    Tis just an idea.
     
  11. a1s2d3f4

    a1s2d3f4

    Joined:
    Mar 20, 2011
    Posts:
    415
    I thought about that, but it shouldn't be that difficult. How do people do it when you put up bullet hole textures? It should just work like that (although I don't know how to do that either)
     
  12. a1s2d3f4

    a1s2d3f4

    Joined:
    Mar 20, 2011
    Posts:
    415
    seriously, this can't be that difficult, ive seen this done many times...
     
  13. jeffro11

    jeffro11

    Joined:
    Jan 7, 2010
    Posts:
    185
    Just make your own. Get the hit location and normal, instantiate a plane with a material on it. In the shader offset it a bit so there no Z-fighting with the geometry underneath. All of the info on how to do this is in the documentation. Or you could just a projector, but those are quite a bit more costly.
     
  14. handsomePATT

    handsomePATT

    Joined:
    Nov 30, 2010
    Posts:
    574
    yeah look at that new Angry Bots demo. They do that using planes with a material, and it looks just fine and is alot easier than the way the decal system does it.
     
  15. Dreamora

    Dreamora

    Joined:
    Apr 5, 2008
    Posts:
    26,601
    not to my knowledge.


    Projectors are not really an option as every object hit gets redrawn once again for the projector