JigsawX

112 views
Skip to first unread message

JLM

unread,
Jun 17, 2012, 2:48:30 PM6/17/12
to haxe...@googlegroups.com
Hi I have just released a mini library for helping draw Jigsaws puzzles.

http://code.google.com/p/jigsawx/

It has no dependencies, but the example video jigsaw in javascript has dependency on the following googlecode libraries of mine.
divtastic
zpartanlite
browserhx
And a modified version of Tong's html5 library ( although current version may work ).

And the webcam and progressive flash video jigsaws have dependency on the following googlecode libraries of mine.
zpartan
zpartanlite

Obviously for your own examples you may not need anything more that JigsawX.

Heavy but working examples using opensource Big_buck_bunny movie can be seen on my server.

Hopefully JigsawX will come in useful when your client urgently needs a jigsaw, any feedback or improvements welcome.

Justin

Axel Huizinga

unread,
Jun 17, 2012, 4:45:51 PM6/17/12
to haxe...@googlegroups.com
Am 17.06.2012 20:48, schrieb JLM:
Hi I have just released a mini library for helping draw Jigsaws puzzles.

http://code.google.com/p/jigsawx/

It has no dependencies, but the example video jigsaw in javascript has dependency on the following googlecode libraries of mine.
divtastic
zpartanlite
browserhx
And a modified version of Tong's html5 library ( although current version may work ).

And the webcam and progressive flash video jigsaws have dependency on the following googlecode libraries of mine.
zpartan
zpartanlite

Obviously for your own examples you may not need anything more that JigsawX.

Heavy but working examples using opensource Big_buck_bunny movie can be seen on my server.

Nice idea,
just tried the one above but found it hard to control dropping the pieces again - sometimes I can't stop to follow to any new mouseclick.
are there instructions?

Cordially,
Axel

Hopefully JigsawX will come in useful when your client urgently needs a jigsaw, any feedback or improvements welcome.

Justin

Mihail Ivanchev

unread,
Jun 17, 2012, 5:55:01 PM6/17/12
to haxe...@googlegroups.com
I already told you my feedback Justin, that's an absolutely, hugely amazing work :) I never thought you would take the challenge so seriously. I'm totally amazed!

JLM

unread,
Jun 17, 2012, 6:57:52 PM6/17/12
to haxe...@googlegroups.com
Axel I will maybe try a non video js one, to see how the drag is working and squash bugs.  

The video and drag are really up to the developer, the library is mostly to help with structure of drawing points and the examples are really only to give a headstart, if I had a client I would be more interested to fix them but maybe it's a bit heavy for js.

In js I implemented it originally with an invisible drag div per canvas and on dragging canvas followed, but depth in js is really rubish seems no nesting, which was working about as well as it does now but with a few more depth bugs, it was a bit more complex having to have two sets of depths so I went with a suggestion to use a single hit area.  Now I am using a single hit div and distance calculations... I think a lot of the problems are down to running the video overhead, but it was just a bit of fun so the main calculations are fairly stable but the examples more buggy, guess I should make it more perfect for the CV.

Mihail let me know how you get on there are some bits that need improving in the drawing code but depending on settings they are often not an issue, I may look at doing a tutorial on the concepts but I would love to get some assistance on running it on phones, like uploading onto itunes etc.., I will probably give android a try first, although if I was more confident I would try the java target but I suspect that the practicalities would escape me maybe someone else wants to try?

;j

JLM

unread,
Jun 17, 2012, 7:05:52 PM6/17/12
to haxe...@googlegroups.com
At moment I set it to only allow drag of pieces that are not yet correctly placed, the click detection needs work, but instructions... that's more in keeping with a closed source product than demo code to show general use, maybe I can add a timer and improve it.

Justin Donaldson

unread,
Jun 17, 2012, 10:23:54 PM6/17/12
to haxe...@googlegroups.com
This is awesome, very neat idea!

-Justin

On Sun, Jun 17, 2012 at 4:05 PM, JLM <j...@justinfront.net> wrote:
At moment I set it to only allow drag of pieces that are not yet correctly placed, the click detection needs work, but instructions... that's more in keeping with a closed source product than demo code to show general use, maybe I can add a timer and improve it.



--
blog: http://www.scwn.net
aim: iujjd
twitter: jjdonald

JLM

unread,
Jun 20, 2012, 12:12:54 AM6/20/12
to haxe...@googlegroups.com
Mihail

I decided late this evening when it was quiet to look at creating an NME version, and I got a Simple version, just image working with NME :) :) really excited as I have not played with NME properly. So a huge thank you to all the NME contributors.

The flash version can be viewed here, uses one of my paintings, a nude so you have been warned, but should be safe for work.
http://www.justinfront.co.uk/jigsawx/SimpleJigsawx.swf

and the neko version is in the same directory SimpleJigsawx.n_ .... I had to modify the ending to 'n_' so that you can download, or SimpleJigsawx the cpp one which I guess may only work on Lion?  Anyway if you want to download them you will also need the tableCloth.jpg. Please note the painting is copyright to Justin Mills ( me ) so don't use elsewhere.

I have not updated the repository as its late and I found the getBounds code online and I have to search credits and work out if I can add it to the jigsawx repository, maybe your the author and can let me know if I can put it with credit into project subversion, can't find link at moment but had to paste 3 pastebin statics into my code.

For the swf version I could embed the image...

@:bitmap("tablecloth.jpg") class TableCloth extends flash.display.BitmapData {}

but for NME I did not want to mess with nmxml files as it was late, so I had to load it in but could I use the @:bitmap?

Anyway really excited that it was so easy to get my js/flash running in NME/Cpp after I got nme install running again!

The code base still could be improved a lot, it has not improved since last time just tried to get something running in nme.

Cheers

Justin

JLM

unread,
Jun 20, 2012, 12:14:56 PM6/20/12
to haxe...@googlegroups.com
jigsawx NME version source is now online, it looks fairly similar to the flash video versions.

  http://code.google.com/p/jigsawx/source/browse/jigsawx/examples/JigsawxSimple.hx

Currently setup to just work with an hxml file, would love to see a phone example, I guess it's just a case of setting up the nmml file and installing the bits and bobs.
Reply all
Reply to author
Forward
0 new messages