LDraw.org Discussion Forums
ConvertToLDraw convert 3D models into LDraw pieces - Printable Version

+- LDraw.org Discussion Forums (https://forums.ldraw.org)
+-- Forum: LDraw Programs (https://forums.ldraw.org/forum-7.html)
+--- Forum: LDraw File Processing and Conversion (https://forums.ldraw.org/forum-22.html)
+--- Thread: ConvertToLDraw convert 3D models into LDraw pieces (/thread-28720.html)



ConvertToLDraw convert 3D models into LDraw pieces - Hageta - 2025-03-13

ConvertToLDraw is a Software I created to convert a variety of 3D file formats to the LDraw format.
Here are some of its features:
-load formats with colour and submodels
-edit the colour of subparts and multicolour objects.
-textures are converted to vertex colours.
-3D preview of the part

The software has 3 tabs.

The "Main Part" tab containing the import/export and the metadata settings:
   

The "Colours and Subparts" tab here the names and colours of subparts can be changed:
   

The "Part Preview" tab shows a 3D view of the main part or a subpart:
   

This software is available on GitHub:
https://github.com/Nexusnui/Convert-To-LDraw


RE: ConvertToLDraw convert 3D models into LDraw pieces - Hageta - 2025-03-14

I have enabled the issue feature in the GitHub repo and added some issues with features for future versions.


RE: ConvertToLDraw convert 3D models into LDraw pieces - Willy Tschager - 2025-03-14

Now, this sounds interesting! Could you please list the supported file formats? There is nothing in the readme. Does it also convert a Studio file back to LDraw maintaining all refs?

w.


RE: ConvertToLDraw convert 3D models into LDraw pieces - Hageta - 2025-03-14

(2025-03-14, 20:24)Willy Tschager Wrote: Now, this sounds interesting! Could you please list the supported file formats? There is nothing in the readme. Does it also convert a Studio file back to LDraw maintaining all refs?

w.
I use trimesh to load 3D models and the following file types should work:
*.stl  *.3mf *.obj *.off *.ply *.gltf *.glb *.xaml *.stp *.step *.dae
and these filetypes may work:
*.brep *.igs *.iges *.bdf *.msh *.inp *.diff *.mesh
The program should theoretically be able to load anything trimesh can load.

The filetypes I actually tested are: *.stl, *.3mf, *.obj, *.ply
I cannot garanty that all possible variations of these filetypes work.

One problem I have found is, that colour in 3mf files can not be loaded.
(There is an issue about it and I try to fix that in a future version)


RE: ConvertToLDraw convert 3D models into LDraw pieces - Hageta - 2025-03-14

(2025-03-14, 23:38)Hageta Wrote: I use trimesh to load 3D models and the following file types should work:
*.stl  *.3mf *.obj *.off *.ply *.gltf *.glb *.xaml *.stp *.step *.dae
and these filetypes may work:
*.brep *.igs *.iges *.bdf *.msh *.inp *.diff *.mesh
The program should theoretically be able to load anything trimesh can load.

The filetypes I actually tested are: *.stl, *.3mf, *.obj, *.ply
I cannot garanty that all possible variations of these filetypes work.

One problem I have found is, that colour in 3mf files can not be loaded.
(There is an issue about it and I try to fix that in a future version)

I have added a section about filetypes in the readme.


RE: ConvertToLDraw convert 3D models into LDraw pieces - Hageta - 2025-03-21

I just released a short tutorial for the current version(1.3) of ConvertToLDraw



RE: ConvertToLDraw convert 3D models into LDraw pieces - Hageta - 2025-03-23

If you want check out what features are planned in future updates, suggest feature or report or bug check out the Issues on GitHub.


RE: ConvertToLDraw convert 3D models into LDraw pieces - Hageta - 2025-03-23

But you can also do that here.


RE: ConvertToLDraw convert 3D models into LDraw pieces - Hageta - 2025-04-09

Today I released version 1.4.0 of ConvertToLdraw -> https://github.com/Nexusnui/Convert-To-LDraw/releases/tag/v1.4.0

New Features:
  • Axis and Grid helper in preview
  • Options to disable LDraw Scaling and Rotation(useful if your model already uses them)
  • Changable Background Colour in Preview

Bug Fixes:
  • Some data files of some modules were not included in pyinstaller builds

Additional changes:
  • split "File Selection" area into "Save File" and "Load File"

Here is a screenshot showcasing the new preview helpers: