Forum

Welcome Guest 

Show/Hide Header

Welcome Guest, posting in this forum requires registration.





Pages: [1] 2
Author Topic: Death To Sharpie, Result
Curl_
Newbie
Posts: 19
Permalink
Post Death To Sharpie, Result
on: January 27, 2019, 14:30
Quote

Hil All.
I'm new to this forum. I just built a polargraph. (not from the kit). And try an example from Dullbits.
First Attempt, First Success.
[img][/img]

Now I try to draw from a picture. But I do not have good result. Maybe because i'm using oly one color (black) and not copic markers pen.

Can anybody post here a result of its drawing using one color pen ? And maybe the svg file or settings used to draw it.

Thanks for all.

Image
Image

Shorn
Beginner
Posts: 45
Permalink
Post Re: Death To Sharpie, Result
on: January 30, 2019, 17:15
Quote

I think this looks really good for a single color drawing. What is it about the drawing you don't like?

D2S is an interpretive art tool so don't expect photo quality results.

I use D2S a lot, but typically thought I do multilayer and multicolor with it. Sometimes though I do single color drawings with it.

Single color drawings:
Image
Image
Image
Image
Image
img]https://i.imgur.com/LYy1pOI.jpg[/img]

Multicolor/Multilayer:
Image
Image
Image

https://twitter.com/ShornOne?lang=en

Hardware:
*Running an Arduino Nano reflashed with an Uno bootloader
*Modified knockoff GRBL CNC shield with knockoff DRV8825 step drivers
*400mA -200 step motors set to 16x microstepping
*2mm belt with 36 tooth drive gears
*Machine set to 1500 Max speed and 5000 motor acceleration

Software:
*Stock Polargraph Controller to make command queues
*D2S version 2
*Send.py on remote Raspberry Pi

sandy
Administrator
Posts: 1392
Permalink
sandy
Post Re: Death To Sharpie, Result
on: January 30, 2019, 23:22
Quote

I'm glad you asked that question Shorn, I'd have been pleased with that drawing 🙂

Matthias
Newbie
Posts: 14
Permalink
Post Re: Death To Sharpie, Result
on: January 31, 2019, 08:44
Quote

The drawings are looking really good!! here is one of mine.

Have you ever had a problem in the process of drawing? Like, my Polargraph (2018) just stops at some Point. It don't moves to continue... I don't no why...

Image

how can I upload img?

Shorn
Beginner
Posts: 45
Permalink
Post Re: Death To Sharpie, Result
on: January 31, 2019, 16:16
Quote

I haven't experienced that failure.

When it happens can you still manually drive the gondola or is the machine completely frozen?

For uploading images, I like to use Imgur to hold the photo and then you can upload to here.

Hardware:
*Running an Arduino Nano reflashed with an Uno bootloader
*Modified knockoff GRBL CNC shield with knockoff DRV8825 step drivers
*400mA -200 step motors set to 16x microstepping
*2mm belt with 36 tooth drive gears
*Machine set to 1500 Max speed and 5000 motor acceleration

Software:
*Stock Polargraph Controller to make command queues
*D2S version 2
*Send.py on remote Raspberry Pi

Curl_
Newbie
Posts: 19
Permalink
Post Re: Death To Sharpie, Result
on: March 12, 2019, 10:00
Quote

Hum.. Not used with forum.. Admin.. you can delete this post !

Curl_
Newbie
Posts: 19
Permalink
Post Re: Death To Sharpie, Result
on: March 12, 2019, 10:21
Quote

orry for the delay.
Two new pictures.
First a portrait of a friend, not very accurate, because Its hard to convert greyscale to Black and White (some parts were overexposed).

Image

And a Zebra Head (Thanks god ! original is Black and white )

Image

Next will be with the "Norwegian Spiral"

It tooks almost 36 hours , for the Zebra.
(almost same settings than Shorn). I plan to implement
- a multiple commands buffer on the arduino, to reduce USB communication and handshaking.
- a progress info with python send.py script, on a weemos+OLED Screen
(see printer monitor weemos )

Edit:
By the way, I was unable to find how i did to upload the picture on wordpress and include the miniature in the post..
(The Upload Image option is not available in quick reply post...)

sandy
Administrator
Posts: 1392
Permalink
sandy
Post Re: Death To Sharpie, Result
on: March 12, 2019, 18:19
Quote

Looks good!

Yes, image is unavailable on "quick reply", but if you choose "reply" from the very top, that's where the option is!

Re death-to-sharpie. For me this is not at all practical for USB connected machines because it's so slow!

sn

Curl_
Newbie
Posts: 19
Permalink
Post Re: Death To Sharpie, Result
on: March 12, 2019, 20:53
Quote

May I ask you something .. (At least a Clue ?)

My goal is to draw this :
[img][/img]

Unfortunaly geomerative crashes with an Array Index Out Of Bounds Exception when loading the vector.
The Best I can do is to simplify the path with inkscape.
This Is what I get (Not exactly what I wish)

Image

I Manage to Load a Vector File One Time (do not remember what I had to do to manage that, maybe playing with DrawBot Spiral Module Settings).

Image

Question : Do you think that my goal is reachable ?
Do you know or remember of any limitations (sense , number of lines or other thing), in polargraph controller ?

I do not know if I'm trying to push the limits of the polargraph too far

Any advice is welcomed !
Pierre (aka Curl)

Curl_
Newbie
Posts: 19
Permalink
Post Re: Death To Sharpie, Result
on: March 12, 2019, 20:58
Quote

Here is a link. I will try to find and hosting site that can handle this format.

Original Goal

http://dl.free.fr/m2JnMsDci

Image

sandy
Administrator
Posts: 1392
Permalink
sandy
Post Re: Death To Sharpie, Result
on: March 12, 2019, 21:10
Quote

Oh! Interesting - is the problem you're seeing like this one?

Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: -1
	at geomerative.RSVG.getPolyline(Unknown Source)
	at geomerative.RSVG.elemToPolyline(Unknown Source)
	at geomerative.RSVG.elemToPolygon(Unknown Source)
	at geomerative.RSVG.elemToCompositeShape(Unknown Source)
	at geomerative.RSVG.elemToCompositeShape(Unknown Source)
	at geomerative.RSVG.toShape(Unknown Source)
	at geomerative.RG.loadShape(Unknown Source)
	at polargraphcontroller.loadShapeFromFile(polargraphcontroller.java:4574)
	at polargraphcontroller$9.run(polargraphcontroller.java:4453)
	at java.awt.event.InvocationEvent.dispatch(Unknown Source)
	at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
	at java.awt.EventQueue.access$200(Unknown Source)
	at java.awt.EventQueue$3.run(Unknown Source)
	at java.awt.EventQueue$3.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
	at java.awt.EventQueue.dispatchEvent(Unknown Source)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.run(Unknown Source)

I've got an example of one that does this, and one that doesn't, but I can't see an obvious difference between the two.

I don't think this is a limitation with Polargraph controller as such, it seems to be able to handle really huge files (50mb+) but it just takes AGES to do it.

SVG loading is something that I do through a library called geomerative, and that's a pre-compiled library so I can't easily get into it to see where it's going wrong. I've got some time put aside on the weekend to figure out how to compile the geomerative library and I'll add some traces into it.

Sandy Noble

sandy
Administrator
Posts: 1392
Permalink
sandy
Post Re: Death To Sharpie, Result
on: March 12, 2019, 23:44
Quote

I've just a bit more of a dig into this, and bisected my failing file a few times to figure out what was going wrong.

The thing it seems to choke on is this:

	<polygon slic3r:type="contour" class="st0" points="-1.8,579 -1.8,579.1 -1.8,579.8 -1.8,580 -1.8,580 -1.8,580 -1.9,580 -2,580 
		-2,579.4 -2,579.1 -1.9,579 	">
	</polygon>

And the particular problem this seems to hold is that

points="-1.8,579 ... "

If I changing that to a positive number (1.8 vs -1.8) then it loads the SVG ok. When Geomerative looks at that string of characters, it sees the '-' and then looks to the character _before_ it to see if it's an 'E' (for some reason - to check if it's using scientific notation maybe?!), but because it is the first character in the string, there _is_ no character before, and so the crash happens because it looks for a character at an index that doesn't exist.

I did a search in my input SVG for points="- to find these lines. I had two of them in a 475,000 line file! These two I could simply snip out and nobody would notice. If you have a larger number, then you can't just snip them out easily!

I've submitted an issue to Geomerative (https://github.com/rikrd/geomerative/issues/9) and offered to supply a fix. In the meantime, you could try my "fixed" version of geomerative.jar here: https://drive.google.com/file/d/1QBjl_QO5te1FfekyODjlsvcbYOFY1kmD/view?usp=sharing

This should go into your processing sketchbook/libraries/geomerative/library/ folder. Move the geomerative.jar that is already there someplace safe and put this one there instead.

This particular problem may not be the only one that causes problems when loading though! But give it a shot.

sn

Curl_
Newbie
Posts: 19
Permalink
Post Re: Death To Sharpie, Result
on: March 15, 2019, 13:40
Quote

I just check your issue.

https://github.com/rikrd/geomerative/issues/9

Thanks .. !

Curl_
Newbie
Posts: 19
Permalink
Post Re: Death To Sharpie, Result
on: March 15, 2019, 21:23
Quote

Error when trying to load the vector
I tried with your version of geomerative.jar too.
(md5sum 0110f2512005dd973905e4cb7956afd2 )

I will check twice..

Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: 733
	at geomerative.RSVG.line(Unknown Source)
	at geomerative.RSVG.getShape(Unknown Source)
	at geomerative.RSVG.elemToShape(Unknown Source)
	at geomerative.RSVG.elemToCompositeShape(Unknown Source)
	at geomerative.RSVG.elemToCompositeShape(Unknown Source)
	at geomerative.RSVG.toShape(Unknown Source)
	at geomerative.RG.loadShape(Unknown Source)
	at polargraphcontroller.loadShapeFromFile(polargraphcontroller.java:1311)
	at polargraphcontroller$6.run(polargraphcontroller.java:1190)
	at java.awt.event.InvocationEvent.dispatch(Unknown Source)
	at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
	at java.awt.EventQueue.access$200(Unknown Source)
	at java.awt.EventQueue$3.run(Unknown Source)
	at java.awt.EventQueue$3.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
	at java.awt.EventQueue.dispatchEvent(Unknown Source)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.run(Unknown Source)
Curl_
Newbie
Posts: 19
Permalink
Post Re: Death To Sharpie, Result
on: March 15, 2019, 22:22
Quote

Just checkout the master branch of geomerative.
Had to change a few integer to boolean (smoothing..) , change the source / target version to 1.6 to compile.
Got The Same Error.
The good news is that now that i can compile, I can check where and why i have got this exception.

Curl_
Newbie
Posts: 19
Permalink
Post Re: Death To Sharpie, Result
on: March 16, 2019, 17:11
Quote

OK. The problem was that I process the svg file with svgo.
https://github.com/svg/svgo
svgo collapse the file in one long line. Does not seems to work with geomerative.

I do not understand while Java keeps to 100% CPU "Sleeping Mode"' after loading the shape. I need to find in which loop it is stuck

Curl_
Newbie
Posts: 19
Permalink
Post Re: Death To Sharpie, Result
on: March 17, 2019, 11:19
Quote

Dear Sandy

It seems that the draw method in polargraphcontroller.pde is periodically called , with getcurrentTab =TAB_NAME_INPUT, calling drawImagePage, without any action on the sofware.

I'm not used with Java/Processing, but the API (**for Processing 3.0+**) says that

the draw() function continuously executes the lines of code contained inside its block until the program is stopped or noLoop() is called.

Maybe calling drawImagePage only if currentTab has changed is a good Idea.

Curl_
Newbie
Posts: 19
Permalink
Post Re: Death To Sharpie, Result
on: March 17, 2019, 16:35
Quote

OK . I solved my problem by creating a "Force Redraw" Button Box.

Set a forceRedrawFlag , that I test and reset in polargraphcontroller.pde draw() method
I drawImagePage only on request. (Load/Resizing/Moving).
Maybe not the best solution, but I really want to run the polargraph again now ! 🙂

Should be done for Image too . (Never used it for the moment.. because i have no Idea on the drawing result)

Since I only use polargraphcontroller to generate a queue and export it , I have no Idea of the other consequences of this modification. Do you wish a contrib on GitHub ?

sandy
Administrator
Posts: 1392
Permalink
sandy
Post Re: Death To Sharpie, Result
on: March 17, 2019, 21:36
Quote

Hello, good digging, well done. Do you mean you've taken the call to drawImagePage out of the main draw() loop?

Why do the changes you've made solve the problem?

I'd be really interested in seeing your changes, so please do feel very free to fork the project and share them - I'm interested to see what you've done. It's been obvious from the beginning that the method of redrawing isn't optimal but I've never had a good enough handle on the event model in Processing to tackle it!

sn

Curl_
Newbie
Posts: 19
Permalink
Post Re: Death To Sharpie, Result
on: April 26, 2019, 15:02
Quote

I give up with the fix for this moment
My vector takes too much time to be drawn byt the controller. and probably needs to be simplified.
I try to reduce the refresh frequency. But the interface lost its reactivity.

Here is my new (paper) car .. Renault Alpine

Drawn With Ultra-Fine Sharpie. But I will try same vector with Fine Sharpie.

(I need a second machine...!)

Image

Pages: [1] 2
Mingle Forum by cartpauj
Version: 1.0.34 ; Page loaded in: 0.049 seconds.