Problem Description
I've notice a discrepancy between preview and export when rendering stretched sprites.
This happens when your frame get "spritesheeted". And probably only when using webGL.
This probably happends because when weGL renders the border of an image, it linearily interpolates with the neighboring pixel.
To avoid this problem, in 3D games, we usually pad the pixels of a texture (repeat first/last rows/columns)
Attach a Capx
pixelPaddingOnExport.capx
Description of Capx
You should compare preview on export (I added a dummy frame on the sprite to force spritesheeting)
Steps to Reproduce Bug
- Preview -> notice that nothing is wrong, the 3 sprites are seamless
- Export -> notice that there's a blurry seam on the sprites' sides (like in the editor)
Observed Result
Discrepancy between preview and export
Expected Result
Should behave like preview (no blurry edges)
Affected Browsers
- Chrome: YES
- FireFox: YES
- Internet Explorer: WHO CARES?
Operating System and Service Pack
Win 7 Ultimate
Construct 2 Version ID
r178 (and probably higher since I haven't see any mention of a fix in the changelogs)