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 / Bullet holes and blood splats

Author
Message
Mr Snuggles
20
Years of Service
User Offline
Joined: 7th Dec 2004
Location:
Posted: 19th Mar 2005 08:23
How does one make bulletholes or blood splats appear on a wall in real-time? I want to be able to shoot a wall and have a bullethole texture appear on the wall, and the same for somebody getting shot in front of a wall. I think I could work out the rest of the code if I knew how to put an added texture on an object at a given point. Any help?

ooo isn't that precious
Clueless
21
Years of Service
User Offline
Joined: 16th Feb 2004
Location: Corbin, KY, USA
Posted: 19th Mar 2005 15:14
I've got a simple hole-on-the-wall tutorial with media here:

http://www.vaxwar.com/tuts/index.asp

Not all of the other links actually work yet. I'm incredibly far behind on uploading content (somebody had the nerve to suggest I go work during the day, which cut into my game dev time )

Anyway, there's one example. I'm sure there are more advanced ways to do it also.
Mr Snuggles
20
Years of Service
User Offline
Joined: 7th Dec 2004
Location:
Posted: 20th Mar 2005 10:49
Hm... thanks for the link. That's not quite what I'm looking for, though. I want to be able to place bullet holes on a wall at the place where the bullet hit it, as well as putting bloody wounds on character models when they are injured.

ooo isn't that precious
Aoneweb
22
Years of Service
User Offline
Joined: 9th Sep 2002
Location: Tucson, Arizona
Posted: 20th Mar 2005 11:43
Decals, there is a book about texture making that includes the fundamentals of decals, “The Dark Side Of Game Texturing” by David Franson.

Toshiba Sattelite, 3.2Ghz,ATI Radeon 9000 IGP 128mb, 1.2gig of Ram, Windows XP Home. www.aoneweb.com
Dodo
20
Years of Service
User Offline
Joined: 8th Aug 2004
Location: eating lunch
Posted: 20th Mar 2005 20:27 Edited at: 20th Mar 2005 20:28
The easiest way for wall bullet holes is to create a textured plain which is transparent except for the bullet hole. When your bullet hits the wall, position the plain at the bullet position and align it with your wall. This way you will get a neat looking bullet hole.

For blood on the wall just do the same, but blood on things that aren't flat is a bit more difficult. To do this you would propbably have to make lots of limbs on your object when you model it, and texture these with your blood texture. In DBPro hide all the blood limbs, and then show them when a bullet hits that limb. A nice effect is to fade the limb in so it looks like the blood is seeping out.

Part of solving the problem is actually noticing that the problem is there in the first place

Login to post a reply

Server time is: 2025-05-28 05:11:53
Your offset time is: 2025-05-28 05:11:53