Fake Bump-mapping Example

Post your Construct-made creations!

Post » Fri Jul 18, 2008 8:52 pm

So, I know that Construct has a bump mapping effect, but I wanted to make something that supported multiple lights, and this is what I came up with:

Fake bump-mapping example

The white light follows the mouse directly, while the colored lights slowly move towards the mouse. So, how this works, is that I have two layers. The first layer has the background images. The second layer has the lights and the bump-mapping objects, and it's also set to force it's own texture so as not to distort the background images on the bottom layer, only the lights on their own layer. On the second layer, I have sprites with black and white bump-map images, and these sprites have the distort effect applied to them. Since the lights on the second layer are always beneath the bump objects, they are distorted to appear as if they are casting light on bump-mapped surfaces, creating a mostly accurate representation of bump-mapping.

I hope that makes some sort of sense. :P If it doesn't, checking out the example should probably explain it. Tell me what you all think! :)
Moderator
B
98
S
37
G
19
Posts: 1,584
Reputation: 17,817

Post » Fri Jul 18, 2008 9:22 pm

@linkman2004 - I think thay you should post this in "Uploads" forum.

On topic:
I can't test it - my graphics card don't support PS 2.0 ;(
B
6
S
3
G
7
Posts: 138
Reputation: 3,547

Post » Fri Jul 18, 2008 9:46 pm

Ah, yes, I forgot to mention that it requires PS 2.0. Sorry about that.

EDIT: By the way, would a mod mind moving this to the uploads forum?
Moderator
B
98
S
37
G
19
Posts: 1,584
Reputation: 17,817

Post » Fri Jul 18, 2008 11:16 pm

Wow, that's pretty good, well done.
B
2
S
2
G
5
Posts: 156
Reputation: 1,962

Post » Sat Jul 19, 2008 2:22 am

really awesome sauce!! i really dig when people found solution "Out of the box"
B
2
S
2
G
4
Posts: 114
Reputation: 1,678

Post » Sun Jul 20, 2008 3:03 pm

Nice, that's a pretty convincing fake bumpmapping effect, well done!
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600

Post » Mon Jul 21, 2008 12:06 am

Thanks for the comments, everybody. :) I've been working on the engine and have made some improvements. I'm currently pulling together a new example, and I should be finished with it soon.
Moderator
B
98
S
37
G
19
Posts: 1,584
Reputation: 17,817

Post » Tue Jul 22, 2008 3:20 am

Okay, I'm finished with the example I promised. Again, it requires PS 2.0, so keep that in mind. It is at the following link:

Fake bump-mapping: Shooter example

Use the WASD keys to move and jump. Aim with the mouse and fire with the left mouse button. The improvement here is that I applied a dodge effect to the layer with the lights and the bump-maps, making the lights look more like lights and less like blobs. :P

Tell me what you think. :)
Moderator
B
98
S
37
G
19
Posts: 1,584
Reputation: 17,817

Post » Tue Jul 22, 2008 7:46 am

Awesome example! I will have to look into this unconventional way of achieving bumpmapping further. I really love that platformer/shooter example as well. The animating legs are classic! However, one suggestion, rearrange the actions on the second event so that body gets positioned first, otherwise the gun lags a frame behind (unless thats the desired effect of course). Hope you turn that into a full game :)
B
4
S
2
G
5
Posts: 641
Reputation: 3,011

Post » Tue Jul 22, 2008 12:34 pm

That's really awesome! love the effects.
The gun also reminds me of the gun from Halo :o
B
134
S
65
G
16
Posts: 1,766
Reputation: 19,190

Next

Return to Your Creations

Who is online

Users browsing this forum: No registered users and 1 guest