To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cad.devOpen lugnet.cad.dev in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / Development / 9682
9681  |  9683
Subject: 
Patterns, simplified
Newsgroups: 
lugnet.cad.dat.parts, lugnet.cad.dev
Date: 
Wed, 5 May 2004 22:29:42 GMT
Highlighted: 
(details)
Viewed: 
903 times
  
On Wed, 5 May 2004, Don Heyse wrote:

I wonder how hard it would be to modify it to handle color and
output ldraw format.

I'm gonna have to look into this again.  Vectorizers are cool.

We just need to create a GUI front end to this stuff and a .LDR
output translator.  Should be easy right?

I'm inferring that you are talking about converting a scanned image into a
pattered subfile for a part?

Then, optimally, the process requires the following discrete phases:

1) Someone[1] scans a patterned part at high resolution into an agreed
   format (probably .jpg or .tiff).
2) It goes into a pool of scanned images.
3) Someone[2] uses a program that, when given the type of part and two
   coordinates for that part[3], outputs a scan scaled down to an agreed
   size (for that part) at an agreed orientation (for that part), with
   extraneous material cropped.
4) It goes into a pool of prepared scanned images.
5) Someone[4] uses a program that interactively prompts the user for the
   base color of the part, edge-detects or otherwise finds distinct
   regions of the pattern, and prompts the user for the Ldraw color
   corresponding to each region.  The program outputs an LDdraw subfile.
6) It goes into a pool of machine-generated subfiles.
7) Someone[5] 'sponsors' the part by cleaning up and prepping the file,
   submitting it to the Tracker, and supporting it as it works its way
   through the certification process.

So there are programs needed for phases 3 and 5 (which need to fit
together, and phase 5 could probably use a separate GUI) and possibly some
software to set up the 'pools'.

The end result would be a system that could quickly generate parts for all
flat Lego patterns[6], while requiring minimal work from dedicated parts
authors and enabling casual users to contibute to the parts library.

--
TWS Garrison
http://www.morfydd.net/twsg/
Remove capital letters in address for direct reply.

[1] Requires no knowledge of LDraw specs

[2] Requires no knowledge of LDraw specs

[3] E.g., for the minifig torso pick, say, the top left corner and the
bottom right corner; for an ovoid shield pick the top and the bottom,
etc.

[4] Requires some knowledge of LDraw color and resolution specs, and
possibly primitives.

[5] Requires part authoring ability and commitment.

[6] I'm guessing that with enough support from the community every flat
patterned part could be in the official library in two years.



Message is in Reply To:
  Re: Patterns suck!
 
(...) I'm gonna have to look into this again. Vectorizers are cool. Here's some more opensource code (3 URLs) a really nifty description of how to use the potrace vectorizer to generate edges, and the netlib triangulator to create the triangles. (...) (21 years ago, 5-May-04, to lugnet.cad.dat.parts, lugnet.cad.dev)

9 Messages in This Thread:



Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR