Palapeli: Pieces drop shadows
October 1, 2009
Because of Friedrich’s continued poking, I’ve looked into solutions for the “let pieces drop shadows” problem. Here is a first proof of concept:
I’ve decided against generating the shadows together with the puzzle, and saving them in the puzzle file, because this would have doubled the size of the puzzle files (which are already bigger than I wanted them to be). Unfortunately, the current algorithm needs about 4 seconds to render the shadows for the biggest puzzle of the current standard library (“European Honey Bee”, size of source image is 1620×1280). I have therefore decided to not enable shadows by default (they can be enabled in the config dialog) until the rendering performance for the shadows has been improved drastically.
Update 2: I’ve speed up shadow rendering by 75%. Shadow rendering is now enabled by default.
Also on above screenshot, you see the new jigsaw slicer in action. The previous slicer used a set of seven hand-drawn plug shapes, while the new one can generate millions of different plug shapes from random parameters.
Update 1: The ugly lines between connected pieces, which you can see in the above screenshot, are now gone in the development version.