A Configurable ShockWave class for space explosions

Announce new projects or updates of Irrlicht Engine related tools, games, and applications.
Also check the Wiki
mohaps
Posts: 248
Joined: Tue Jun 08, 2004 1:54 pm
Location: Shrewsbury MA
Contact:

A Configurable ShockWave class for space explosions

Post by mohaps »

Hi All,

This is a demo of a shockwave generated in space when something explodes


Image
CLICK HERE TO DOWNLOAD MPEG MOVIE / HIRES IMAGE


In this shot the shockwave is generated from the asteroid.. i am right now working with the code for collision detection with the shockwave... thempeg movieshould give you an idea as to how the stuff looks in realtime :)

the class is configurable enough to allow any kind of skin colour or orientation of the shockwave.. you can also control the starting / end size of the shockwave and the speed of the shockwave..

this is being done as a part of the Blaze : Proving Ground project
---
Saurav Mohapatra
author, artist and bona fide geek

web: http://www.mohaps.com
email: mohaps AT gmail DOT com
jox
Bug Slayer
Posts: 726
Joined: Thu Apr 22, 2004 6:55 pm
Location: Germany

Post by jox »

Nice. I'd add some motion blur to the wave so it looks more dynamic. You use alpha channel anyway so it should be easy. You could make a transition from the texture to transparent inside and outside the ring (blur the edges generously). If the texture structure would be destorted towards the center it would be even better.

jox
It is like it is. And because it is like it is, things are like they are.
mohaps
Posts: 248
Joined: Tue Jun 08, 2004 1:54 pm
Location: Shrewsbury MA
Contact:

Post by mohaps »

hi jox,

i am planning to do that with shaders in the final cut anyway.. i believe vertex / pixel shader / HLSL is designed just to do such tasks and efficiently at that...

this should squeeze out a few extra cycles

for older cards i am thiking about using a reflection 2 layer material for the shockwave base texture and the sheen
---
Saurav Mohapatra
author, artist and bona fide geek

web: http://www.mohaps.com
email: mohaps AT gmail DOT com
jox
Bug Slayer
Posts: 726
Joined: Thu Apr 22, 2004 6:55 pm
Location: Germany

Post by jox »

ah ok. But creating a blurred texture wouldn't cost any cycle.
It is like it is. And because it is like it is, things are like they are.
mohaps
Posts: 248
Joined: Tue Jun 08, 2004 1:54 pm
Location: Shrewsbury MA
Contact:

Post by mohaps »

hi jox,

can you write out in psuedocode what you mean.. i can implement it if i get a handle on what you are suggesting :)

i think i misunderstood at first...
---
Saurav Mohapatra
author, artist and bona fide geek

web: http://www.mohaps.com
email: mohaps AT gmail DOT com
cmoibenlepro
Posts: 237
Joined: Thu May 27, 2004 3:18 pm
Location: Canada

Post by cmoibenlepro »

wow it looks definitively good! :D
jox
Bug Slayer
Posts: 726
Joined: Thu Apr 22, 2004 6:55 pm
Location: Germany

Post by jox »

What I mean needs no code but a graphics software like photoshop. :) Its the texture that has to be modified before it gets loaded into the engine.
It is like it is. And because it is like it is, things are like they are.
jox
Bug Slayer
Posts: 726
Joined: Thu Apr 22, 2004 6:55 pm
Location: Germany

Post by jox »

Here is an example that I quickly created with the "radial blur" flter in photoshop:

Image

Of course it needs a proper alpha channel.

I think best would be to have the texture (radially) distorted and the alpha channel blurred (gaussian would be sufficient I guess).
It is like it is. And because it is like it is, things are like they are.
mohaps
Posts: 248
Joined: Tue Jun 08, 2004 1:54 pm
Location: Shrewsbury MA
Contact:

Post by mohaps »

did some tinkering with the textures...got some alpha stuff working

using an inverted color version of jox's texture


Image


I still have not gotten the UV mapping correct


now these are using some GIMP tinkering with a texture of mine


Image


Image
---
Saurav Mohapatra
author, artist and bona fide geek

web: http://www.mohaps.com
email: mohaps AT gmail DOT com
TheRLG
Posts: 372
Joined: Thu Oct 07, 2004 11:20 pm

Post by TheRLG »

jox
Bug Slayer
Posts: 726
Joined: Thu Apr 22, 2004 6:55 pm
Location: Germany

Post by jox »

Try this one:

http://www.mindfloaters.de/irrlicht/dow ... kwave1.zip

it's a 32 bit TGA with an alpha channel. Here is an example on how it should look in irrlicht:

Image

:)
It is like it is. And because it is like it is, things are like they are.
jox
Bug Slayer
Posts: 726
Joined: Thu Apr 22, 2004 6:55 pm
Location: Germany

Post by jox »

Oh, it looks that you are using a mesh in form of a ring for that.. Is that so?

You can save some polygons when you just take a square plane (2 tris) and map the texture on it. The aplha channel creates the ring for ya, so no need of a ring mesh. its also more flexible.

for testing you could use a TestSceneNode and scale one axis to 0. Easy.

jox
It is like it is. And because it is like it is, things are like they are.
mohaps
Posts: 248
Joined: Tue Jun 08, 2004 1:54 pm
Location: Shrewsbury MA
Contact:

Post by mohaps »

yes i am using a torus mesh...

i shall give the test node a try...

i am switching to a sphere for the explosion body and shockwave for the blast effect... i think the blast wave can be the test node scaling thingie
---
Saurav Mohapatra
author, artist and bona fide geek

web: http://www.mohaps.com
email: mohaps AT gmail DOT com
mohaps
Posts: 248
Joined: Tue Jun 08, 2004 1:54 pm
Location: Shrewsbury MA
Contact:

Post by mohaps »

this is a shot of the sphere blast plus a disc shockwave combo explosion..

Image
---
Saurav Mohapatra
author, artist and bona fide geek

web: http://www.mohaps.com
email: mohaps AT gmail DOT com
mohaps
Posts: 248
Joined: Tue Jun 08, 2004 1:54 pm
Location: Shrewsbury MA
Contact:

Post by mohaps »

Hey Jox,

your idea works like a charm... :)

i got the shockwave looking cool as you can see from the screenshot...
and i updated the MPEG movie of that




Image
CLICK HERE TO DOWNLOAD MPEG MOVIE / HIRES IMAGE
---
Saurav Mohapatra
author, artist and bona fide geek

web: http://www.mohaps.com
email: mohaps AT gmail DOT com
Post Reply