| Welcome, Guest |
You have to register before you can post on our site.
|
| Forum Statistics |
» Members: 5,850
» Latest member: Ferrel
» Forum threads: 6,485
» Forum posts: 53,703
Full Statistics
|
| Online Users |
There are currently 187 online users. » 0 Member(s) | 181 Guest(s) Applebot, Baidu, Bing, DuckDuckGo, Google, Yandex
|
| Latest Threads |
[LDPE] 1.8.97 Released (s...
Forum: Parts Author Tools
Last Post: Nils Schmidt
Yesterday, 18:17
» Replies: 8
» Views: 2,371
|
[LDPE] 1.8.95 Released (p...
Forum: Parts Author Tools
Last Post: Nils Schmidt
Yesterday, 18:07
» Replies: 8
» Views: 6,380
|
47430 messurements
Forum: Parts Authoring
Last Post: Jeff Jones
Yesterday, 12:41
» Replies: 1
» Views: 160
|
Wheels needed for Set 772...
Forum: Part Requests
Last Post: Alfred Schmitz
Yesterday, 9:02
» Replies: 10
» Views: 1,818
|
2026 - New Parts -> Raw M...
Forum: Part Requests
Last Post: Gerald Lasser
Yesterday, 6:50
» Replies: 26
» Views: 5,355
|
Bionicle Tahu Cosplayer f...
Forum: Part Requests
Last Post: Chris Böhnke
2026-05-10, 19:04
» Replies: 20
» Views: 1,393
|
Updates available for MLC...
Forum: LDraw Editors and Viewers
Last Post: Manfred Schaefer
2026-05-10, 13:27
» Replies: 2
» Views: 322
|
LDraw.org Official Parts ...
Forum: Parts Tracker Discussion
Last Post: Peter Blomberg
2026-05-09, 18:03
» Replies: 6
» Views: 953
|
"Fixing" Older Stickers (...
Forum: Parts Authoring
Last Post: Chris Böhnke
2026-05-09, 17:17
» Replies: 0
» Views: 149
|
Existing Part Edit Reques...
Forum: Parts Authoring
Last Post: Rene Rechthaler
2026-05-09, 16:00
» Replies: 165
» Views: 415,164
|
|
|
| Img4Dat |
|
Posted by: Rolf Osterthun - 2019-02-26, 23:11 - Forum: Parts Author Tools
- Replies (55)
|
 |
Hello,
long time ago I started implementing a tool to convert images to LDraw compatible .dat files. The first name was Img2Dat; but during the time the ‘version’ increased. Here is only a short description.
You can download the tool here (sorry, but I have to write this: the application, can be downloaded as it is. I do not take charge for errors or any kind of damage to your system that is caused by this software.): Img4Dat.zip
It is a beta version – there are some issues I that need an improvement. But I think it is stable enough for playing. It is written in C# for the .NET Framework 3.5 (so Windows).
If you open the application, you can open a bitmap (currently only .bmp) – it will be shown in the left half of the GUI.
Clipboard01.png (Size: 144.44 KB / Downloads: 931)
Now you can choose colors for the color quantization by right click on the source image (select the background color first). The result will be shown in the right half of the GUI.
It is the base for the path findings (around the areas with the same color). After choosing the colors it is possible to clean the result a little bit (and to remove the obsolete areas in the background).
Clipboard02.png (Size: 204.78 KB / Downloads: 931)
You can save the result image to rework it in a different tool or just for backup.
You can search for the paths now, by clicking the 'FindPaths' button. The result will be shown on top of the original image.
Again, a little bit of cleaning can be done (here undo is possible): - Select one point and create a circle (with the connected points); you can define the number of points in the circle.
- Select more then two points. The points will be projected on the line between the first and the last selected point.
- Select more then three points. The points will be projected on a circle. The first and the last point will not change. You have to select the points in the right order.
- Select two points. They will become one at the cut of the connected lines.
- Select more then two points. The distance between this points will be recalculated. Here you also have to select the points in the right order.
- When you have selected one point, you can delete it with pressing d-key.
- When you have selected two points, you cann add a point between them by pressing the a-key.
Clipboard03.png (Size: 190.53 KB / Downloads: 928)
You can also add a ‘template’ where the image should be patterned for, and scale and adjust it (currently only torso and tile 2x2 round).
Clipboard04.png (Size: 196.46 KB / Downloads: 927)
When the result is fine, the triangles can be created by clicking the 'CreateTriangles' button – a .dat file with the name of the source image becomes created in the folder of the source image. The colors need to be adjusted to LDraw colors.
Clipboard05.png (Size: 4.13 KB / Downloads: 915)
(One hint: The triangle generation will not work correct, when two lines cross after cleaning the paths or adding the template.)
I would be happy, if someone gives it a try.
Rolf
|
|
|
| Is creating a new LDraw primitive allowed? |
|
Posted by: David Manley - 2019-02-25, 10:26 - Forum: Parts Authoring
- Replies (3)
|
 |
I'm working my way through addressing issues identified in some stickers I have submitted. One of the suggestions is to use a primitive instead of some quads.
Using "Rings and Cones", I can see some primitives with a suitable radius once a scaling factor is applied. However, rather than wanting a ring, I'm looking for a partial ring. While one of the primitives (3-16ring14) I could use is already available, a second one (3-8rin21) is not. I have played with PrimGen2 to generate the second desired primitive locally.
My question is, if I'm modelling a part and need a currently unavailable primitive, am I allowed to simply define the appropriate primitive (using PrimGen2) and submit the primitive through the parts authoring process? If this isn't allowed, is there an an (official) alternative way to get a new primitive created?
I do have an alternative where I can use a different primitive and apply a scaling to it but the ring segment ends up being too "thick" compared to the actual sticker. My preference is to try to model the sticker with the ring segments having the actual measured thickness.
Regards,
David
|
|
|
|