Normalmaps with Tiled Background

Report Construct 2 bugs here.

Post » Wed Sep 25, 2013 3:39 am

Link to .capx file (required!):
https://copy.com/U6YTYl63eC2LHQzX

Steps to reproduce:
1. Apply normalmap to tiled background (with textured version beneath (similar effect experienced when applied to layer.
2. Run project.
3. Drag select both texture and normalmap.
4. Scale both in any direction.

Observed result:

1. When the project is run, the normal map looks fine, but the light result is reversed vertically. Horizontally, it can occasionally be off as well, but at least it scrolls in the correct direction. It was suggested that to resolve this, you need only turn the scale of the normal map into a negative figure and reposition it, but this is not a fix, and may require a lot of changes throughout project development.

2. When scaled, the normal map again appears to be reversed. When you increase the scale, the normal map gets smaller, and when you decrease the scale, the normal map gets larger.

3. The code for a normal map on a tiled background and a standard sprite can be the same, but generate very different results.

Expected result:

Normal map should not be inverted vertically, and should not produce unwanted results when scaling, both in the layout editor, and when a project is run.

Browsers affected:
Chrome: yes
Firefox: yes
Internet Explorer: Can't even get normal maps to work

Operating system & service pack:

Windows 7, SP1

Construct 2 version:

144.2
@bearboxmedia
www.bearboxmedia.com

Nintendo Wii U Developer using Construct 2
B
84
S
15
G
7
Posts: 991
Reputation: 11,231

Post » Wed Sep 25, 2013 11:15 pm

Just an update to say this is still happening in r145. Hoped the tweak to the tiled bg expressions meant it was resolved :(

Is it a bug? Or by design?
@bearboxmedia
www.bearboxmedia.com

Nintendo Wii U Developer using Construct 2
B
84
S
15
G
7
Posts: 991
Reputation: 11,231

Post » Thu Sep 26, 2013 1:37 pm

I can't seem to access your .capx file. Could you try using Dropbox, Google Drive or Skydrive instead?
Scirra Founder
B
403
S
238
G
89
Posts: 24,659
Reputation: 196,165

Post » Thu Sep 26, 2013 3:24 pm

@Ashley

Sorry about that! I have added it to my Dropbox here:

https://dl.dropboxusercontent.com/u/50465867/Construct/NormalMapTest.capx
@bearboxmedia
www.bearboxmedia.com

Nintendo Wii U Developer using Construct 2
B
84
S
15
G
7
Posts: 991
Reputation: 11,231


Return to Bugs

Who is online

Users browsing this forum: No registered users and 2 guests