bumpmapping sprites with alpha

Get help using Construct 2

Post » Fri Mar 14, 2014 5:18 pm

I was recently testing out the bump mapping fx. I love how it works and the effect it gives.

However I've encountered a problem and no clue on if there is a work around for it.

Basically I'm using it on character sprites which do have alphas in the png files. the problem I'm receiving is that the entire image square has the effect applied to it and not just the character pixels. The result is a gradient around the character. It's not noticeable on black backgrounds or objects. But when the sprite is overlaying anything colored, its very visible. I am creating the normal maps in photoshop with the nvidia plug in and have quite a bit of experience when creating normal and bump maps for game engines.

Is there a setting i'm missing or a work around? any help would be greatly appreciated.
B
12
S
4
G
3
Posts: 17
Reputation: 3,234

Post » Fri Mar 14, 2014 5:22 pm

use rgb (128,128,0) to fill transparent pixels in normal map
ImageImageImageImage
B
158
S
66
G
43
Posts: 2,603
Reputation: 35,868

Post » Fri Mar 14, 2014 6:29 pm

Hmmm maybe that will help
bumpMappingAlpha.capx
B
68
S
22
G
14
Posts: 1,485
Reputation: 16,561


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 40 guests