Bumpmapping lighting

Post your Construct-made creations!

Post » Sat Apr 12, 2008 7:19 am

Heh, I love this so much. I had a feeling it was entirely possible, too... thanks Ashley!

It is just a greyscale map?

Edit: Oh oh oh! And if you want to apply bumpmapping to all of the objects on the entire screen, would faster rendering be possible through the use of scaled and filtered lower-res bump textures? That would be neat, to have professional-like, scalable graphics settings in a 2D Construct game.
B
4
S
2
G
6
Posts: 161
Reputation: 2,597

Post » Sat Apr 12, 2008 9:02 am

I can see this would be very cool when making a dungeon crawler game and in the game play exploring new scary places with a torch.
B
2
S
1
G
5
Posts: 79
Reputation: 1,558

Post » Sat Apr 12, 2008 9:37 am

If possible Ashley, you should release the shader before the next build. These are the kinds of features that stand out IMO.

I don't know if it's the type of shader that you can simply distribute an .fx file as, though. Hope so!
B
2
S
2
G
5
Posts: 391
Reputation: 2,432

Post » Sat Apr 12, 2008 11:06 am

Impressive. IMPRESSIVE.
B
2
S
2
G
5
Posts: 512
Reputation: 2,674

Post » Sat Apr 12, 2008 2:38 pm

Very cool!
B
3
S
2
G
5
Posts: 301
Reputation: 2,302

Post » Sat Apr 12, 2008 2:42 pm

It's a real bumpmapping shader so you need a normal map to make it work - the one I used is here. Normal maps are a way of storing 3D data on a texture, which the shader then uses to calculate 3D lighting. Bumpmapping is well documented in 3D so I looked at the shader and pretty much just got rid of the Z axis, and tweaked it till it looked good.

There are plugins for Photoshop and Gimp that can turn a greyscale heightmap in to a normal map so it's still easy enough to generate the textures you need for bumpmapping - but it does make it a bit trickier if you want to do a fullscreen bumpmap on all the objects moving round. I'm not sure if thats possible.
Scirra Founder
B
359
S
214
G
72
Posts: 22,951
Reputation: 178,578

Post » Sat Apr 12, 2008 5:52 pm

[quote="deadeye":cvhljrkc]I got a new video card today! WHEEEEEEE! GeForce 6200! I can now play the hottest games from three years ago on low quality![/quote:cvhljrkc]

Dammit! Now you've left me alone here in the early 90's! Guess it will be my turn soon...

From what i've seen on the gif it looks awsome! I don't really like anything that looks like 3D but isn't 3D, like pre-rendered graphics etc.. But maybe this is possible to use in a good way.
B
8
S
2
G
5
Posts: 744
Reputation: 3,288

Post » Sat Apr 12, 2008 6:17 pm

I'd love to see this in the next version - would really put the atmosphere in me and my team's zombie game to use on floortiles and such when the flashlight is on :D
B
4
S
2
G
6
Posts: 50
Reputation: 1,690

Post » Sat Apr 12, 2008 6:23 pm

Yeah, it's in the next build, called 'Bumpmapping' - I'll throw together a quick Wiki article on it to go with it.
Scirra Founder
B
359
S
214
G
72
Posts: 22,951
Reputation: 178,578

Post » Sat Apr 12, 2008 6:24 pm

[quote="Ashley":39fyxo13]Yeah, it's in the next build, called 'Bumpmapping' - I'll throw together a quick Wiki article on it to go with it.[/quote:39fyxo13]

Fast reply, and an awesome reply! Hope it's easy to use :D
B
2
S
2
G
5
Posts: 512
Reputation: 2,674

PreviousNext

Return to Your Creations

Who is online

Users browsing this forum: No registered users and 1 guest