Realistic Blood Effect

Posted By: Metal_Thrasher

Realistic Blood Effect - 09/01/05 02:50

Here is an ffp shader (fixed-function pipeline shader, these work on virtualy any video car) for a realistic blood stain effect :

Here's the code

----------------------

material bloodeffect
{
effect="
technique burn
{
pass p0
{
AlphaBlendEnable=true;
//ColorOp[0.n] = Subtract;
srcblend=destcolor;
destblend=invsrcalpha;
}
}";
}

----------------------
Posted By: Inestical

Re: Realistic Blood Effect - 09/01/05 13:58

^^ nice, u use that in ur own game I think i'll use it.. [You gain Bookmark]
Posted By: ello

Re: Realistic Blood Effect - 09/01/05 14:01

yeah, thats a splatter sprite:)
Posted By: SlyBoots

Re: Realistic Blood Effect - 09/01/05 16:09

Heh, that's a lot of blood.
Posted By: snake333

Re: Realistic Blood Effect - 09/02/05 15:31

Thanks for the good contribution.. But am afraid I know nothing from that code u typed.. what is that all about, and how can i use it???????
Posted By: spartan131

Re: Realistic Blood Effect - 09/02/05 21:51

Yea, im a noob at this stuff, can u give me a short tutorial on how to use it? thanks! and the blood effects looks cool!
Posted By: tuschcarsten

Re: Realistic Blood Effect - 09/02/05 21:54

It's very simple.
You put this somewhere in your script:


material bloodeffect
{
effect="
technique burn
{
pass p0
{
AlphaBlendEnable=true;
//ColorOp[0.n] = Subtract;
srcblend=destcolor;
destblend=invsrcalpha;
}
}";
}



and add this action to the sprite:

action bloodsprite
{
my.material = bloodeffect;
}



Posted By: spartan131

Re: Realistic Blood Effect - 09/02/05 21:57

cool, but also i dont know what the matrial shader thing youre talking about is. what exactly does it do? and what happnes after i put the action on the sprite?
Posted By: snake333

Re: Realistic Blood Effect - 09/03/05 13:35

yeah Mate, as Sparten said, we have no idea about the material shaders. Please give a short description

Regards
SNAKE333
Posted By: Metal_Thrasher

Re: Realistic Blood Effect - 09/03/05 13:59

lol, ok, well if you've played either HL2 or Doom3 you'll see that the blood in those games look real,as it's dark and it blend onto the surface it's on, notice the differance between this and just a maroon sprite. Try it one a srite to see the before and after afters.
Posted By: Asse

Re: Realistic Blood Effect - 09/03/05 15:41

@ DragonXdark: I see you're very good in painting bloody splatters but maybe these two Photoshop brushes could improve your work (AB Set 1 & 2):

http://www.angryblue.com/downloads.shtml
Posted By: Metal_Thrasher

Re: Realistic Blood Effect - 09/03/05 19:27

actaully that is a brush from angry blue, their just over lapping each other...It's the material effect I'm showing off..not the sprite. thanks all the same for the link though
Posted By: spartan131

Re: Realistic Blood Effect - 09/04/05 00:39

so i just put the sprite in my level, put the action on it, then the sprite willl look realisitc like in hl2? how do u make it so u use this action so that the blood comes out of the enemies and stuff like that?
Posted By: Josh_Arldt

Re: Realistic Blood Effect - 09/04/05 03:23

Quote:

how do u make it so u use this action so that the blood comes out of the enemies and stuff like that?




DragonXdark has posted some code for this before. Please use the search button for the forums... it's there for a reason!

@DragonXdark nice contribution.
Posted By: Towelie

Re: Realistic Blood Effect - 09/04/05 05:03

Yes we all love DXD and his blood splatters
Posted By: Metal_Thrasher

Re: Realistic Blood Effect - 09/04/05 23:12

Okay okay, time for a shitty joke...I hope you're all ready
...okay, "Have bloody good time with this code"
I know, I'm soo funny :P

Thanks guys, enjoy it
Posted By: spartan131

Re: Realistic Blood Effect - 09/05/05 00:43

is this the thread that talked about how to make the blood come out of the enemies?

http://www.coniserver.net/ubbthreads/sho...part=1&vc=1
Posted By: Josh_Arldt

Re: Realistic Blood Effect - 09/05/05 02:57

Yes... it is...
Posted By: spartan131

Re: Realistic Blood Effect - 09/05/05 07:44

cool so i just put that code, and the code here to make a realistic blood effect that comes out of enemies?
Posted By: Metal_Thrasher

Re: Realistic Blood Effect - 09/05/05 16:26

yes, just follow the instructions and you'll have a very bloody game
Posted By: Matt_Coles

Re: Realistic Blood Effect - 09/06/05 05:59

Me playing around with it in the backyard level


Posted By: Inestical

Re: Realistic Blood Effect - 09/06/05 10:15

^^ too heavy for my project, but maybe for some other game ^^
Posted By: spartan131

Re: Realistic Blood Effect - 09/06/05 14:01

awesome, im going to add this to my game right now! thanks!
Posted By: Metal_Thrasher

Re: Realistic Blood Effect - 09/06/05 15:32

@Matt
Looks nice man
@spartan
Cool, can't wait to see some screens
Posted By: rincewind

Re: Realistic Blood Effect - 09/06/05 20:48

Thats a kickass effect :-)

I really like it. Is it dependent on a specific Gamestudio Version or can anyone use it? My game needs a lot of blood and I would really like to implement it.

Great work as always, Dragon :-)

Best regards
Rincewind
Posted By: Metal_Thrasher

Re: Realistic Blood Effect - 09/06/05 21:20

Dependent on a certain version, oh wow...I have no clue...it's a shader effect..so I *think* you might need commercail at least. but I'm not sure...
Posted By: Daedelus

Re: Realistic Blood Effect - 09/11/05 08:26

The effect is cool but the edges on the splatters seem a bit blocky in some areas. Is that a .PCX or a .tga you're using?
I can get the effect to work with a .tga but the outline of the sprite can been seen.
Posted By: Metal_Thrasher

Re: Realistic Blood Effect - 09/11/05 12:42

Quote:

The effect is cool but the edges on the splatters seem a bit blocky in some areas. Is that a .PCX or a .tga you're using?
I can get the effect to work with a .tga but the outline of the sprite can been seen.



The outline for me is from resizing the huge sprite real small. Check your image file
© 2023 lite-C Forums