Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 5,525
» Latest member: Andrew Parker
» Forum threads: 6,303
» Forum posts: 52,528

Full Statistics

Online Users
There are currently 241 online users.
» 1 Member(s) | 236 Guest(s)
Applebot, Bing, Google, Yandex, N. W. Perry

Latest Threads
View LDraw files in-brows...
Forum: Website Suggestions/Requests/Discussion
Last Post: N. W. Perry
3 minutes ago
» Replies: 2
» Views: 86
Could stickers be mapped ...
Forum: Parts Authoring
Last Post: Chris Böhnke
2 hours ago
» Replies: 6
» Views: 143
Feature request - Add cur...
Forum: LDraw Editors and Viewers
Last Post: Roland Melkert
4 hours ago
» Replies: 1
» Views: 78
Wavy Hair with Hole in Ba...
Forum: Part Requests
Last Post: Van Esbroeck
Yesterday, 11:03
» Replies: 0
» Views: 82
Suggestion: for primitive...
Forum: Parts Tracker Discussion
Last Post: Mark Kennedy
Yesterday, 3:09
» Replies: 0
» Views: 74
Parts Request: Ninjago Dr...
Forum: Part Requests
Last Post: Peter Grass
2025-12-21, 7:10
» Replies: 8
» Views: 710
3DToLD Release 1.6.1 - Mi...
Forum: LDraw File Processing and Conversion
Last Post: Hageta
2025-12-20, 16:52
» Replies: 0
» Views: 113
Axlecap primitive
Forum: Parts Authoring
Last Post: Rene Rechthaler
2025-12-20, 15:23
» Replies: 3
» Views: 195
Parts Tracker Landing Pag...
Forum: Parts Tracker Discussion
Last Post: Magnus Forsberg
2025-12-19, 20:17
» Replies: 1
» Views: 146
Promotional Sets 2025
Forum: Official Models
Last Post: Philippe Hurbain
2025-12-19, 8:22
» Replies: 7
» Views: 5,823

 
  Parsing LDraw
Posted by: Max Murtazin - 2025-08-20, 18:04 - Forum: Help - Replies (3)

*sigh*

Okay, I've probably been it at it many times and probably even asked some questions on this topic before, but, alas, I'm at it again - trying to build an LDraw file format parser in C#. Why C#? Tl;dr: I need it for other stuff, and that stuff uses C#.

Well, the question itself: How does one even go around effectively parsing LDraw? This topic is a bit confusing to me due to the recursiveness (I guess that's what the word would be) of the format. My current approach is like this:
1. Read through all of the file, store all the faces in an array, store all the submodels in a separate array
2. Go through the submodel array, go to step 1 for each of them
3. Once the process is out of this recursive mess, "resolve" each submodel by applying the transform to it's triangles and adding them to the submodel's parent
4. Done, I guess?

It is very simple and doesn't account for, like, any meta or other stuff that could be important, but it should be enough for the start. I'm just not sure if this approach is good, or how it possibly could be improved

Also, I know I can read stuff like LDView source code, but I'm really bad at reading code made by other people, so it would probably take way more time than just asking it here

Print this item

Information ConvertToLDraw Version 1.5.2 Released
Posted by: Hageta - 2025-08-20, 13:19 - Forum: LDraw File Processing and Conversion - No Replies

This release improves the colour search and adds the colours from the 2025-07 parts update:
https://github.com/Nexusnui/Convert-To-L...tag/v1.5.2

Release Notes:

Important Notice:
This version uses a new windows installer(Inno Setup) and the default installation path has changed. This means that versions prior to this release are not overridden and have to be uninstalled manually.

Changelog:

Improvements:

  • #40 improve colour search
    • button to show simular colours to the current one
    • do not clear searchbar when changing search category
    •  fixed search by colour name
  • updated LDraw Colours to include the new additions from the 2025-07 parts update

Bug Fixes:

Full Changelog: https://github.com/Nexusnui/Convert-To-L...1...v1.5.2

Print this item

  Duplo set 10998 meshes
Posted by: Peter Blomberg - 2025-08-20, 0:00 - Forum: Parts Authoring - Replies (5)

I'm looking for meshes to parts in the Duplo 3in1 Magic Castle, Set 10998.
Star-wand 16499, 
flower 84195, 
cake 65157, 
book 100954pb03, 
window 26249,
balcony 98236,
door 98239, and
bush 84194.
Can they be found in BI?

https://www.bricklink.com/v2/catalog/cat...conly%22:0}

Print this item

  Duplo drawer height
Posted by: Peter Blomberg - 2025-08-19, 7:51 - Forum: Parts Authoring - Replies (4)

It seems that the duplo drawer 4891 is 2.6 LDU too high compared to physical part. It doesn't fit the 52 LDU slots in cupboards.
https://library.ldraw.org/parts/9776

Furthermore, the origin seems to be 3 LDU above the part. Can we live with that?

Print this item

  Angle of arrow tip on Minifig Harpoon 57467
Posted by: Jaco van der Molen - 2025-08-18, 19:04 - Forum: Parts Authoring - Replies (12)

Hi all,

Why is the angle of the arrow tip on Minifig Harpoon 57467 not straight?
It seems at an 11 degree angle?

   

Print this item

  Filepath Backslash(\) or Forwardslash(/)
Posted by: Hageta - 2025-08-18, 15:16 - Forum: Parts Authoring - Replies (6)

All the documentation I found used backslashes(\) for filepaths e.g "s\subpart.dat". But I could not find if forward slashes(/) are also allowed. LDView can use either without any errors, while LDPe does show an error. If either both or only backslashes are allowed it should be mentioned in the Documentation either under filename or a new section. I do ask this because in ConvertToLDraw I currently use forward slashes and I got this Bug report. I will change the filepaths if they are out of spec.

Print this item

  Part Tracker search
Posted by: Peter Blomberg - 2025-08-18, 5:35 - Forum: Parts Authoring - Replies (3)

Is there any way to search for unofficial subparts that have at least one official parent, but do not have any unofficial parents?

Print this item

  Request: Collectible F1 car printed pieces
Posted by: Ian Kelly - 2025-08-16, 15:24 - Forum: Part Requests - No Replies

Hi there! I am looking for the pieces mentioned above. I've tried designing them myself, but I am simply too inexperienced with getting the printings onto the pieces and such. Help would be greatly appreciated, and if not, i still appreciate your consideration Smile

Print this item

  Can anyone make the dinosaur mold parts?
Posted by: Grenstöm - 2025-08-16, 8:27 - Forum: Part Requests - Replies (9)

https://www.bricklink.com/v2/catalog/cat...=tricera01 - Triceratops
https://www.bricklink.com/v2/catalog/cat...e?P=trex08 - Tyrannosaurus Rex
https://www.bricklink.com/v2/catalog/cat...P=raptor15 - Velociraptor
https://www.bricklink.com/v2/catalog/cat...baryonyx01 - Baryonyx

Thanks

Print this item

  Adding stud.dat seems to corrupt geometry
Posted by: CJ H. - 2025-08-15, 17:14 - Forum: Parts Authoring - Replies (2)

I'm working on a custom part that is basically a face with a 1x2 plate stuck on to the back of it. The face is a complex mesh with about 45k triangles (no quads). 
To be sure my studs will have the correct shading in building instructions developed in Studio, I am adding stud.dat in LDPE. However, that step seems to "corrupt" geometry in some way. After adding the stud.dat lines, the resulting part looks ok in Part Designer, but not in Studio. Many faces have disappeared and the remaining ones look distorted.  
I have confirmed that the files are identical except for the `0 Name:` line and the two lines that reference stud.dat like so: 

Code:
1 16 -10 0 0 1 0 0 0 1 0 0 0 1 stud.dat
1 16 10 0 0 1 0 0 0 1 0 0 0 1 stud.dat

I also tried adding the studs in Part Designer, but this had a similar effect.

If I delete the stud.dat refrences, the part works again works as expected in Studio (after a restart). 

Any ideas as to why stud.dat references are causing a problem? 

Apologies for not including images, and thanks in advance.

Print this item