Flaming Wreckage! - Possible with scripting?

Discussion and information relevant to creating special missions, new ships, skins etc.

Moderators: another_commander, winston

User avatar
DaddyHoggy
Intergalactic Spam Assassin
Intergalactic Spam Assassin
Posts: 8501
Joined: Tue Dec 05, 2006 9:43 pm
Location: Newbury, UK
Contact:

Post by DaddyHoggy »

:lol: :lol: :lol: 8)
Selezen wrote:
Apparently I was having a DaddyHoggy moment.
Oolite Life is now revealed here
User avatar
Thargoid
Thargoid
Thargoid
Posts: 5525
Joined: Thu Jun 12, 2008 6:55 pm

Post by Thargoid »

Captain Hesperus wrote:
Oh dear, seeing the kiddie drawing on it as it floats through space might be a bit hard for me....
S'ok, if it's small wreckage it'll go kaboom after a few seconds...
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Post by JensAyton »

Griff wrote:
yeah, they are all crinkly like that, you can use a texture map to nibble away at the polygon using the 'discard' command in the shader.
Hmm… you could even have parts of the edges burn away over time. (If time * burniness map * scaling factor > threshold, discard)
User avatar
Eric Walch
Slightly Grand Rear Admiral
Slightly Grand Rear Admiral
Posts: 5536
Joined: Sat Jun 16, 2007 3:48 pm
Location: Netherlands

Post by Eric Walch »

Thargoid wrote:
Captain Hesperus wrote:
Oh dear, seeing the kiddie drawing on it as it floats through space might be a bit hard for me....
S'ok, if it's small wreckage it'll go kaboom after a few seconds...
It's not okay.
The picture on the fridge means that there was a caring father that now died together with its fridge and left an orphaned child behind. Very sad indeed.
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Post by JensAyton »

Eric Walch wrote:
The picture on the fridge means that there was a caring father parent that now died together with its fridge and left an orphaned child behind.
Let me fix that for you. (Also, that seems a bit optimistic to me.)
User avatar
Griff
Oolite 2 Art Director
Oolite 2 Art Director
Posts: 2476
Joined: Fri Jul 14, 2006 12:29 pm
Location: Probably hugging his Air Fryer

Post by Griff »

I'll change the picture, it does seem quite sad now in hindsight. It's not a proper kids picture or anything though, i drew it myself!
The idea of an animated map burning away the objects sounds great! sort of like how the vampires vanished in buffy the vampire slayer!
*ponders formula*
Image
User avatar
Gimi
---- E L I T E ----
---- E L I T E ----
Posts: 2073
Joined: Tue Aug 29, 2006 5:02 pm
Location: Norway

Post by Gimi »

Griff wrote:
The idea of an animated map burning away the objects sounds great! sort of like how the vampires vanished in buffy the vampire slayer!
Aluminium burns quite violently at very high temperatures when the oxidisation layer is breached, and oxidisation would not occur in space anyway.

Duraluminum could be more heat resistant and glow for a while and then be scoped. Makes a plausible explanation for why some of the metal burns and the other parts only glow.
"A brilliant game of blasting and trading... Truly a mega-game... The game of a lifetime."
(Gold Medal Award, Zzap!64 May 1985).
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Post by JensAyton »

Gimi wrote:
Aluminium burns quite violently at very high temperatures when the oxidisation layer is breached, and oxidisation would not occur in space anyway.
Yes, but that includes burning. :-) Still, “flaking away due to being bloody hot” strikes me as plausible.
User avatar
Gimi
---- E L I T E ----
---- E L I T E ----
Posts: 2073
Joined: Tue Aug 29, 2006 5:02 pm
Location: Norway

Post by Gimi »

Ahruman wrote:
Gimi wrote:
Aluminium burns quite violently at very high temperatures when the oxidisation layer is breached, and oxidisation would not occur in space anyway.
Yes, but that includes burning. :-) Still, “flaking away due to being bloody hot” strikes me as plausible.
Quite right, as that is what would happen in Space with no oxygen.
"A brilliant game of blasting and trading... Truly a mega-game... The game of a lifetime."
(Gold Medal Award, Zzap!64 May 1985).
User avatar
Griff
Oolite 2 Art Director
Oolite 2 Art Director
Posts: 2476
Joined: Fri Jul 14, 2006 12:29 pm
Location: Probably hugging his Air Fryer

Post by Griff »

*emerges from shader development lab*
Image
hmm, the effect seems to fizzle out a bit towards the end, i'll have to make sure to paint a clip map that's burnt away most of the object by then so it can be removed from the Ooniverse without it suddenly blinking out of existance, or i suppose if i knew what i was doing, i could just clamp the effect to a suitable maximum value and leave the object floating in space?
here's the relevant bit of the fragment shader *beams with pride*

Code: Select all

// Make the crinkly edge, use effects map Red channel as clipmap 
   float burnawayeffect = clipMap.r * timeElapsedSinceSpawn;  
   if (burnawayeffect > 0.9)  discard; //clip the polygons if the burn effect is over the threshold of 0.9

// Calculate the lighting 
   vec4 color = diffuse * colorMap;
   color += colorMap * specular * 6.0 * specIntensity;

/* Add the glowing metal effect, use the clip map but multiply it a bit so 
it runs ahead of the clip effect giving us a burning edge */ 
   float HeatMask =  clipMap.r * burnaway * 27.0;
   color += MetalGlow(HeatMask) * colorMap;
Last edited by Griff on Fri Feb 06, 2009 8:27 pm, edited 1 time in total.
User avatar
Gimi
---- E L I T E ----
---- E L I T E ----
Posts: 2073
Joined: Tue Aug 29, 2006 5:02 pm
Location: Norway

Post by Gimi »

Griff wrote:
*emerges from shader devekopment lab*
Image
hmm, the effect seems to fizzle out a bit towards the end, i'll have to make sure to paint a clip map that's burnt away most of the object by then so it can be removed from the Ooniverse without it suddenly blinking out of existance, or i suppose if i knew what i was doing, i could just clamp the effect to a suitable maximum value and leave the object floating in space?

I'm looking forward to this.....
"A brilliant game of blasting and trading... Truly a mega-game... The game of a lifetime."
(Gold Medal Award, Zzap!64 May 1985).
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Post by JensAyton »

Griff wrote:
hmm, the effect seems to fizzle out a bit towards the end, i'll have to make sure to paint a clip map that's burnt away most of the object by then so it can be removed from the Ooniverse without it suddenly blinking out of existance, or i suppose if i knew what i was doing, i could just clamp the effect to a suitable maximum value and leave the object floating in space?
Yes, I was thinking something like float time = max(uTime, kMaxTime);

There are a lot of built-in functions like that. I use this handy reference sheet to look them up; page numbers there refer to this version of the GLSL specification.
User avatar
DaddyHoggy
Intergalactic Spam Assassin
Intergalactic Spam Assassin
Posts: 8501
Joined: Tue Dec 05, 2006 9:43 pm
Location: Newbury, UK
Contact:

Post by DaddyHoggy »

Griff wrote:
*emerges from shader development lab*
Image
hmm, the effect seems to fizzle out a bit towards the end, i'll have to make sure to paint a clip map that's burnt away most of the object by then so it can be removed from the Ooniverse without it suddenly blinking out of existance, or i suppose if i knew what i was doing, i could just clamp the effect to a suitable maximum value and leave the object floating in space?
here's the relevant bit of the fragment shader *beams with pride*
:shock: Griff, you are a god. Can we expect this effect to appear in Cataclysm Version 2.... :)
Selezen wrote:
Apparently I was having a DaddyHoggy moment.
Oolite Life is now revealed here
User avatar
Captain Hesperus
Grand High Clock-Tower Poobah
Grand High Clock-Tower Poobah
Posts: 2312
Joined: Tue Sep 19, 2006 1:10 pm
Location: Anywhere I can sell Trumbles.....

Post by Captain Hesperus »

Griff wrote:
*emerges from shader development lab*
Image
hmm, the effect seems to fizzle out a bit towards the end, i'll have to make sure to paint a clip map that's burnt away most of the object by then so it can be removed from the Ooniverse without it suddenly blinking out of existance, or i suppose if i knew what i was doing, i could just clamp the effect to a suitable maximum value and leave the object floating in space?
here's the relevant bit of the fragment shader *beams with pride*
That actually seems reasonable. As the metal disintegrates, it'd lose a lot of heat rapidly into the stellar environment so it would have a rapid disintegration, that 'fizzles out' to a slow burn.

Captain Hesperus
The truth, revealed!!
Image
User avatar
Commander McLane
---- E L I T E ----
---- E L I T E ----
Posts: 9520
Joined: Thu Dec 14, 2006 9:08 am
Location: a Hacker Outpost in a moderately remote area
Contact:

Post by Commander McLane »

Captain Hesperus wrote:
As the metal disintegrates, it'd lose a lot of heat rapidly into the stellar environment...
I would like to ask that as a question to the people who know more about physics than I do. Would it really? Lose a lot of heat rapidly into what exactly? How would heat dissipate in vacuum? Objects on earth cool because their heat dissipates into the surrounding medium, be it air, water, earth, whatever. But in a vacuum there is by definition no surrounding medium. So my gut tells me that a hot object would not lose a lot of heat rapidly, but stay hot for a long time. Or am I wrong here? :?:
Post Reply