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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 5,324
» Latest member: Ollie
» Forum threads: 6,182
» Forum posts: 51,812

Full Statistics

Online Users
There are currently 224 online users.
» 1 Member(s) | 217 Guest(s)
Applebot, Baidu, Bing, Google, Internet Archive, Yandex, Martin James

Latest Threads
Dots 1x1 printed alphabet...
Forum: Part Requests
Last Post: Orion Pobursky
5 hours ago
» Replies: 4
» Views: 227
Koala animal part 2589pb0...
Forum: Part Requests
Last Post: Ollie
9 hours ago
» Replies: 0
» Views: 105
Stud groups
Forum: Official File Specifications/Standards
Last Post: Magnus Forsberg
Yesterday, 20:34
» Replies: 1
» Views: 213
A fresh list of "most com...
Forum: Part Requests
Last Post: Peter Blomberg
Yesterday, 15:34
» Replies: 11
» Views: 2,030
Part Request - 51008pb01 ...
Forum: Part Requests
Last Post: Julian Raymond Ruan
Yesterday, 12:04
» Replies: 2
» Views: 2,367
New parts from Lego Instr...
Forum: Parts Authoring
Last Post: Timothy Hall
2025-09-17, 2:41
» Replies: 85
» Views: 73,694
axleend2
Forum: Parts Tracker Discussion
Last Post: Gerald Lasser
2025-09-16, 20:03
» Replies: 3
» Views: 812
Parts request
Forum: Part Requests
Last Post: Peter Grass
2025-09-16, 5:58
» Replies: 2
» Views: 935
Transparent sticker colou...
Forum: General LDraw.org Discussion
Last Post: Travis Cobbs
2025-09-16, 1:42
» Replies: 10
» Views: 1,643
The Emperor Zurg
Forum: Part Requests
Last Post: Julian Raymond Ruan
2025-09-15, 13:07
» Replies: 0
» Views: 745

 
Photo New WebGL <brick-viewer> web component for MPD files
Posted by: Justin - 2020-09-26, 20:17 - Forum: LDraw Editors and Viewers - No Replies

Hey everyone,

This is my first post here, so hopefully announcements of this sort are ok.

I'm a web developer who works on libraries related to web components, a way for developers to create their own HTML tags. As part of a demo/codelab a coworker and I created a MPD viewer web component using three.js called <brick-viewer>.

<brick-viewer> wraps up three.js and it's LDraw loader example so that it's super easy to use. All you have to do is import the element definition, then use the tag:

PHP Code:
<?php 
<!-- import the custom element definition -->
<
script type="module" src="https://unpkg.com/brick-viewer?module"></script>

<!-- use
the tag anywhere in HTML -->
<
brick-viewer src="./radar_truck.mpd"></brick-viewer>

You can see a demo here: https://polymerlabs.github.io/brick-viewer/
And you can install it from npm with:

Code:
npm i brick-viewer

<brick-viewer> was made as a demo, but it's pretty usable. It displays build steps with a slider and that's controllable with an HTML attribute. The code itself is pretty straightforward, so it could be extended with new features. You can see the code and file bug reports and feature requests here: https://github.com/polymerlabs/brick-viewer/

I hope it enables sites like this to easily embed 3D models without any programming. It'd be nice to unleash the potential of WebGL + Lego on the web Smile

I'd love feedback if you try it out! We're new to the file formats and use cases, so if there's something we could do better, let us know.

One thing I'd love to know about is if there are any efforts to make .ldr files be able to link to each other, or newer formats that would allow that. It seems like having to make MPD files slows down the workflow, and makes it a bit harder to make a viewer app that could just render LDR files hosted on the web.



Attached Files
.png   Screen Shot 2020-09-26 at 1.04.11 PM.png (Size: 45.61 KB / Downloads: 36)
Print this item

  Friends Hedgehog 98389
Posted by: Takeshi Takahashi - 2020-09-22, 15:39 - Forum: Part Requests - Replies (3)

Hello,

Thanks for creating previous requested part 93088 (Puppy).

I'd like to request part 98389 (Hedgehog, Friends) for Friends OMR project
https://forums.ldraw.org/thread-24146.html

Creating plain base part is sufficient, as I'll try to have training for curved surface patterns, as well as 93088.

Looking into Philo's 93088, I can see what we need for cleaning up LDD exported data:
- Adding conditional lines
- Using primitives especially for connections with other parts (studs, accessory holes, handles for minifigs etc.)

I'll start making my first 3-D part from easier one soon (such as 94717), but animals are a little above me now.

Print this item

  The only official train motor in LDraw is from 1991 with fixed wheels?
Posted by: Lebostein - 2020-09-22, 7:48 - Forum: Part Requests - Replies (1)

I am somewhat shocked that the only official train motor in the LDraw library is the old one from 1991 with fixed wheels:
https://www.ldraw.org/parts/official-par...id=2894c01

But since 2006 (!!!) a new type of motor with axle holes was introduced:
https://www.bricklink.com/v2/catalog/cat...ge?P=x1688 (2006 - 2009, Initial 9V motor)
https://www.bricklink.com/v2/catalog/cat...P=87574c01 (2010 - 2015, "Power Functions" version)
https://www.bricklink.com/v2/catalog/cat...=bb0896c01 (2018 - 2020, "Powered Up" version)

But it seems no official parts for this "new" type of motor. There are some unfinished designs only, like that:
https://www.ldraw.org/cgi-bin/ptdetail.c.../87574.dat

Print this item

  577a and 577b length?
Posted by: Philippe Hurbain - 2020-09-20, 17:49 - Forum: Parts Tracker Discussion - Replies (5)

Could someone verify that lightsaber hilt length is different? If length is different (as they are modeled), I'm a bit surprised that they are mixed together on Bricklink...

Print this item

  Rendering of sheared RECT primitives
Posted by: Gerald Lasser - 2020-09-17, 22:33 - Forum: Parts Authoring - No Replies

I uploaded the cake costume parts, 35860 and 38560p01, and had them rendered in Stud.io.



What I got was an interesting result. on the LEFT the parts are as I have uploaded them to the PT, resulting in this "cond-line artefact". I remembered that I used a rect2p there with a shear matrix. So I in-lined this and I got the result on the RIGHT picture. Seems that the pre-processing for the renderer is not working correctly.


Has anybody noticed this and (re-)designed a part with this problem in mind?

Code:
0 // ORIGINAL CODE (LEFT)

1 16 0 -20 -10.75 19 0 0 0 1 20 0 0 .25 rect2p.dat
1 16 0 -20 10.75 -19 0 0 0 1 20 0 0 -.25 rect2p.dat


0 // INLINED CODE (RIGHT)
2 24 19 0 -10.5 -19 0 -10.5
2 24 -19 -40 -11 19 -40 -11
4 16 -19 0 -10.5 -19 -40 -11 19 -40 -11 19 0 -10.5
2 24 -19 0 10.5 19 0 10.5
2 24 19 -40 11 -19 -40 11
4 16 19 0 10.5 19 -40 11 -19 -40 11 -19 0 10.5


   

Print this item

  88013 Technic Large Motor
Posted by: Cam's Bricks - 2020-09-17, 3:50 - Forum: Part Requests - Replies (3)

I think my google fu chops are off today.

I cant find an alternate part number for this and cannot see this on the part tracker or any forum posts for the part number or other searches like "technic large motor" or "technic large" yield no results. 

Does someone have this or can point me to it?

Print this item

Lightbulb It is recommended that melkert should write a book
Posted by: Shi.Yan - 2020-09-16, 4:23 - Forum: LDraw Editors and Viewers - Replies (7)

It is recommended that melkert should write a book, a comprehensive introduction to ldcad

Print this item

  Highlight edges in model tree?
Posted by: N. W. Perry - 2020-09-15, 22:23 - Forum: LDraw Editors and Viewers - Replies (2)

Is there a way to highlight edge lines while browsing the model tree? I know condlines will highlight, but regular edges don't seem to.

Print this item

  Where has Brickshelf gone?
Posted by: Magnus Forsberg - 2020-09-14, 16:19 - Forum: Off-Topic - Replies (4)

Anyone else having problems reaching Brickshelf?

Print this item

  Viewing available part count
Posted by: Darin - 2020-09-14, 5:47 - Forum: LDraw Editors and Viewers - Replies (9)

Hello, I just discovered LDCad (1.6d) and want to know if there is a way to show remaining parts in the part bin (or anywhere else).

I'm interested in creating designs from a limited number of parts, and would like a way of knowing if I've stayed within that limit.

I found the showCount property in the Overivew group http://www.melkert.net/LDCad/tech/partBin

And I exported a part list from a set on Rebrickable, dropped that file in the sets dir, and see the part count there. 

So both pieces of information exist in the tool, but I'm looking for some way to see that information together.

I can think of 2 ways I might find this:
 1) Show both use count and total count in the part bin
 2) Update part bin count to show available remaining

Is there a way to see this information? If not in LDCad, is is viewable in some other editor?

Alternatively maybe I could open a second part bin window and eyeball it, but that doesn't seem practical if I'm using very many unique parts.

Thanks!

Print this item