Welcome, Guest |
You have to register before you can post on our site.
|
Online Users |
There are currently 431 online users. » 1 Member(s) | 427 Guest(s) Applebot, Bing, Google
|
Latest Threads |
Part request Duplo Item N...
Forum: Part Requests
Last Post: Lawford
1 hour ago
» Replies: 5
» Views: 157
|
Part Request: LEGO LION
Forum: Part Requests
Last Post: Javier Orquera
Today, 2:27
» Replies: 1
» Views: 98
|
Most Common Parts that re...
Forum: Part Requests
Last Post: Gerald Lasser
Yesterday, 20:55
» Replies: 11
» Views: 530
|
6278pb01 - Mario Kart Whe...
Forum: Part Requests
Last Post: Javier Orquera
Yesterday, 17:16
» Replies: 3
» Views: 130
|
Parts Request: NINJAGO ON...
Forum: Part Requests
Last Post: 3CFigs
2025-01-09, 22:57
» Replies: 4
» Views: 329
|
[LDPatternCreator] Releas...
Forum: Parts Author Tools
Last Post: Nils Schmidt
2025-01-09, 21:41
» Replies: 2
» Views: 1,052
|
New parts from Lego Instr...
Forum: Parts Authoring
Last Post: Jeff Jones
2025-01-09, 18:57
» Replies: 53
» Views: 22,839
|
Numbering advise for 3209...
Forum: Parts Authoring
Last Post: Rene Rechthaler
2025-01-08, 17:39
» Replies: 5
» Views: 265
|
Town and Trains 1994
Forum: Official Models
Last Post: Takeshi Takahashi
2025-01-08, 14:38
» Replies: 4
» Views: 1,084
|
Parts we are Working on -...
Forum: Part Requests
Last Post: Jens Brühl
2025-01-08, 0:43
» Replies: 145
» Views: 86,492
|
|
|
Writing .dat to .obj converter in JS, but having BFC problems |
Posted by: Mike "Pomax" Kamermans - 2012-12-30, 20:16 - Forum: LDraw File Processing and Conversion
- Replies (7)
|
|
I'm writing a .dat to .obj converter in JavaScript so I can do LEGO modelling using WebGL, and the following the documentation for data interpreting is pretty straight forward, except I'm gettting weird looking inverted faces when loading several parts.
So, I took part 75535 (technic pin joiner round) and commented off the parts after the initial two inner cylindrical surfaces. This turns it into the following extremely simple .dat file:
75535.dat reduced version Wrote:0 BFC CERTIFY CCW
0 BFC INVERTNEXT
1 16 18 0 0 0 -16 0 6 0 0 0 0 6 4-4cyli.dat
0 BFC INVERTNEXT
1 16 -18 0 0 0 16 0 6 0 0 0 0 6 4-4cyli.dat
They're both inner cylinders, with the same definition, so they should both face the same direction. However, one part faces inward (correctly) and the other part faces outward (incorrectly): http://www.int13h.com/webgl/matviewer/testParse.html (four meshes, twice, visualisation of this .obj definition is at http://www.int13h.com/webgl/matviewer for the duration of this thread)
Viewing the .dat file in LDView shows two cylinders, facing inward, so the .dat file is interpreted correctly by .dat readers. However, the converted .obj data is very wrong. Somehow my parser is screwing up, but at this point the only thing I can think of is that the RT matrix for the include operation is doing something really funky, flipping the vertices to effect a reversed winding or something. I'm kind of at my wits end, following the documentation is apparently not enough to interpet the .dat format... what am I still missing here?
- Pomax
N.B: parser code is in http://www.int13h.com/webgl/matviewer/DATParser.js
|
|
|
LDraw.org 2012-03 Parts Update Now Available |
Posted by: Chris Dee - 2012-12-28, 18:12 - Forum: LDraw.org Announcements
- Replies (14)
|
|
The 2012-03 LDraw Parts Update has been now been released. This update includes 564 new files in the core library, including 354 new parts and 56 new primitives.
As ever, thanks are due to the small community of part authors who created or corrected parts for this release and to those who have reviewed files in order to make this release happen.
You can preview the new parts in 2012-03 and download the update by going to the Latest Parts page.
Most of the 113 certified files remaining on the LDraw Parts Tracker were held back from this update in keeping with our normal practice of not releasing new primitives or subparts until they are needed for an official part file.
|
|
|
Parts Tracker |
Posted by: Michael Heidemann - 2012-12-26, 18:36 - Forum: Website Suggestions/Requests/Discussion
- Replies (6)
|
|
It would be very helpful if the PT reports in any case the occurence of a given filename in the official library such as:
Code: However, 52031.dat does exist in the Official LDraw Parts library.
Today we get this information only if no entry on the PT matches the search criteria.
I would like to see this information if I enter a number with or without the extension.
|
|
|
LSynth result dependent on absolute position |
Posted by: Ignacio Fernandez Galvan - 2012-12-26, 15:16 - Forum: All Other Programs.
- Replies (2)
|
|
Consider this simple file:
Code: 0 SYNTH BEGIN ELECTRIC_CABLE 7
0 SYNTH SHOW
1 1 40 10 0 0 1 0 -1 0 0 0 0 1 LS04.dat
1 1 10 0 0 0 1 0 -1 0 0 0 0 1 LS04.dat
1 1 0 0 0 0 1 0 -1 0 0 0 0 1 LS04.dat
0 SYNTH END
0 SYNTH BEGIN ELECTRIC_CABLE 7
0 SYNTH SHOW
1 1 40 10 500 0 1 0 -1 0 0 0 0 1 LS04.dat
1 1 10 0 500 0 1 0 -1 0 0 0 0 1 LS04.dat
1 1 0 0 500 0 1 0 -1 0 0 0 0 1 LS04.dat
0 SYNTH END
The two portions are exactly the same, the second is just displaced +500z. When processed with LSynth, however, the first portion generates only 24 lines, while the second generates 2911 lines!
I guess this is due to rounding errors and matrix transformations being referred always to (0,0,0), but can it be fixed (other than by splitting the code in two parts)?
|
|
|
Nomenclature for tyres |
Posted by: Max Martin Richter - 2012-12-24, 14:20 - Forum: Parts Authoring
- Replies (6)
|
|
Hej,
yesterday, I got a copy of the Power Pull set and just for fun I have looked into our library, if the BIG tyre is available. I found it, but it has an odd name.
I left a comment on the part's page. Steffen BFC'ed the file in the meantime - thanks for that.
Now I was looking for the right name. I checked the wiki and the old Lugnet entries.
And I found out, that our naming system is a bit chaotic (for me). Sometimes it is like the version in our wiki and sometimes it starts with the diameter (like on some Lego tyres). I have checked the rim for the tyre, too. Here it is the same. It doesn't correspond with the wiki.
And another thing: I have no idea, where I should do the measurement at the tyre. At the widest width, at the inside width (because it's a balloon), should I include the bead for the rim in the "percentage" measurement or not and and and.
It would be really great if we could find a way to describe this in a good way.
/Max
|
|
|
Merry Christmas |
Posted by: Max Martin Richter - 2012-12-24, 10:02 - Forum: Off-Topic
- Replies (6)
|
|
Hej,
I want to wish everybody in the LDraw community a Merry Christmas - especially to the admin, the programmers and the part authors.
I'm not sure where all these persons come from. So I write the main fact in the languages, from which I know, that somebody is participating here.
- Merry Christmas
- Joyeux Noël
- God Jul
- Vrolijk Kerstfeest
- Buon Natale
- Feliz Navidad
- Fröhliche Weihnachten
and of course the language of the home country of TLG ;-)
/Max
|
|
|
|