Welcome, Guest |
You have to register before you can post on our site.
|
Forum Statistics |
» Members: 5,318
» Latest member: Cristian
» Forum threads: 6,180
» Forum posts: 51,802
Full Statistics
|
Latest Threads |
A fresh list of "most com...
Forum: Part Requests
Last Post: tom alphin
2 hours ago
» Replies: 8
» Views: 981
|
axleend2
Forum: Parts Tracker Discussion
Last Post: Orion Pobursky
2 hours ago
» Replies: 2
» Views: 76
|
New parts from Lego Instr...
Forum: Parts Authoring
Last Post: Javier Orquera
3 hours ago
» Replies: 83
» Views: 69,134
|
Parts request
Forum: Part Requests
Last Post: Peter Grass
11 hours ago
» Replies: 2
» Views: 474
|
Transparent sticker colou...
Forum: General LDraw.org Discussion
Last Post: Travis Cobbs
Today, 1:42
» Replies: 10
» Views: 762
|
The Emperor Zurg
Forum: Part Requests
Last Post: Julian Raymond Ruan
Yesterday, 13:07
» Replies: 0
» Views: 332
|
Batman Cowls
Forum: Part Requests
Last Post: Peter Grass
Yesterday, 1:13
» Replies: 1
» Views: 454
|
Fix for slightly incorrec...
Forum: Part Requests
Last Post: Huib Versteeg
2025-09-14, 9:50
» Replies: 4
» Views: 1,103
|
Lego Town Racer 1996 - 63...
Forum: Official Models
Last Post: Chris Böhnke
2025-09-13, 23:39
» Replies: 14
» Views: 2,524
|
Eyesight on Linux
Forum: Rendering Techniques
Last Post: Orion Pobursky
2025-09-13, 18:56
» Replies: 12
» Views: 9,148
|
|
|
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
|
|
|
|