Skip to content
View in the app

A better way to browse. Learn more.

ResHax

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Help us keep the site running.

LEGO Digital Designer Geometry Files (.g & .g*) to .obj (or equivalent)

Featured Replies

  • Author
  • Localization

ProfBrickkeeper, posted Tue Aug 16, 2016 7:31 am (16522)


Hello,

To assist me with a rendering project I am currently working on, I am looking for assistance in converting the LEGO Digital Designer geometry files (.g) to .obj or an equivalent format. Currently, no documentation exists for the format, but many others have been able to make sense of it in the past, so I do not expect that to be a major issue. The complete models are housed across multiple files, with the base mesh housed in a .g file and (depending of the needs of the model) decorated, UV mapped portions of the mesh contained in numbered .g* (ex. .g1, .g2, etc.) of the same root name. Previous converters have typically dealt with the issue of being unable to stitch together the data from the geometry files into a cohesive mesh, and have also not been able to support the UV maps, which I hope this effort will remedy.

To assist in attempts to figure out and convert the format, I have provided a small copy of the database, which can be downloaded HERE. The geometry files are found in the "Primitives/LOD0" folder, decorations are found in the "Decorations" folder, and the "DecorationMapping.xml" file dictates which decorations (by ID) get mapped to which brick ID, and on which surface (presumably, the surface ID is related to the number found at the end of .g* files).

Thanks for all the help!
Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.