Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / blood splat effect

Author
Message
sniper
20
Years of Service
User Offline
Joined: 3rd Dec 2004
Location:
Posted: 4th Dec 2004 03:27
Another effect question from me...
There are lots of games that have a blood splat effect in them. For example in FPS games when you shoot an enemy who is near a random object blood is painted onto that object. I can't get my head around how this is done... can someone please shine a light on the matter.
I once heard the idea that a shadow is created and it is then textured, but how does this work in DBPro or is it aload of crap?

king chris
Chris64
20
Years of Service
User Offline
Joined: 16th Oct 2004
Location: San Diego
Posted: 4th Dec 2004 05:42
If you search, this topic has been brought up a couple times. In many games I've seen it is clearly a texture. It conforms to shapes to perfectly to be anything else. I haven't gotten into multitextures yet but basically I'm guessing the answer is there somewhere.

As a bandaid...I'm planning on just building my own little custom "particle" set actually made of objects. 30 or so little brain splatters going away from the gun shot with a little gravity...on collision stick and slowly drip down. Maybe play around with rescaling them for the dripping down effect.
TKF15H
21
Years of Service
User Offline
Joined: 20th Jul 2003
Location: Rio de Janeiro
Posted: 4th Dec 2004 06:07
I used to do it with memblocks and matrices. I'd strech a large texture over a matrix, and make a memblock out of it. Whenever I needed to make a blood stain on the floor, I had a function that would blend the blood's texture with the matrix's texture's memblock. Then I'd just have to call "make image from memblock", and update the matrix. Back then, DBP had a problem with this. It would work fine, but in certain angles the blood stain would disappear. Also, they wouldn't show up on a few graphics cards.

sniper
20
Years of Service
User Offline
Joined: 3rd Dec 2004
Location:
Posted: 5th Dec 2004 03:56
Thanks Chris64 but I don't think using textures will do it, I don't think you can texture an object in a specific place... can you?

Also thanks TKF15H but I don't have a clue what your going on about!

king chris

Login to post a reply

Server time is: 2025-06-04 20:03:14
Your offset time is: 2025-06-04 20:03:14