Schmavery / reprocessing

ReasonML graphics library inspired by Processing
https://schmavery.github.io/reprocessing/
MIT License
682 stars 24 forks source link

Draw.subImage renders some images strangely in Native #101

Open danieljharvey opened 6 years ago

danieljharvey commented 6 years ago

Hey!

A+++ stuff on this library, have been having a really nice time with it and going to be putting my game up online soon. I was wondering if you had any thoughts / suggestions on this - have been using Draw.subImage to build a tiled board, but a couple of the images render super weird - it's always the same ones as well.

Web view (FINE!)

screen shot 2018-06-24 at 08 30 56

Native view (MISSING BITS OF STUFF)

screen shot 2018-06-24 at 08 31 10

(FYI - the background colour differences are part of the game, not an error - it's just the weird half tiles that are a bit strange).

For reference, said rendering code is here: https://github.com/danieljharvey/reason-egg/blob/master/game/src/effects/render.re

Any thoughts?

Schmavery commented 6 years ago

Thanks for reporting this issue, we've had problems like this on and off but it's pretty much always just been off by a pixel or two. Having a tough time trying to understand what could be going on here but thanks for including the code and I'll try to give it a look and think it over some more when I get a chance.

zploskey commented 6 years ago

Are you on Mac? I can't reproduce the missing parts of those images on Ubuntu 18.04.

screenshot from 2018-07-03 10-52-14