Inside3D!
     

Water splash sprite?

 
Post new topic   Reply to topic    Inside3d Forums Forum Index -> QuakeC Programming
View previous topic :: View next topic  
Author Message
Orion



Joined: 12 Jan 2007
Posts: 414
Location: Brazil

PostPosted: Sun Feb 17, 2008 7:53 pm    Post subject: Water splash sprite? Reply with quote

Hello there, does anyone have a water splash sprite?
I did a check on all MOVETYPE_TOSS/BOUNCE entities every frame mimicking SV_CheckWaterTransition, but to just spawn a water splash sprite.

Thanks.
_________________
There's no signature here. Stop looking for one.
Back to top
View user's profile Send private message
RenegadeC



Joined: 15 Oct 2004
Posts: 370
Location: The freezing hell; Canada

PostPosted: Sun Feb 17, 2008 9:31 pm    Post subject: Reply with quote

I could also use this, unfortunately I can't draw sprites very well.
Back to top
View user's profile Send private message AIM Address MSN Messenger
Orion



Joined: 12 Jan 2007
Posts: 414
Location: Brazil

PostPosted: Sun Feb 17, 2008 10:18 pm    Post subject: Reply with quote

Me neither.

I'm currently using a particle effect, but it doesn't look very good.
I was searching for animated water splash gifs, but I couldn't find one, nor a sequence of splash pictures.

EDIT: The first FPS game that used splash sprites (I'm not sure if that are sprites) was HL2... that effects are perfect.
_________________
There's no signature here. Stop looking for one.
Back to top
View user's profile Send private message
frag.machine



Joined: 25 Nov 2006
Posts: 728

PostPosted: Mon Feb 18, 2008 1:20 am    Post subject: Reply with quote

Your better chance is trying older games such Duke3D, Heretic or Hexen. I recall seeing water splashes animations in one of these. Shouldn't be hard to convert to Quake sprites.
_________________
frag.machine - Q2K4 Project
http://fragmachine.quakedev.com/
Back to top
View user's profile Send private message Visit poster's website
scar3crow
Inside3D Staff


Joined: 18 Jan 2005
Posts: 837
Location: Las Vegas, NV

PostPosted: Mon Feb 18, 2008 9:23 pm    Post subject: Reply with quote

The first thing I did in Heretic was run backwards off of the dock over and over, watching the water splash as I landed in it. Duke3d has sprites for when hitscan weapons impact the water surface - don't recall on actors hitting it. Hexen should have them as well.

Check with your local leileilol about whether or not its fine to use them.
Back to top
View user's profile Send private message AIM Address
Spike



Joined: 05 Nov 2004
Posts: 944
Location: UK

PostPosted: Tue Feb 19, 2008 1:19 am    Post subject: Reply with quote

part of the problem with particles/sprites when hitting water is detecting where it actually transisioned. q2/q3 bsps have content masks that makes this easy to find. Theoretically the same can be done with q1bsp without recompiling every map. But no currently available engines support that as far as I know. Still, just change the current content values into masks and voila, water that is solid to the first phase of shotgun traces etc (with plane normals) allowing you to find out exactly where to put your sprites with minimum effort.
Quake2 has bubble trails (particles) when you fire shotguns underwater using a similar method.
_________________
What's a signature?
Back to top
View user's profile Send private message Visit poster's website
Orion



Joined: 12 Jan 2007
Posts: 414
Location: Brazil

PostPosted: Tue Feb 19, 2008 5:22 pm    Post subject: Reply with quote

Spike wrote:
Quake2 has bubble trails (particles) when you fire shotguns underwater using a similar method.


Yeah, that's easy to make in QC too. But I just want to use a water splash sprite when a grenade, backpack and other droppable items crosses the water surface.

I did it easily, mimicking SV_CheckWaterTransition() that is used within the engine, and I'm using a particle effect while I don't have a decent water splash sprite.
_________________
There's no signature here. Stop looking for one.
Back to top
View user's profile Send private message
leileilol



Joined: 15 Oct 2004
Posts: 1321

PostPosted: Tue Feb 19, 2008 5:36 pm    Post subject: Reply with quote

painkeep did this

check painkeep's source?
_________________
Back to top
View user's profile Send private message
xaGe



Joined: 01 Mar 2006
Posts: 329
Location: Upstate, New York

PostPosted: Wed Feb 20, 2008 2:18 am    Post subject: Reply with quote

What kind of ripple sprite.. I did this in a hurry and the layered psd file with transparency looks better then the gif file I made from it, but are you thinking something like this???:




or this:


Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Orion



Joined: 12 Jan 2007
Posts: 414
Location: Brazil

PostPosted: Wed Feb 20, 2008 2:01 pm    Post subject: Reply with quote

Yeah, the first one is nice, but I think I need 2 sprites, this one you posted oriente and another VP parallel, that's a splash like this:




Edit:

Just an off-topic thing:
Why is thig bug stated in QIP?
That bug saying when a grenade passes the waterline, Quake should play a splash sound?
In what does it affect gameplay?
Now I'm curious.. lol
_________________
There's no signature here. Stop looking for one.


Last edited by Orion on Thu Feb 21, 2008 11:41 pm; edited 1 time in total
Back to top
View user's profile Send private message
xaGe



Joined: 01 Mar 2006
Posts: 329
Location: Upstate, New York

PostPosted: Thu Feb 21, 2008 11:33 pm    Post subject: Reply with quote

..I find sounds do affect game play single & multi player... Depending on the map I guess the splash of a grenade would matter game play wise. Say the enemy is in or near the water using the grenade launcher on other players/monsters the splash/explosion could give away their position...




Orion wrote:

Just an off-topic thing:
Why is thig bug stated in QIP?
That bug saying when a grenade passes the waterline, Quake should play a splash sound?
In what does it affect gameplay?
Now I'm curious.. lol
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Orion



Joined: 12 Jan 2007
Posts: 414
Location: Brazil

PostPosted: Thu Feb 21, 2008 11:46 pm    Post subject: Reply with quote

Last off-topic:

Yeah, that makes sense...
And there's another bug that every sound can be heard through walls as well as EF_'s shines through walls too.

In real life, depending on the wall depth, a sound can or not be heard... but in Quake all sounds are heard with the same fading distance through walls independing of its depth.

Explosion and other big particle effects may clip through a wall as well.
Many engines have this fixed.

The ID guys left a lot to do into the Quake engine...
_________________
There's no signature here. Stop looking for one.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Inside3d Forums Forum Index -> QuakeC Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2004 phpBB Group