Node output different to node preview

Discussion and feedback on Construct 2

Post » Sun Feb 16, 2014 7:36 pm

There are some annoying issues with the output on a project exported to node-webkit compared with the previewed output from within C2.

The main one for me is the colour bleed of stretched sprites. In the preview they look fine, but the actual output is poor. What does C2 do in the export it doesnt do in the preview ?

I have no compression on exported images either so it cant be that.
B
48
S
16
G
9
Posts: 1,097
Reputation: 11,195

Post » Mon Feb 17, 2014 1:17 am

Hey @spongehammer I've never noticed that in any of my exports/previews, could you post images of that colour bleeds? Maybe I'm not paying attention to my exports after all..
ImageImageImageImage
B
157
S
66
G
41
Posts: 2,599
Reputation: 34,835

Post » Mon Feb 17, 2014 1:37 am

I've noticed this too. It's a chrome issue I think. It's pretty annoying.
B
92
S
31
G
24
Posts: 3,191
Reputation: 32,679

Post » Mon Feb 17, 2014 7:40 am

It's probably a side-effect of spritesheeting on export, which would happen with any exporter, not just node-webkit.
Scirra Founder
B
395
S
233
G
88
Posts: 24,376
Reputation: 193,842

Post » Mon Feb 17, 2014 9:12 am

I have figured out what causes it and how to mitigate the problem, at least in my case.

I have a sprite which has 6 frames, each one a different solid colour. They happen to be 256x 256

The first frame is blue, second green, third red etc.

I place a sprite and resize it for my needs and set the frame to 0 (blue). When i preview its fine but on export i see the edges of the sprite go from blue to green. Changing the frame to green the edges fade to red and so on.

The way i have found to stop this is basically to double the number of frames. So 2 x blue, 2 x green, 2 x red etc. Then by using frames 0,2,4 it stops the colour bleed.

Hope this makes sense and is of some help.
B
48
S
16
G
9
Posts: 1,097
Reputation: 11,195

Post » Mon Feb 17, 2014 10:14 am

[QUOTE=spongehammer] I have figured out what causes it and how to mitigate the problem, at least in my case.

I have a sprite which has 6 frames, each one a different solid colour. They happen to be 256x 256

The first frame is blue, second green, third red etc.

I place a sprite and resize it for my needs and set the frame to 0 (blue). When i preview its fine but on export i see the edges of the sprite go from blue to green. Changing the frame to green the edges fade to red and so on.

The way i have found to stop this is basically to double the number of frames. So 2 x blue, 2 x green, 2 x red etc. Then by using frames 0,2,4 it stops the colour bleed.

Hope this makes sense and is of some help.[/QUOTE]

If you add one transparent pixel of border all around each frame, does the problem still occurs?
Game design is all about decomposing the core of your game so it becomes simple instructions.
B
53
S
22
G
18
Posts: 2,122
Reputation: 17,123

Post » Mon Feb 17, 2014 12:14 pm

@Aphrodite

Yes i have tried that and it makes no difference.
B
48
S
16
G
9
Posts: 1,097
Reputation: 11,195


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 8 guests