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
15
S
5
G
6
Posts: 18
Reputation: 4,911

Post » Fri Mar 14, 2014 5:22 pm

use rgb (128,128,0) to fill transparent pixels in normal map
ImageImageImageImage
B
160
S
69
G
44
Posts: 2,611
Reputation: 36,844

Post » Fri Mar 14, 2014 6:29 pm

Hmmm maybe that will help
bumpMappingAlpha.capx
B
71
S
22
G
14
Posts: 1,494
Reputation: 16,660


Return to How do I....?

Who is online

Users browsing this forum: Asmodean, Elliott, fbarraza28, JoniArtha and 2 guests