Plasma Example

Post your own tutorials, guides and demos.

Post » Sun Aug 31, 2008 3:35 pm

An example of the plasma object
B
4
S
2
G
5
Posts: 641
Reputation: 3,011

Post » Sun Aug 31, 2008 11:19 pm

Haha! Great! This will definately be a useful feature!
B
8
S
2
G
5
Posts: 744
Reputation: 3,288

Post » Mon Sep 01, 2008 12:00 am

maybe add some control to what colour you can light an object and a gradient like in the original mmf extension great work also! it seems pretty damn complex to make this.

also ive been searching around the web and maybe this can be of assistance http://freespace.virgin.net/hugo.elias/ ... _fire.html
it works similar to how yours works and might be of use
B
52
S
7
G
6
Posts: 1,945
Reputation: 7,610

Post » Mon Sep 01, 2008 1:59 am

The link you provided doesn't work :(

The plasma object isn't the flame object, so it does work a little bit differently. If you paste an object in that has different colours in it, each colour will be blurred and subtracted from, allowing you to create multi-coloured visual effects (such as the example). Maybe with another multiplied map it would be possible to make the colours fade out with a tint rather than just becoming more transparent....so you could make white fade out to a red shade...or you could make all colours tint to black to make a more smoke like effect... I dont know. As for gradients, I plan to add a shader which allows you to use an image and it will take greyscale values of each pixel and map it to the texture...this could then be used by more than just the flame object, however it does require a pixel shader.

When I programmed the flame object for MMF I looped each pixel and mapped it to the image of the gradient in a filter blit. But without a pixel shader, you cant do this in direct X (or at least without major slowdown) so when I write this shader it might only be pixel shader 2 compatible, in which case people using the flame object will need to account for how it might look if people don't have the hardware to support pixel shader 2. Anyway its still possible to achieve nice effects without it mapping to a gradient.

BTW in what way is it hard to use? If you drop the object in the layout and set the background to black it works... I just use a couple of actions to make the shapes in the background move around etc.
B
4
S
2
G
5
Posts: 641
Reputation: 3,011

Post » Mon Sep 01, 2008 4:25 am

[quote="QuaziGNRLnose":kv1bblfk]maybe add some control to what colour you can light an object and a gradient like in the original mmf extension great work also! it seems pretty damn complex to make this.[/quote:kv1bblfk]

I was just messing around with different effects on the plasma object to see if I could come up with some natural-looking fire, and hey guess what? The Flame effect works friggin beautifully. I was trying all sorts of things like making the Plasma a mask to cut through to a gradient underneath it and stuff, then I saw Flame and I was all like "how did I not notice that one before?"

Anyway, here it is:

http://www.fileshack.us/get_file.php?id ... e=fire.cap

Bam, instant fire. The Flame effect overrides the color information of the sprite you're pasting, and only goes off of the gradient you specify in the Flame effect itself. I bumped up the Clip Percentage a little to make the edges softer, but other than that it's all default settings.
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

Post » Mon Sep 01, 2008 4:37 am

Oh yeah, forgot about that effect lol
B
4
S
2
G
5
Posts: 641
Reputation: 3,011

Post » Mon Sep 01, 2008 10:16 am

Is there a way to make good looking fire without ps? And does it work on any background?
B
8
S
2
G
5
Posts: 744
Reputation: 3,288

Post » Mon Sep 01, 2008 11:48 am

[quote="Attan":qdg0mu3h]Is there a way to make good looking fire without ps? And does it work on any background?[/quote:qdg0mu3h]

Well the Flame effect is ps 2 only so, I'd guess not with that type of method. I'm sure someone can come up with a decent looking alternative. I've had some ok results with making a second sprite that's exactly the same as the first, only colored with a red and yellow gradient that I place behind the first sprite. It wasn't as good as the ps2 Flame effect, but it looked okay. Of course it would be a pain to make doubles of animated sprites like that, but hey.

And yeah, it works on any background.
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

Post » Mon Sep 01, 2008 12:19 pm

No pixel shaders were hurt in the process of making this example
B
4
S
2
G
5
Posts: 641
Reputation: 3,011

Post » Mon Sep 01, 2008 4:06 pm

oh i dint think of using more than 1 flame object, that was all but impossible (i mean reallly laggy) in the first flame object, so i dint think of that, i gues you can just make a gradient that way
B
52
S
7
G
6
Posts: 1,945
Reputation: 7,610

Next

Return to Your tutorials & example files

Who is online

Users browsing this forum: No registered users and 0 guests