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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 5,850
» Latest member: Ferrel
» Forum threads: 6,486
» Forum posts: 53,705

Full Statistics

Online Users
There are currently 219 online users.
» 2 Member(s) | 213 Guest(s)
Baidu, Bing, Google, Yandex, Philippe Hurbain, Stephan den Ridder

Latest Threads
Array bricks along hose p...
Forum: LDraw Editors and Viewers
Last Post: Philippe Hurbain
4 minutes ago
» Replies: 1
» Views: 38
[LDPE] 1.8.97 Released (s...
Forum: Parts Author Tools
Last Post: Nils Schmidt
Yesterday, 18:17
» Replies: 8
» Views: 2,390
[LDPE] 1.8.95 Released (p...
Forum: Parts Author Tools
Last Post: Nils Schmidt
Yesterday, 18:07
» Replies: 8
» Views: 6,398
47430 messurements
Forum: Parts Authoring
Last Post: Jeff Jones
Yesterday, 12:41
» Replies: 1
» Views: 173
Wheels needed for Set 772...
Forum: Part Requests
Last Post: Alfred Schmitz
Yesterday, 9:02
» Replies: 10
» Views: 1,849
2026 - New Parts -> Raw M...
Forum: Part Requests
Last Post: Gerald Lasser
Yesterday, 6:50
» Replies: 26
» Views: 5,431
Bionicle Tahu Cosplayer f...
Forum: Part Requests
Last Post: Chris Böhnke
2026-05-10, 19:04
» Replies: 20
» Views: 1,451
Updates available for MLC...
Forum: LDraw Editors and Viewers
Last Post: Manfred Schaefer
2026-05-10, 13:27
» Replies: 2
» Views: 346
LDraw.org Official Parts ...
Forum: Parts Tracker Discussion
Last Post: Peter Blomberg
2026-05-09, 18:03
» Replies: 6
» Views: 974
"Fixing" Older Stickers (...
Forum: Parts Authoring
Last Post: Chris Böhnke
2026-05-09, 17:17
» Replies: 0
» Views: 153

 
  Looking a tutorial to make a custom part!
Posted by: Victor Di Rienzo - 2018-11-06, 11:59 - Forum: Parts Authoring - Replies (34)

Guys i want to make a very simple custom part. its a rectangle with a png snapped on front with transparent background. its possible to make this? (EASY WAY)

 something like this. its to add into a model in a building instruction. that will be overlapped to a model

[Image: O45tmnb.png]

Print this item

  The adventures of building a web renderer
Posted by: Lasse Deleuran - 2018-11-05, 16:25 - Forum: Rendering Techniques - Replies (44)

This thread is for sharing my learnings and war stories from the LDraw web-rendering project buildinginstructions.js.
You can see how it evolves on BrickHub.org.

Here is a current example of how it renders a LEGO model:

[Image: 14.png]

It was not always like this. While there are at least two other web renderers that I know of, I still decided to start this project from scratch. This way I would get practical experience with the technologies involved (WebGL, Three.js, GLSL, etc.), and focus on having performance in mind from the very beginning. While the project itself hopefully ends up being of practical use for many, my goal with this thread is to share my experiences, wins and losses, and perhaps even get some good feedback to help drive the project forward.

The project started in July 2018 with the first breakthrough being in August 1. Back then I had finished an MPV of the .ldr parser while trying to adhere to the Three.js best practices for building a Loader. By modifying one of the Three.js sample files, I was able to get it to render:

[Image: p4xuzyP.png]

As you can see, there were some massive BFC issues, but that was alright for a start. The important part was to get started and get something, anything really, up and running.
My top 3 takeaways from this early stage are:

- Ignore everything that is not absolutely needed in order to get started. This includes conditional lines, quads, BFC, colors, metadata, viewport clipping, etc, etc. While it is important to do things right, the proof of concept both gave me something tangible and came with a morale boost.

- Three.js and the LDraw file format work well together from the perspective of placing things in 3D. It is obvious that James Jessiman knew what he was doing when designing the specification.

- Depending on your approach of design, BFC can be very difficult to get right. There is psudocode in the spec, but unfortunately it did not fit into the data models I had chosen. The pseudocode assumes a single pass of computing both BFC information and triangle wrapping, while my code handles the BFC computation in a separate initial step that creates reusable components.

That is all for the first post. I will try to keep this thread alive with more war stories.

Print this item

  LDraw brick models - not detailed?
Posted by: Daniel West - 2018-11-04, 1:07 - Forum: Rendering Techniques - Replies (3)

I'm working on a rendering application which requires very accurate models of all LEGO parts.
Naturally the LDraw library is a first stop for me, but I am running into some curious cases of lack of detail even in very common parts like 2xN bricks.
If you look at the underside of a real (modern) 2 x 4 brick for example, you will see a number of small supports, as well as divots where the studs stick out. However, such details are not present in even high resolution LDraw models.

I think it's fair enough if LDraw has some sort of philosophy that the part authors don't worry too much about this sort of detail. But I was just wondering if I was missing anything, or if there was a way to access more detailed part files, especially for very common elements such as these.

Thanks!

Print this item

  LDCAD Parts List Export?
Posted by: Jeff Boen - 2018-11-02, 22:26 - Forum: LDraw Editors and Viewers - Replies (7)

Sorry if I'm missing something obvious, guys. I'm now fully-converted to LDCad and loving it, but now that I've completed my first serious model using it (1400+ pieces) I can't seem to find an easy method to get a listing of all the parts used in it. I tried BrickUtils from years ago but it no longer appears to run and I can't quite follow all of the discussion about Rebrickable providing a parts list. Is there no parts list file export directly from LDCad?

Thanks again for all the great work and help!

Print this item

  USC Millenium Falcon - coloring confusion
Posted by: Volker - 2018-11-02, 19:44 - Forum: Part Requests - Replies (3)

Hallo community,

I designed an escape pod for my USC MF and wanted to save it in an proper building instruction. So I´m an bloody beginner with MLCad. I send a request to LEGO, about the used color palette. I received this list:

Quote:154 - New Dark Red
21 - Bright Red
41 - Tr. Red
1 - White
42 - Tr. Light Blue
322 - Medium Azur
23 - Bright Blue
102 - Medium Blue
140 - Earth Blue
24 - Bright Yellow
26 - Black
48 - Tr. Green
28 - Dark Green
330 - Olive Green
106 - Bright Orange
194 - Medium Stone Grey
199 - Dark Stone Grey

138 - Sand Yellow
05 - Brick Yellow
192 - Reddish Brown
312 - Medium Nougat
315 - Silver Metallic

Starting with the mainly used colors of the surface (I marked them bold), I am not able to assign these in MLCad selectable colors - neither with the numbers, nor with the names. I am confused, is that now "light gray", "light bluish gray", "very light bluish gray", ...?

Totally puzzled

Print this item

  Using LDCad flexible parts with Studio
Posted by: Philippe Hurbain - 2018-11-02, 15:41 - Forum: LDraw Editors and Viewers - Replies (30)

Studio is a nice LEGO CAD tool, but current version (2.0.1(39)) lacks flexible parts. Fortunately, with some tweaks (and a few caveats), it is possible to use LDCad flexible parts in Studio.

If you created your model with Studio, you need to

  • export it as LDraw
  • open the exported model with LDCad
  • add the flex parts using the guidelines that follow.
  • reload the LDraw model in Studio.
If, like me, you are a die-hard LDCad user, you can still use these tips to make use of the great photorealistic rendering engine included in Studio, or its fast and user friendly instruction generator. I find that Studio editor is not nearly as convenient, flexible and powerful as LDCad, but I'm probably biased Wink

How it works?
LDCad uses specialized meta-commands to describe the flexible parts but also create a generic fallback LDraw representation. It is this fallback which is visible in Studio if two conditions are met:
  • the fallback is made with segment parts present in the LDraw library of Studio
  • The segment parts are not scaled: Studio is not able to scale parts.
Important note:
This is NOT a LDCad flexible parts tutorial! For more details, see LDCad documentation, video tutorials and technical documentation.

Print this item

  Ball bearing
Posted by: Knud Ahrnell Albrechtsen - 2018-11-02, 12:00 - Forum: Part Requests - Replies (7)

Hi

I know this is an unusual  request, but could you please make a ball bearing part that fits in the hole of a Technic brick and the inner diameter fits to a Train metal axle (part x1687).

I need this to do instructions to train boogies that use these ball bearings.

Dimensions: 2x5x2.5mm

[Image: ball_bearing.jpg]

Thanks
Knud

Print this item

  Brickalo - Can Computers Play With Lego?
Posted by: Neil Marsden - 2018-11-02, 10:46 - Forum: Rendering Techniques - Replies (6)

Hello LDRAW people

I’d thought I’d share a Lego LDraw based website I’ve created - www.brickalo.com - I’ve been working on getting a Python program to better understand how LDraw Lego parts might fit together.  Brickalo creates unique LDraw .ldr files (and pretty pictures) containing 100 various Lego bricks randomly assembled by a computer (which is harder than it looks!)
It uses the command line version of MODO (which is freely accessible without a full license) to render the images
Let me know what you think
Thanks
Neil

Print this item

  Lpub How to add a submodel render in building isntruction
Posted by: Victor Di Rienzo - 2018-10-25, 17:05 - Forum: LDraw File Processing and Conversion - Replies (12)

hi guys i was wondering if there its any command or option that lpub can show you the sub model that you will be building as it was the PLI.

this is an example i do inserting an image of the sub model.


[Image: pblb37I.png]

And also if there is any way to ask to render lpub a final image of the model. some times when i finish a building instruction is inside a sub model and i dont get a final render of the model in the last page. what im doing now is a render and add it as a image.

Print this item

  LPUB3D model only rendered in small area
Posted by: cusaro - 2018-10-24, 20:14 - Forum: LDraw Editors and Viewers - Replies (11)

Hi,

I have the following problem:     

On the page is enough space for the model but it's only rendered in this small area. I have no idea how to fix this and I'm absolute beginner. I use LDGLite as a render and LPUB3D on Mac OS 

I think my code looks rather normal (not everything just until the step where it looks wrong):

Code:
0 voyager
0 Name: voyager.ldr
0 ROTSTEP 10.000 10.000 -150.000 REL
1 71 576.035522 -208 52.500443 0 0 1 0 1 0 -1 0 0 3029.dat
1 71 576.035461 -200 142.500458 1 0 0 0 1 0 0 0 1 3710.dat
1 71 576.035461 -200 92.500458 0 0 1 0 1 0 -1 0 0 3020.dat
1 71 616.035461 -200 92.500443 -1 0 0 0 1 0 0 0 -1 63330.dat
1 71 536.035461 -200 92.500435 -1 0 0 0 1 0 0 0 -1 63333.dat
1 71 576.0354 -200 32.500423 1 0 0 0 1 0 0 0 1 18980.dat
0 STEP
0 ROTSTEP 10.290 10.165 29.949 REL
1 71 576.0354 -216 162.500427 1 0 0 0 1 0 0 0 1 3710.dat
1 71 636.035461 -208 112.500458 -1 0 0 0 1 0 0 0 -1 63330.dat
1 71 516.035461 -208 112.500427 -1 0 0 0 1 0 0 0 -1 63333.dat
1 71 576.035461 -216 72.500488 0 0 1 0 1 0 -1 0 0 3036.dat
1 71 636.035461 -208 32.500443 0 0 1 0 1 0 -1 0 0 3020.dat
1 71 516.035522 -208 32.500431 0 0 1 0 1 0 -1 0 0 3020.dat
0 STEP
1 71 646.0354 -216 -7.499573 0 0 -1 0 1 0 1 0 0 2436a.dat
1 71 506.035431 -216 -7.499577 0 0 1 0 1 0 -1 0 0 2436a.dat
1 71 646.035461 -216 52.500446 0 0 -1 0 1 0 1 0 0 99781.dat
1 71 506.035461 -216 52.500458 0 0 1 0 1 0 -1 0 0 99781.dat
1 71 646.035461 -208 -27.499556 0 0 1 0 1 0 -1 0 0 3023.dat
1 71 506.035461 -208 -27.499548 0 0 -1 0 1 0 1 0 0 3023.dat
1 71 576.035461 -216 -17.499538 -1 0 0 0 1 0 0 0 -1 3666.dat
0 STEP
1 71 567.035461 0 591.500366 0 0 1 0 1 0 -1 0 0 sub1.ldr
0 STEP
1 71 545.964417 -240 -17.499554 1 0 -0 0 1 0 0 0 1 3024.dat
1 71 545.964355 -232 -37.499546 -0 0 -1 0 1 0 1 0 -0 3623.dat
1 71 545.964355 -256 -37.499546 1 0 -0 0 1 0 0 0 1 50950.dat
1 71 545.964417 -224 -17.499554 0 0 1 0 1 0 -1 0 0 2420.dat

Thanks for any help

Print this item