1 registered members (monarch),
1,259
guests, and 5
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Realistic Blood Effect
#53897
09/01/05 02:50
09/01/05 02:50
|
Joined: Oct 2003
Posts: 2,194 Saturn
Metal_Thrasher
OP
Expert
|
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
Rabbit Developer
|
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]
#53900
09/01/05 16:09
09/01/05 16:09
|
Joined: Aug 2003
Posts: 448 Pluto
SlyBoots
Senior Member
|
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: spartan131]
#53903
09/02/05 21:54
09/02/05 21:54
|
Joined: May 2005
Posts: 961 Bremen, Germany
tuschcarsten
User
|
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: spartan131]
#53905
09/03/05 13:35
09/03/05 13:35
|
Joined: Feb 2005
Posts: 265 UAE
snake333
Member
|
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
OP
Expert
|
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
|
|
|
|