Flaming Wreckage! - Possible with scripting?
Moderators: winston, another_commander
- DaddyHoggy
- Intergalactic Spam Assassin
- Posts: 8515
- Joined: Tue Dec 05, 2006 9:43 pm
- Location: Newbury, UK
- Contact:
S'ok, if it's small wreckage it'll go kaboom after a few seconds...Captain Hesperus wrote:Oh dear, seeing the kiddie drawing on it as it floats through space might be a bit hard for me....
My OXPs via Boxspace or from my Wiki pages .
Thargoid TV
Dropbox Referral Link
Thargoid TV
Dropbox Referral Link
- JensAyton
- Grand Admiral Emeritus
- Posts: 6657
- Joined: Sat Apr 02, 2005 2:43 pm
- Location: Sweden
- Contact:
Hmm… you could even have parts of the edges burn away over time. (If time * burniness map * scaling factor > threshold, discard)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.
E-mail: [email protected]
- Eric Walch
- Slightly Grand Rear Admiral
- Posts: 5536
- Joined: Sat Jun 16, 2007 3:48 pm
- Location: Netherlands
It's not okay.Thargoid wrote:S'ok, if it's small wreckage it'll go kaboom after a few seconds...Captain Hesperus wrote:Oh dear, seeing the kiddie drawing on it as it floats through space might be a bit hard for me....
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.
UPS-Courier & DeepSpacePirates & others at the box and some older versions
- JensAyton
- Grand Admiral Emeritus
- Posts: 6657
- Joined: Sat Apr 02, 2005 2:43 pm
- Location: Sweden
- Contact:
Let me fix that for you. (Also, that seems a bit optimistic to me.)Eric Walch wrote:The picture on the fridge means that there was a caringfatherparent that now died together with its fridge and left an orphaned child behind.
E-mail: [email protected]
Aluminium burns quite violently at very high temperatures when the oxidisation layer is breached, and oxidisation would not occur in space anyway.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!
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).
(Gold Medal Award, Zzap!64 May 1985).
- JensAyton
- Grand Admiral Emeritus
- Posts: 6657
- Joined: Sat Apr 02, 2005 2:43 pm
- Location: Sweden
- Contact:
Yes, but that includes burning. :-) Still, “flaking away due to being bloody hot” strikes me as plausible.Gimi wrote:Aluminium burns quite violently at very high temperatures when the oxidisation layer is breached, and oxidisation would not occur in space anyway.
E-mail: [email protected]
Quite right, as that is what would happen in Space with no oxygen.Ahruman wrote:Yes, but that includes burning. Still, “flaking away due to being bloody hot” strikes me as plausible.Gimi wrote:Aluminium burns quite violently at very high temperatures when the oxidisation layer is breached, and oxidisation would not occur in space anyway.
"A brilliant game of blasting and trading... Truly a mega-game... The game of a lifetime."
(Gold Medal Award, Zzap!64 May 1985).
(Gold Medal Award, Zzap!64 May 1985).
- Griff
- Oolite 2 Art Director
- Posts: 2483
- Joined: Fri Jul 14, 2006 12:29 pm
- Location: Probably hugging his Air Fryer
*emerges from shader development lab*
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*
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.
Griff wrote:*emerges from shader devekopment lab*
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).
(Gold Medal Award, Zzap!64 May 1985).
- JensAyton
- Grand Admiral Emeritus
- Posts: 6657
- Joined: Sat Apr 02, 2005 2:43 pm
- Location: Sweden
- Contact:
Yes, I was thinking something like float time = max(uTime, kMaxTime);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?
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.
E-mail: [email protected]
- DaddyHoggy
- Intergalactic Spam Assassin
- Posts: 8515
- Joined: Tue Dec 05, 2006 9:43 pm
- Location: Newbury, UK
- Contact:
Griff, you are a god. Can we expect this effect to appear in Cataclysm Version 2....Griff wrote:*emerges from shader development lab*
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*
Oolite Life is now revealed hereSelezen wrote:Apparently I was having a DaddyHoggy moment.
- Captain Hesperus
- Grand High Clock-Tower Poobah
- Posts: 2310
- Joined: Tue Sep 19, 2006 1:10 pm
- Location: Anywhere I can sell Trumbles.....
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.Griff wrote:*emerges from shader development lab*
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*
Captain Hesperus
The truth, revealed!!
- Commander McLane
- ---- 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:
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?Captain Hesperus wrote:As the metal disintegrates, it'd lose a lot of heat rapidly into the stellar environment...