Re: JIGSAW PUZZLE 2d-video v_100

2018-12-29 Thread hh via use-livecode
[A] JIGSAW PUZZLE 2d-video (HTML5) is now updated to v_110

• Improved once again speed with videos a little bit.

The links are unchanged
(US) http://hh.on-rev.com/html5/jigsawPuzzle2d-video-9.0.2hhX.html
or
(EU) http://hyperhh.de/html5/jigsawPuzzle2d-video-9.0.2hhX.html


[B] JIGSAW PUZZLE 2d-video (IDE), with javascript from browser widget

You will find this faster IDE-version (using a hidden browser widget)
"jigsawPuzzle2d-videoBW" on "Sample Stacks" or
http://livecodeshare.runrev.com/stack/924/

• You can choose the server (with videos from the server) and get an
installation instruction for use with your local server (and local
videos). The page (URL) can use videos from the same server only.

WARNING: This runs with a memory leaking of up to 5 MByte per second
while a video is playing. You have to quit LiveCode after a while
for releasing the memory (closing the stack and removing it from
memory is not enough).

The increase in speed and the more smooth display is due to the
difference between LC-Emscripten (HTML5 standalone) and the LC-IDE
for drawing the backpattern of the puzzle graphics.
The speed from the hard work javaScript (your browser vs. the browser
widget) is at about the same and depends on your graphic card (GPU).

(As we say here:)
 Slide well into the new year! *** Guten Rutsch allerseits! ***
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: JIGSAW PUZZLE 2d-video v_100

2018-12-29 Thread hh via use-livecode
> Colin wrote:
> Frame rate is still a bit slow.

I left the whole "pieces part" (set backpattern of the pieces) in the
LiveCode/Emscripten part, which is up to 10 times slower than the IDE.
So there is no chance to improve this more.

You could see it only as a demo of "this is working".

In the IDE (with an invisible browser widget) we could have frame rates
up to 30 per second.

Given time I'll post this "IDE variant" too (you can then see the memory
leak of the browser widget).

> JIGSAW PUZZLE 2d-video is now updated to v_105
> 
> • Improved speed with videos a little bit.
> • The width-menu computes now all sizes from 20 up to
> 144 that leave either width or height (or both) of the
> image/video unchanged (no cropping).
> • A video can now be paused. Then it can be continued
> (when changing piece-size any partial solution is lost).
> 
> The links are unchanged
> (US) http://hh.on-rev.com/html5/jigsawPuzzle2d-video-9.0.2hhX.html
> or
> (EU) http://hyperhh.de/html5/jigsawPuzzle2d-video-9.0.2hhX.html

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: JIGSAW PUZZLE 2d-video v_100

2018-12-29 Thread Colin Holgate via use-livecode
The loading percentage is working now, and videos are playing ok in Safari 
(they didn’t before). Frame rate is still a bit slow.
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: JIGSAW PUZZLE 2d-video v_100

2018-12-28 Thread hh via use-livecode
JIGSAW PUZZLE 2d-video is now updated to v_105

• Improved speed with videos a little bit.

• The width-menu computes now all sizes from 20 up to
144 that leave either width or height (or both) of the
image/video unchanged (no cropping).

• A video can now be paused. Then it can be continued
(when changing piece-size any partial solution is lost).


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: JIGSAW PUZZLE 2d-video v_100

2018-12-28 Thread Bob Sneidar via use-livecode
NVM I see you have to click the Jigsaw button to get the puzzle to redraw. And 
you may as well exclude 16 point pieces they are almost indistinguishable. 

Bob S


> On Dec 28, 2018, at 07:52 , Bob Sneidar via use-livecode 
>  wrote:
> 
> Fun and interesting. But I cannot get another movie (Joan of Arc) to load. 
> Playing around with other settings do not seem to have an effect either. The 
> original puzzle works great though. 
> 
> Bob S
> 
> 
>> On Dec 27, 2018, at 20:10 , hh via use-livecode 
>>  wrote:
>> 
>> JigsawPuzzle2d-video is a HTML5 standalone that demoes what LC is able to do.
>> I have seen such "live" computed puzzle pieces until now only in specialized
>> native apps.
>> 
>> Images.
>> You can choose a built-in image or import a local one into the standalone.
>> Moreover choose the base width for the pieces and whether to rotate the
>> pieces. The base width determines the number of pieces. If for example the
>> image has size 480x360 then a square width of 60 yields 8x6 = 48 pieces.
>> As a help you can be notified (the image will be inverted) whenever you are
>> very close to the correct location.
>> 
>> Videos.
>> As above but without importing, use one of the nine built-in looping videos.
>> The segmenting of the video frames is done with canvas methods in javascript.
>> This will stress your CPU/GPU! It runs at about ten times faster in
>> the IDE with a browser widget, but sadly this is memory-leaking (5 MBytes
>> per second). The HTML5 standalone runs at about two times faster in Safari
>> than Firefox or Chrome/Opera. Reduce the number of pieces if you have less
>> than 2-3 frames per second.
>> 
>> Technique used: The pieces are live in LC computed polygon graphics of linear
>> and cubic bezier curves.
>> They are filled with backpattern-images from portions of the whole imagedata.
>> Only this last imagedata part is for the videos "outsourced" to javascript.
>> 
>> A pure LC version of the technique used is available in "Sample stacks".
>> This has images only but is even fast enough for the slowest Raspi.
>> 
>> Test (and download the source and the calling HTML page (contains short but
>> important javascripts) from
>> (US) http://hh.on-rev.com/html5/jigsawPuzzle2d-video-9.0.2hhX.html
>> or 
>> (EU) http://hyperhh.de/html5/jigsawPuzzle2d-video-9.0.2hhX.html
>> 
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: JIGSAW PUZZLE 2d-video v_100

2018-12-28 Thread Bob Sneidar via use-livecode
Fun and interesting. But I cannot get another movie (Joan of Arc) to load. 
Playing around with other settings do not seem to have an effect either. The 
original puzzle works great though. 

Bob S


> On Dec 27, 2018, at 20:10 , hh via use-livecode 
>  wrote:
> 
> JigsawPuzzle2d-video is a HTML5 standalone that demoes what LC is able to do.
> I have seen such "live" computed puzzle pieces until now only in specialized
> native apps.
> 
> Images.
> You can choose a built-in image or import a local one into the standalone.
> Moreover choose the base width for the pieces and whether to rotate the
> pieces. The base width determines the number of pieces. If for example the
> image has size 480x360 then a square width of 60 yields 8x6 = 48 pieces.
> As a help you can be notified (the image will be inverted) whenever you are
> very close to the correct location.
> 
> Videos.
> As above but without importing, use one of the nine built-in looping videos.
> The segmenting of the video frames is done with canvas methods in javascript.
> This will stress your CPU/GPU! It runs at about ten times faster in
> the IDE with a browser widget, but sadly this is memory-leaking (5 MBytes
> per second). The HTML5 standalone runs at about two times faster in Safari
> than Firefox or Chrome/Opera. Reduce the number of pieces if you have less
> than 2-3 frames per second.
> 
> Technique used: The pieces are live in LC computed polygon graphics of linear
> and cubic bezier curves.
> They are filled with backpattern-images from portions of the whole imagedata.
> Only this last imagedata part is for the videos "outsourced" to javascript.
> 
> A pure LC version of the technique used is available in "Sample stacks".
> This has images only but is even fast enough for the slowest Raspi.
> 
> Test (and download the source and the calling HTML page (contains short but
> important javascripts) from
> (US) http://hh.on-rev.com/html5/jigsawPuzzle2d-video-9.0.2hhX.html
> or 
> (EU) http://hyperhh.de/html5/jigsawPuzzle2d-video-9.0.2hhX.html
> 
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


JIGSAW PUZZLE 2d-video v_100

2018-12-27 Thread hh via use-livecode
JigsawPuzzle2d-video is a HTML5 standalone that demoes what LC is able to do.
I have seen such "live" computed puzzle pieces until now only in specialized
native apps.

Images.
You can choose a built-in image or import a local one into the standalone.
Moreover choose the base width for the pieces and whether to rotate the
pieces. The base width determines the number of pieces. If for example the
image has size 480x360 then a square width of 60 yields 8x6 = 48 pieces.
As a help you can be notified (the image will be inverted) whenever you are
very close to the correct location.

Videos.
As above but without importing, use one of the nine built-in looping videos.
The segmenting of the video frames is done with canvas methods in javascript.
This will stress your CPU/GPU! It runs at about ten times faster in
the IDE with a browser widget, but sadly this is memory-leaking (5 MBytes
per second). The HTML5 standalone runs at about two times faster in Safari
than Firefox or Chrome/Opera. Reduce the number of pieces if you have less
than 2-3 frames per second.

Technique used: The pieces are live in LC computed polygon graphics of linear
and cubic bezier curves.
They are filled with backpattern-images from portions of the whole imagedata.
Only this last imagedata part is for the videos "outsourced" to javascript.

A pure LC version of the technique used is available in "Sample stacks".
This has images only but is even fast enough for the slowest Raspi.

Test (and download the source and the calling HTML page (contains short but
important javascripts) from
(US) http://hh.on-rev.com/html5/jigsawPuzzle2d-video-9.0.2hhX.html
or 
(EU) http://hyperhh.de/html5/jigsawPuzzle2d-video-9.0.2hhX.html



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode