HPCE / hpce-2014-cw4

3 stars 5 forks source link

Bitmap upside-down? #8

Closed salmanarif closed 9 years ago

salmanarif commented 9 years ago

Hi,

In the readme, it says that render_world will save the world as a bitmap where high temperature cells will be red, and low temperature cells will be blue.

It appears that the rendered bitmap is upside-down. For example, with the following command: make_world.exe 100 0.1 | step_world 0.1 100000 | render_world dump.bmp

The following image is rendered: dump

The text output from step_world is: Text output

m8pple commented 9 years ago

It's a known (vaguely intentional) issue - it's a legacy design decision that won't get fixed as it will break existing code. y-flipping co-ordinate transforms when rendering as images are common, so I'm going to close it as Not A Bug.

But thanks for documenting it.