[LDPatternCreator] Release 1.6.5


[LDPatternCreator] Release 1.6.5
#1
Hi,

after a few sleepless nights I was finally able to reproduce and fix some troublemakers.

Download and install the latest LDPatternCreator release directly from sourceforge.net.

Change log:

Fixed bugs:
  • Fixed a rare crash (Rectifier/SlicerPro/Unificator tool chain)
  • A wrong winding was exported when "Include Metadata" was disabled, but a winding was chosen in the metadata dialog.
As always, I included a short readme.htm in the installation directory.


Cheers & Leg Godt


Nils
Reply
RE: [LDPatternCreator] Release 1.6.5 (Bug-Fix)
#2
Made two complex (but flat) patterns, no crash. Good news so far Wink
Reply
A.I. Assistant for Pattern Design?
#3
Did you ever dreamed about a possibility to convert a 2D scan into a pattern? Well, there was a converter implementation*, but it was impractical and I removed it completely.

Lately, I did some advanced research on imaging and neural networks.

First of all, there are some limitations... It is not possible to just load a 32bit raw image and covert it into perfect triangles, because of

  1. "garbage in -> garbage out", if your input file is blurry, noisy, has a low resolution or has some undesired artifacts, low contrast, printing errors etc.
  2. Perfect corners / orthogonality / symmetry / parallel lines: It is not trivial to decide if a geometry isn't organic (e.g. street signs or control panel patterns)
  3. Colour palette: It is not trivial to classify the colour palette of your pattern.
  4. Scope of detail and relevancy: It is not trivial to determine how much detail is needed in all areas of the picture. Maybe some area is not relevant for the pattern at all.
However... instead of writing a raster image to triangle converter, I would rather implement...
  • ...an A.I.-Assistant which will suggest two triangles after you inserted one triangle (~200% increase in productivity) and/or
  • ...an SVG-to-triangle-converter (like svg2dat)
  • ...a Lines2Pattern clone.
Vector graphics are very cool, because they are well-defined. There was svg2dat, but now it is forgotten.

Any thoughts??


The following pattern was created by an A.I.:
   


* (proof - search for "Projet automatique à partir d'image Bitmap")
Reply
RE: A.I. Assistant for Pattern Design?
#4
Quote:Did you ever dreamed about a possibility to convert a 2D scan into a pattern?
Oh YES! after making my last pattern (arctic torso) I looked again on the web to see if someone somewhere provided a usable solution but found nothing new Sad
Quote:Well, there was a converter implementation*, but it was impractical and I removed it completely.
Yeah, never succeeded in doing something useful with it Wink
Quote:However... instead of writing a raster image to triangle converter, I would rather implement...
  • ...an A.I.-Assistant which will suggest two triangles after you inserted one triangle (~200% increase in productivity) and/or
  • ...an SVG-to-triangle-converter (like svg2dat)
Both seem interesting...
Quote:There was svg2dat, but now it is forgotten.
Maybe not completely, afaik it's still used in Darats tool chain to make patterns. But it suffers from two drawbacks, poor triangulation (many needle shaped triangles) and very partial svg support (afaik no support of path, so useful to make pattern outlines.
Rolf Osterthun also had an interesting bitmap to ldraw converter that was kind of usable, but he evaluated that the tool was not good enough for general release.
Quote:The following pattern was created by an A.I.:
From a bitmap? overall it looks rather good, but strangely in some areas one side the darker lines was missed?!
Reply
RE: A.I. Assistant for Pattern Design?
#21
(2017-06-28, 18:28)Philippe Hurbain Wrote: Rolf Osterthun also had an interesting bitmap to ldraw converter that was kind of usable, but he evaluated that the tool was not good enough for general release.
Hey,

yes, but sadly it is almost in the same state...

   

The idea was that you can choose the colores with a right mouse click - then a color quantisation will be done.
You can improve the result a little bit by drawing pixels or recolor areas.
Then an edgedetection algorithm (derived from potrace; but for multicolor) will search for the edges.
Again a little bit of postproduction can (must) be done (put points on circle, put points on line, delete points, etc).
At the end the edges will be send to the tool triangle - the output of triangle will be converted into an ldraw compatible file again.

Depending on the source images the results can be very differently... From my point of view the biggest challanges are color gradients.

Rolf
Reply
RE: A.I. Assistant for Pattern Design?
#5
(2017-06-28, 16:13)Nils Schmidt Wrote: Did you ever dreamed about a possibility to convert a 2D scan into a pattern?

...

Any thoughts??

I love all your fancy feature but wanna see first coded all the things I really miss:

https://forums.ldraw.org/thread-21654-post-24373.html

w.
LEGO ergo sum
Reply
LDPatternCreator Backlog
#6
Hi Willy,


I listed your whishes here:

https://sourceforge.net/p/patterncreator/tickets/198/

Have I forgotten something?

Leg godt,

Nils
Reply
RE: LDPatternCreator Backlog
#8
(2017-06-29, 21:25)Nils Schmidt Wrote: Have I forgotten something

Hi Nils,

thanks for creating the tickets. Looks like you've got everything but the layers:

https://forums.ldraw.org/thread-21654-po...l#pid24625

w.
LEGO ergo sum
Reply
RE: A.I. Assistant for Pattern Design?
#7
Since we have someone creating a bunch of vector files for Lego prints at the moment: https://forums.ldraw.org/thread-22213.html
Something along the lines of an svg to LDraw would be an interesting addition Smile
Reply
RE: A.I. Assistant for Pattern Design?
#11
(2017-06-30, 6:43)Merlijn Wissink Wrote: Since we have someone creating a bunch of vector files for Lego prints at the moment: https://forums.ldraw.org/thread-22213.html
Something along the lines of an svg to LDraw would be an interesting addition Smile

If anyone wants to pick up where I left off on SvgToDat, contact me. See here for more info:

https://forums.ldraw.org/thread-18493-po...l#pid18562
Reply
RE: A.I. Assistant for Pattern Design?
#9
Something that should be (very) useful: an automatic area triangulator. One would select a color, then click in an empty area of the pattern, and LDPC would fill that area with triangles of selected color. Triangulation would extend on all area, bounded by template lines and existing triangles. If only for this, it would be very useful to fill-in background of a pattern!
Reply
RE: A.I. Assistant for Pattern Design?
#10
(2017-06-30, 16:03)Philippe Hurbain Wrote: Something that should be (very) useful: an automatic area triangulator. One would select a color, then click in an empty area of the pattern, and LDPC would fill that area with triangles of selected color. Triangulation would extend on all area, bounded by template lines and existing triangles. If only for this, it would be very useful to fill-in background of a pattern!

I agree completely. I haven't made that many (patterned) parts, but I even I can see the incredible usefulness of a feature like that.
Reply
RE: A.I. Assistant for Pattern Design?
#12
(2017-06-30, 16:03)Philippe Hurbain Wrote: Something that should be (very) useful: an automatic area triangulator. One would select a color, then click in an empty area of the pattern, and LDPC would fill that area with triangles of selected color. Triangulation would extend on all area, bounded by template lines and existing triangles. If only for this, it would be very useful to fill-in background of a pattern!

Looks like we identified what's needed most:

https://forums.ldraw.org/thread-21654-po...l#pid24384

w.
LEGO ergo sum
Reply
RE: A.I. Assistant for Pattern Design?
#13
I agree. That would be an excellent feature.
Adding the uncoloured background is the boring part of a pattern.
Reply
Crash on export
#14
I received a bug report from Philo about a crash on export.
Does anyone else noticed similar issue?
Reply
RE: Crash on export
#15
(2017-07-01, 14:48)Nils Schmidt Wrote: I received a bug report from Philo about a crash on export.
Does anyone else noticed similar issue?

I've only made some flat surfaces so far. No crash.
Reply
RE: Crash on export
#16
(2017-07-01, 19:39)Magnus Forsberg Wrote: I've only made some flat surfaces so far. No crash.
The crashes I got were with flat patterns too. Maybe it's something on my machine (Nils couldn't reproduce the issue either)
Reply
RE: Crash on export
#17
(2017-07-02, 7:20)Philippe Hurbain Wrote:
(2017-07-01, 19:39)Magnus Forsberg Wrote: I've only made some flat surfaces so far. No crash.
The crashes I got were with flat patterns too. Maybe it's something on my machine (Nils couldn't reproduce the issue either)

I'm so sorry, I just discovered I've been using 1.6.2. The new version was installed in another folder.

I'll try to make some patterns asap.
Reply
RE: [LDPatternCreator] Problems with export to dat file naming
#18
I have a few issues related to file naming when doing an "export as dat" (on Win 7):
- If I import a dat file a dat file as projection data, add pattern on it then do an "export as dat", proposed filename is the name of file (*) used as projection data. Not a good idea as this leads to overwriting shape file with pattern file. (*) Actually, it's not the file name but the file in "name" field of projection data file header.
- When doing an "export as dat", LDPE properly browse current work folder, but the proposed file name contains a full path to LDPE executable, eg. "C:\Program Files (x86)\LDPatternCreator\toto.dat". If I don't pay attention and hit save button, system proposes to save in my default documents folder instead...
- but the thing that really drives me mad, is that if by misfortune the projection data file carries a header with subfile type in header, when I export .dat in my "work" folder as "titi", it silently creates a file "titis01" in "work\s" folder instead !?! No, if I browse to a folder and give a file name, I want this file and folder to be used...
Reply
RE: [LDPatternCreator] Problems with export to dat file naming
#19
I was able to reproduce this issues and fixed them today.
Reply
RE: [LDPatternCreator] Release 1.6.5 (Bug-Fix)
#20
Bug of the day:

* Add an Oval. While it is still selected scale it and you will see that the vertex on the very left stays still deforming the two aatached triangles of the oval. To avoid this you have to deselect your newly created oval and relect it again, but ...
* ... when you group this triangles into a primitive and delete it afterwards the vertex on the very left will remain and cannot be selected or deleted.

w.
LEGO ergo sum
Reply
Oval Bug?
#22
(2017-07-07, 20:41)Willy Tschager Wrote: Bug of the day:

* Add an Oval. While it is still selected scale it and you will see that the vertex on the very left stays still deforming the two aatached triangles of the oval. To avoid this you have to deselect your newly created oval and relect it again, but ...
* ... when you group this triangles into a primitive and delete it afterwards the vertex on the very left will remain and cannot be selected or deleted.

w.
  • What type of an oval did you add (solid, hollow, ...)?
  • How many segments had it?
Reply
RE: Oval Bug?
#24
(2017-07-09, 18:37)Nils Schmidt Wrote:
(2017-07-07, 20:41)Willy Tschager Wrote: Bug of the day:

* Add an Oval. While it is still selected scale it and you will see that the vertex on the very left stays still deforming the two aatached triangles of the oval. To avoid this you have to deselect your newly created oval and relect it again, but ...
* ... when you group this triangles into a primitive and delete it afterwards the vertex on the very left will remain and cannot be selected or deleted.

w.
  • What type of an oval did you add (solid, hollow, ...)?
  • How many segments had it?
Solid, 20 segments. Used on:

http://www.ldraw.org/cgi-bin/ptdetail.cg...26bpw8.dat

w.
LEGO ergo sum
Reply
RE: Oval Bug? (fixed)
#25
Thank you for this bug report! I fixed this bug today.
Reply
New Export Progress Bar
#23
Today, I implemented a new progress bar for the file export.
Reply
Tip: How to scale/translate just in one direction (x or y)
#26
Willy Tschager Wrote:As a user I'd like to scale just in one direction (x or y) - not sure if this was on the wishlist of someone else.

This is already possible since a few years...
You can lock the X or Y axis with Shiftor Ctrl while translating/scaling a selection.
Reply
RE: [LDPatternCreator] Release 1.6.5
#27
Bug of the day:

* Import a .dat as subfile
* Select the primitive and color it
* When un-grouping the primitive all triangles are recolored to color 16 substituting the color you set for the primitive.

w.
LEGO ergo sum
Reply
RE: [LDPatternCreator] Release 1.6.5
#28
(2017-09-26, 11:44)Willy Tschager Wrote: * When un-grouping the primitive all triangles are recolored to color 16 substituting the color you set for the primitive.

w.

Willy, how do you ungroup a primitive in LD Pattern Creator? I looked through all the menus but could not find anything...
Reply
RE: [LDPatternCreator] Release 1.6.5
#29
(2017-09-27, 8:46)Gerald Lasser Wrote: Willy, how do you ungroup a primitive in LD Pattern Creator? I looked through all the menus but could not find anything...


.jpg   Ungroup.jpg (Size: 32.54 KB / Downloads: 17)

w.
LEGO ergo sum
Reply
RE: [LDPatternCreator] Release 1.6.5
#30
Was not aware that this worked with primitives too! I thought it worked only with groups made in LDPC...
Reply
RE: [LDPatternCreator] Release 1.6.5
#31
Thanks, I did not notice this icon...
Reply
« Next Oldest | Next Newest »



Forum Jump:


Users browsing this thread: 1 Guest(s)
Forum Jump:


Users browsing this thread: 1 Guest(s)