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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 6,235
» Latest member: Kameron Feagans
» Forum threads: 6,619
» Forum posts: 54,434

Full Statistics

Online Users
There are currently 7 online users.
» 1 Member(s) | 1 Guest(s)
Applebot, Baidu, Bing, Google, Yandex, Orion Pobursky

Latest Threads
Brick built MODOK face?
Forum: Part Requests
Last Post: Chris Matteson
1 hour ago
» Replies: 6
» Views: 251
Aquazone 1995-1996
Forum: Official Models
Last Post: Takeshi Takahashi
7 hours ago
» Replies: 7
» Views: 2,693
Space / Exploriens
Forum: Official Models
Last Post: TomaszD
11 hours ago
» Replies: 0
» Views: 65
Town, Trains and Boats 19...
Forum: Official Models
Last Post: TomaszD
11 hours ago
» Replies: 2
» Views: 4,708
2021 - 75313-1 AT-AT - UC...
Forum: Official Models
Last Post: Mayo
2026-11-09, 19:03
» Replies: 1
» Views: 3,578
10179 UCS Millennium Falc...
Forum: Official Models
Last Post: Mayo
2026-11-09, 17:09
» Replies: 32
» Views: 80,032
Missing Stingrays/Hydrona...
Forum: Part Requests
Last Post: Zack Uhlenhuth
2026-11-07, 0:18
» Replies: 13
» Views: 3,152
New parts added manually,...
Forum: Help
Last Post: von_Erics
2026-11-06, 1:41
» Replies: 7
» Views: 1,176
Technic 1994
Forum: Official Models
Last Post: Max Martin Richter
2026-11-05, 12:40
» Replies: 42
» Views: 75,784
Eyes from set 21371 (Wall...
Forum: Part Requests
Last Post: Alfred Schmitz
2026-11-05, 12:18
» Replies: 2
» Views: 620

 
  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

  Web Lic (licreator web version)
Posted by: Victor Di Rienzo - 2018-10-24, 15:01 - Forum: LDraw File Processing and Conversion - No Replies

Today i will be presenting a quick review of web lic. This application is like lpub but a web version of it its the evolution of licreator. As you know as its web version its probably slower than running on your local pc. but its works. its still on beta stage and every update its being published every time you login the web page.

URL: http://bugeyedmonkeys.com/lic/

Github: https://github.com/remig/web_lic

Main Features:

Web Lic is a free, open source web browser based application for creating and editing LEGO instruction books

Auto layout: Automatically layout the steps of your instruction book to nicely fill each page. Easily add a title page and an inventory page to list the parts in the model.

Rich, WYSIWYG UI editor: A fully interactive preview window makes it easy to customize the layout of your instruction book. Add new pages, steps or callouts with just a few mouse clicks. Quickly navigate through instruction books of any size.

Import and Export: Lic can import any LDraw-based model, which is supported by most LEGO model editors. Export your final instruction book as high resolution, print-quality images or PDF, or as small-sized images suitable for sharing online.


This application uses a private building instructions file format. you import your ldr file and its converted to a no human eye readable. Also it uses hi cpu and hi memory on the web browser.


when you open the ldraw file, it ask you if you want an auto arrange steps then it starts building the document.

[Image: 185d583a-2b68-4d29-bbba-2caebc94e348.png]


as you can see you have a Template you can set and its apply to all the rest of the document. you can chang callout background. borders. layout etc. also you can chenge size of the pages background colors etc.

[Image: fa9d96bf-05ee-4a74-899d-79e5597b93f3.png]

this is an example of an aligator. what i only did was open the file and it auto arranges several steps on the page if you dont want con work much. Also what i did was to modify the default look and feel of the template.

Also you can displace pieces with out moddifing the original design or use bufferechange. this i find very poserfull.

Check this out first you select the object of the step and right click, and select the part you are interested in displase
[Image: Ys7nHCS.png]

After the piece is selected you make right click and again you have a new menu. There you can displase the object. move it if its miss plased. or change it for an other.

[Image: vsJgT2Y.png]

As you can see now its did displace the object also added the arrow

[Image: 07439470-c4c1-45c7-93c4-3857c33134df.png]

you can also add annotation like text, arrows, images etc.

Other important think you can do its that you can rearrange steps, swap steps. make callout, add rotation icons etc. 

[img]blob:https://imgur.com/034527b1-39f4-4d72-955e-38918bb3c4f8[/img]
[Image: kcK0jD2.png]

also if you are using sub models it automatically adds the sub model into the building instruction.

[Image: 41f00813-0805-4dba-ae80-9a63d0bf1c1a.png]


You can export  the file in PDF (you can set the DPI) or PNG (you can set the dpi) files.


thoughts. i like it very much. its near to be ready compared the licrator version that was outdated. i would like to play it arround with it little longer. Its much more flexible than lpub. but i would like to work with it and see how it runs with big models.


a little buy i have realized its that the colors of the bricks are not correct. you can change this form the interface too.

Print this item