Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (AndrewAMD, Baklazhan, Ayumi, Hanky27), 1,387 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 3 1 2 3
Realistic Blood Effect #53897
09/01/05 02:50
09/01/05 02:50
Joined: Oct 2003
Posts: 2,194
Saturn
Metal_Thrasher Offline OP
Expert
Metal_Thrasher  Offline OP
Expert

Joined: Oct 2003
Posts: 2,194
Saturn
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;
}
}";
}

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


-Johnny Thrash
Re: Realistic Blood Effect [Re: Metal_Thrasher] #53898
09/01/05 13:58
09/01/05 13:58
Joined: Apr 2005
Posts: 3,815
Finland
Inestical Offline
Rabbit Developer
Inestical  Offline
Rabbit Developer

Joined: Apr 2005
Posts: 3,815
Finland
^^ nice, u use that in ur own game I think i'll use it.. [You gain Bookmark]


"Yesterday was once today's tomorrow."
Re: Realistic Blood Effect [Re: Metal_Thrasher] #53899
09/01/05 14:01
09/01/05 14:01
Joined: Oct 2002
Posts: 8,939
planet.earth
ello Offline
Senior Expert
ello  Offline
Senior Expert

Joined: Oct 2002
Posts: 8,939
planet.earth
yeah, thats a splatter sprite:)

Re: Realistic Blood Effect [Re: Metal_Thrasher] #53900
09/01/05 16:09
09/01/05 16:09
Joined: Aug 2003
Posts: 448
Pluto
SlyBoots Offline
Senior Member
SlyBoots  Offline
Senior Member

Joined: Aug 2003
Posts: 448
Pluto
Heh, that's a lot of blood.


3DSK Human Photo References for 3D Artists and Game Developers
Re: Realistic Blood Effect [Re: Metal_Thrasher] #53901
09/02/05 15:31
09/02/05 15:31
Joined: Feb 2005
Posts: 265
UAE
snake333 Offline
Member
snake333  Offline
Member

Joined: Feb 2005
Posts: 265
UAE
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???????


Distribute knowledge
Re: Realistic Blood Effect [Re: snake333] #53902
09/02/05 21:51
09/02/05 21:51
Joined: Jul 2005
Posts: 473
San Diego, CA
S
spartan131 Offline
Senior Member
spartan131  Offline
Senior Member
S

Joined: Jul 2005
Posts: 473
San Diego, CA
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!

Re: Realistic Blood Effect [Re: spartan131] #53903
09/02/05 21:54
09/02/05 21:54
Joined: May 2005
Posts: 961
Bremen, Germany
tuschcarsten Offline
User
tuschcarsten  Offline
User

Joined: May 2005
Posts: 961
Bremen, Germany
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;
}





Bit Happens!
Re: Realistic Blood Effect [Re: tuschcarsten] #53904
09/02/05 21:57
09/02/05 21:57
Joined: Jul 2005
Posts: 473
San Diego, CA
S
spartan131 Offline
Senior Member
spartan131  Offline
Senior Member
S

Joined: Jul 2005
Posts: 473
San Diego, CA
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?

Re: Realistic Blood Effect [Re: spartan131] #53905
09/03/05 13:35
09/03/05 13:35
Joined: Feb 2005
Posts: 265
UAE
snake333 Offline
Member
snake333  Offline
Member

Joined: Feb 2005
Posts: 265
UAE
yeah Mate, as Sparten said, we have no idea about the material shaders. Please give a short description

Regards
SNAKE333


Distribute knowledge
Re: Realistic Blood Effect [Re: snake333] #53906
09/03/05 13:59
09/03/05 13:59
Joined: Oct 2003
Posts: 2,194
Saturn
Metal_Thrasher Offline OP
Expert
Metal_Thrasher  Offline OP
Expert

Joined: Oct 2003
Posts: 2,194
Saturn
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.


-Johnny Thrash
Page 1 of 3 1 2 3

Moderated by  adoado, checkbutton, mk_1, Perro 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1