Jump to content

M2m

Eurobricks Knights
  • Posts

    603
  • Joined

  • Last visited

Everything posted by M2m

  1. I used the FBX files and the accompanied xml file to convert the Duplo 2x2 brick (3437) into LDD. https://github.com/sttng/LDD/tree/master/NewParts You can directly import the fbx file into blender and have to adjust the scaling to 1.00 (it was 0.0010 or something defaulted with my install) and export as .OBJ file. Then you can use polymakers brickstudio to convert this into .g file. I edited the xml file with notepad to match LDD format. Caveat: Duplo parts connect to each other, but Lego and Duplo parts don't connect :( The FBX parts have studs and tubes as separate meshes as well as the areas which can be textured or could be differently colored (Called DecorationSurfaces and ColorChangeSurfaces) all in one file. I am pretty confident LEGO internally has an LDD version which uses FBX files directly instead of .g files for the geometry or possibly a Maya Plugin. Also Lego has an internal main brick library (VME tool), which has bricks in highpoly-geometry aimed for Box rendering and advertisement materials and lowpoly-geometry aimed for games, app, etc. Technically FBX files support multiple LODs (Level of Detail), so I guess these files could have High Quality and Low Quality versions within the same file. @polymaker would be awesome if brickstudio could read fbx files directly.
  2. This unity release is indeed interesting. A couple of observations. New parts geometry come as FBX files. The Autodesk FBX file format is a popular 3D data interchange format utilized between 3D editors and game engines (like Maya, 3DS Max, and engines like Unity, Unreal Engine) There are 3084 new parts within the release I downloaded Parts come with CollisionBox and Connectivity Info in an xml file format which is quite similar to the one used by LDD in the Primitive folder I include an example of Duplo part 87316 xml file (Duplo Sheep from the picture above). So maybe we can get Duplo parts (including connections) into LDD Duplo parts seem to use connection type 36 (for their big studs). <?xml version="1.0" encoding="UTF-8" standalone="no" ?> <LEGOPrimitive versionMajor="2" versionMinor="0"> <Annotations> <Annotation designname="SHEEP, ASSEMBLED"/> <Annotation maingroupid="59"/> <Annotation maturitytag="Final"/> <Annotation modifiedDate="2019-11-22 13:10:00.000"/> <Annotation platformid="1"/> <Annotation revision="C"/> <Annotation superdesignid="11087316"/> </Annotations> <Collision> <Box sX="0.24493" sY="0.492992" sZ="0.291046" angle="5.63595" ax="0.822019" ay="-0.099613" az="-0.56068" tx="0.185727" ty="1.19394" tz="-1.48624"/> <Box sX="0.414112" sY="0.363022" sZ="0.414112" angle="0" ax="0" ay="1" az="0" tx="0" ty="0.383079" tz="0.022162"/> <Box sX="0.250179" sY="0.655048" sZ="0.250179" angle="17.87277" ax="1" ay="0" az="0" tx="3.31767" ty="1.1589" tz="-1.45066"/> <Box sX="0.920186" sY="0.49" sZ="0.49" angle="0" ax="0" ay="1" az="0" tx="-1.01271" ty="3.17653" tz="-0.769618"/> <Box sX="0.38982" sY="0.419253" sZ="0.294924" angle="29.67536" ax="0" ay="0" az="1" tx="-2.02529" ty="3.0319" tz="-0.675739"/> <Box sX="0.107982" sY="0.283579" sZ="0.527189" angle="15.96558" ax="-0.945804" ay="-0.321919" az="0.042698" tx="-1.25726" ty="3.95851" tz="0.27026"/> <Box sX="1.88275" sY="0.958764" sZ="0.58956" angle="0" ax="0" ay="1" az="0" tx="1.75959" ty="2.68464" tz="-0.814329"/> <Box sX="0.250179" sY="0.655048" sZ="0.250179" angle="21.2886" ax="-1" ay="0" az="0" tx="3.31767" ty="1.14561" tz="-0.191154"/> <Box sX="0.425685" sY="0.379218" sZ="0.425685" angle="0" ax="0" ay="1" az="0" tx="0" ty="0.399275" tz="-1.6093"/> <Box sX="1.3785" sY="0.213624" sZ="0.58956" angle="3.11413" ax="0" ay="0" az="-1" tx="1.74933" ty="1.52729" tz="-0.814329"/> <Box sX="0.107982" sY="0.283579" sZ="0.527" angle="23.53706" ax="0.265172" ay="0.57496" az="0.774019" tx="-1.50903" ty="3.84348" tz="-1.98599"/> <Box sX="0.24493" sY="0.492992" sZ="0.291046" angle="8.39376" ax="-0.923935" ay="-0.025877" az="-0.381673" tx="0.17828" ty="1.24443" tz="-0.131524"/> <Box sX="0.912232" sY="0.283579" sZ="0.440813" angle="0" ax="0" ay="1" az="0" tx="-0.597613" ty="3.85608" tz="-0.856895"/> <Box sX="0.428235" sY="0.374142" sZ="0.428235" angle="0" ax="0" ay="1" az="0" tx="3.18036" ty="0.394199" tz="0.022162"/> <Box sX="0.444395" sY="0.373783" sZ="0.444395" angle="0" ax="0" ay="1" az="0" tx="3.18036" ty="0.39384" tz="-1.6093"/> </Collision> <Connectivity> <Custom2DField type="22" width="4" height="4" angle="0" ax="0" ay="1" az="0" tx="-0.8" ty="0" tz="-0.8"> 29:0,29:0,29:0,29:0,29:0, 29:0,29:0,29:0,29:0,29:0, 29:0,29:0,32:4:1,29:0,29:0, 29:0,29:0,29:0,29:0,29:0, 29:0,29:0,29:0,29:0,29:0 </Custom2DField> <Custom2DField type="22" width="4" height="4" angle="0" ax="0" ay="1" az="0" tx="2.4" ty="0" tz="-0.8"> 29:0,29:0,29:0,29:0,29:0, 29:0,29:0,29:0,29:0,29:0, 29:0,29:0,32:4:1,29:0,29:0, 29:0,29:0,29:0,29:0,29:0, 29:0,29:0,29:0,29:0,29:0 </Custom2DField> <Custom2DField type="22" width="4" height="4" angle="0" ax="0" ay="1" az="0" tx="-0.8" ty="0" tz="-2.4"> 29:0,29:0,29:0,29:0,29:0, 29:0,29:0,29:0,29:0,29:0, 29:0,29:0,32:4:1,29:0,29:0, 29:0,29:0,29:0,29:0,29:0, 29:0,29:0,29:0,29:0,29:0 </Custom2DField> <Custom2DField type="22" width="4" height="4" angle="0" ax="0" ay="1" az="0" tx="2.4" ty="0" tz="-2.4"> 29:0,29:0,29:0,29:0,29:0, 29:0,29:0,29:0,29:0,29:0, 29:0,29:0,32:4:1,29:0,29:0, 29:0,29:0,29:0,29:0,29:0, 29:0,29:0,29:0,29:0,29:0 </Custom2DField> <Custom2DField type="23" width="4" height="4" angle="0" ax="0" ay="1" az="0" tx="1.65204" ty="4.16" tz="-1.6"> 29:0,29:0,29:0,29:0,29:0, 29:0,29:0,29:0,29:0,29:0, 29:0,29:0,36:4:33,29:0,29:0, 29:0,29:0,29:0,29:0,29:0, 29:0,29:0,29:0,29:0,29:0 </Custom2DField> </Connectivity> <PhysicsAttributes inertiaTensor="2.9137004,0,0,0,4.8618183,0,0,0,5.6452577" centerOfMass="0.668248,2.35493,-0.861872" mass="1" frictionType="0"/> <Color faces="0"/> <Bounding> <AABB minX="-2.70667" minY="0" minZ="-2.64944" maxX="4.04316" maxY="4.70987" maxZ="0.925694"/> </Bounding> <GeometryBounding> <AABB minX="-2.70667" minY="0" minZ="-2.64944" maxX="4.04316" maxY="4.70987" maxZ="0.925694"/> </GeometryBounding> <GeometryFittingCloud> -2.71;2.98;-0.601, -2.7;3.14;-0.612, -2.7;2.81;-0.584, -2.7;3.05;-0.774, -2.68;2.72;-0.582, -2.68;3.19;-0.791, -2.68;2.81;-0.844, -2.68;3.01;-0.49, -2.67;3.15;-0.497, -2.65;2.72;-0.853, -2.65;2.82;-0.433, -2.64;3.14;-0.904, -2.63;3.16;-0.431, -2.63;2.73;-0.422, -2.62;3.32;-0.637, -2.61;3.3;-0.831, -2.61;2.63;-0.848, -2.6;3.11;-0.386, -2.59;2.52;-0.589, -2.58;3.33;-0.504, -2.56;2.87;-1.04, -2.55;2.53;-0.871, -2.53;2.89;-0.275, -2.53;2.54;-0.414, -2.53;2.78;-1.06, -2.49;2.8;-0.251, -2.28;3.69;-0.715, -2.25;3.73;-0.558, -1.93;4.02;-0.606, -1.79;4.03;-2.48, -1.78;4.13;-2.25, -1.77;3.89;-2.56, -1.75;4.07;-2.52, -1.72;4.2;-2.28, -1.72;3.94;-2.63, -1.65;3.78;-2.64, -1.62;4.1;-2.54, -1.6;3.96;-2.63, -1.54;3.83;-2.65, -1.4;4.38;0.58, -1.39;4.27;0.767, -1.39;4.12;0.87, -1.38;3.95;0.887, -1.34;4.3;0.795, -1.33;4.14;0.914, -1.32;4.42;0.588, -1.31;3.96;0.926, -1.25;4.3;0.81, -1.24;4.14;0.904, -1.13;4.59;-0.859, -1.09;4.58;-1.06, -1.04;4.62;-0.889, -0.822;0;-1.55, -0.822;0;-0.0452, -0.784;0;-0.166, -0.763;0;-1.68, -0.762;0;0.0802, -0.645;0;0.193, -0.469;0;-2.09, -0.446;0;-2.24, -0.445;0;0.641, -0.366;0;-2.35, -0.351;0;0.749, -0.21;0;-2.4, -0.201;0;0.802, 0.0514;0;-1.07, 0.175;0;0.69, 2.33;2.65;-2.29, 2.45;2.68;0.679, 2.45;4.61;-0.8;0.48, 2.53;2.72;-2.25, 2.64;3.5;-2.01, 2.66;3.43;0.415, 2.74;3.54;-1.96, 2.83;2.84;-2.16, 2.95;2.87;-2.13, 2.98;0.348;0.78, 2.99;0.344;-2.38, 2.99;0;-2.4, 2.99;0;0.802, 3.04;0;-2.25, 3.06;0;-0.955, 3.06;2.26;0.507, 3.09;2.9;0.403, 3.11;2.28;-2.13, 3.14;2.97;0.375, 3.14;0;-2.38, 3.15;2.43;-2.09, 3.15;0;0.78, 3.17;0.34;0.739, 3.17;0.348;-2.34, 3.24;3.51;0.123, 3.25;3.37;0.195, 3.29;3.42;-1.83, 3.31;3.27;0.187, 3.31;0;-2.32, 3.32;0;0.722, 3.34;0.322;0.68, 3.34;2.79;-1.93, 3.35;0.325;-2.28, 3.4;3.41;-1.78, 3.41;3.44;0.0583, 3.41;3.35;0.0994, 3.42;0;-2.11, 3.46;3.54;-1.63, 3.48;0;0.637, 3.48;0;-2.24, 3.48;0.312;0.603, 3.49;2.77;-1.82, 3.5;3.39;-1.71, 3.51;0;-1.18, 3.51;0.3;-2.19, 3.57;3.82;-0.421, 3.57;3.7;-0.315, 3.58;0;-1.07, 3.58;3.25;-1.62, 3.58;2.78;0.0603, 3.59;0.404;0.502, 3.59;3.33;-1.58, 3.61;2.84;0.0267, 3.62;0;0.523, 3.62;0.149;0.521, 3.62;0;-0.493, 3.62;0.149;-2.12, 3.62;0;-2.12, 3.64;3.7;-0.436, 3.65;0.0116;0.497, 3.65;0.0115;-2.09, 3.66;0.612;-1.99, 3.67;0.0258;-0.443, 3.68;3.51;-0.324, 3.69;0.0496;0.443, 3.69;0.0498;-2.04, 3.7;0.146;0.422, 3.7;0.0975;0.426, 3.7;0.146;-2.02, 3.71;0.101;-2.02, 3.72;3.52;-0.398, 3.74;3.58;-1.26, 3.74;3.44;-0.362, 3.74;3.38;-0.344, 3.76;3.67;-1.11, 3.79;3.63;-0.88, 3.79;0.459;-1.83, 3.79;0.46;0.231, 3.8;3.48;-1.24, 3.81;3.62;-1.08, 3.84;3.56;-0.891, 3.84;3.57;-1.04, 3.84;3.44;-1.17, 3.85;0.46;0.0987, 3.85;0.46;-1.7, 3.87;3.45;-1.08, 3.87;0.46;-1.58, 3.87;0.46;-0.0193, 3.93;3.28;-0.625, 3.94;3.21;-0.566, 3.94;3.11;-0.524, 3.94;3.31;-0.723, 3.98;3.23;-0.935, 3.98;2.99;-0.563, 3.99;3.13;-1.01, 4.01;3.2;-0.742, 4.01;2.97;-0.997, 4.04;3.11;-0.751, 4.04;3;-0.758 </GeometryFittingCloud> </LEGOPrimitive> The tool also comes with an ldraw.xml file which maybe familiar to some here.. snippet of the first couple of lines: <LDrawMapping versionMajor="1" versionMinor="7" comment="LDD 4.3.11 Brick ver 2670"> <!-- 2020-02-02 twentytnewt See http://www.eurobricks.com/forum/index.php?showtopic=137193 Download latest version: http://slswww.free.fr/ldraw.xml Please report errors to slswww@free.fr - includes v4.40 beta ldr-ldd_conver@gallaghersart.com http://www.eurobricks.com/forum/index.php?showtopic=66548 - with additions/corrections from shutterfreak http://www.eurobricks.com/forum/index.php?showtopic=120821 - with additions/corrections from djm - with additions/corrections from Mattia Zamboni (2015-09-30) http://forums.ldraw.org/thread-17387-post-17387.html#pid17387 - with additions/corrections from TotiGonzales - with additions from Jarema - and a lot of corrections and updates since then This file can also be used with the command line tool lxf2ldr and the HTML5/JS “application” lxf2ldr.html: https://gitlab.com/sylvainls/lxf2ldr https://gitlab.com/sylvainls/lxf2ldr.html --> ..... Last but not least the info box you get when trying to import a LDD file: Meanwhile I don't think 5.6 is referring to LDD 5.6 but rather to LXFML file format version 5.6. Currently LDD 4.3.11 uses <LXFML versionMajor="5" versionMinor="0"> so afaik 5.0. Still changing this to <LXFML versionMajor="5" versionMinor="6"> I wasn't able to import. Finally also 2 interesting PDFs are included Release Document.pdf Game Export Document.pdf
  3. Stud.io will load most of the models, but flex parts will be dropped according to my experience (i do understand that keep flex parts is challanging however).
  4. That’s pretty darn impressive!!!
  5. Requesting another part (if someone is kind enough) https://brickset.com/parts/design-11790 My fault.. its there as a head (98118)
  6. I’m using a MacBook (2017 model) and it seems it’s not that compatible with Linux. Wouldn’t blame Linux for it, knowing that Apple uses quite some non-standard components. But was quite surprised about the difficulties, still.
  7. Ok I might do that. Do you even use RenderMan on Linux ? Ultimately I gave up trying to get RenderMan working on my Ubuntu, because: 1) RenderMan uses Redhat style packages (ok I converted these to deb with Alien) 2) I couldn’t get WiFi working so I couldn’t get my license from Pixar
  8. Using environment variables seems a great idea. Would you rather think its better to capture the whole path to the db.lif file like /a/b/c/db.lif or rather only to the folde where db.lif - or its extracted counterpart - the db folder resides (so in the former example /a/b/c) ? Meanwhile it was much more painful to get Linux running on external usbdrive then I expected :( Thanks for UEFI and Touchpad stupidity (the latter working only on every 2nd or so reboot)
  9. For those of you who are running LDD on Linux (are there some ?), I added some preliminary Linux support. You can convert your lxf files now to obj or usda files on Linux as well. I hardcoded the location of the db.lif file based on my setup as I am not really familiar with Linux/Wine. Let me know in case of problems. https://github.com/sttng/LegoToR/releases/tag/v0.5.3.5
  10. Here a quick step-by-step guide: Requirements: LIF-Extractor from JrMasterModelBuilder https://github.com/JrMasterModelBuilder/LIF-Extractor 1) Go to Folder /Users/myusername/Library/Application\ Support/LEGO\ Company/LEGO\ Digital\ Designer/ 2) Extract the db.lif using JrMasterModelBuilders LIFExtractor.py python script by using Terminal python LIFExtractor.py /Users/myusername/Library/Application\ Support/LEGO\ Company/LEGO\ Digital\ Designer/\db.lif This will create a db subfolder containing the extracted contents of db.lif After that rename the file db.lif to somethinglike db_backup.lif 3) Get the new parts from this topic:  4) Extract the parts packs (i.e. Primitives.rar) 5) Add and replace the files (not the folders) in the db folder and its subfolders with the files from the parts packs. For example in the parts pack there is a "Primitives" folder, copy all files from there to the ..../db/Primitives folder. Same with the "Primitives/LOD0" folder and so on.
  11. Could someone make this part available: https://www.bricklink.com/v2/catalog/catalogitem.page?P=36112pb01 and maybe alos a couple of other animal heads (like the pig, mouse, elephant, etc). Thanks !
  12. I made some modifications and LegoToR possibly works on Windows now. https://github.com/sttng/LegoToR/releases/tag/v0.5.2.1
  13. Building instructions do not work with extracted db.lif. This is not related to the new parts. I assume the building instructions functions has a lookup for db.lif hardcoded and is unaware of db folder.
  14. Ok I fixed it. I just started from scratch (Extract db.lif, then replace all files) and it worked !
  15. Yes I just tried this again. I redownloaded primitives.rar from here: https://www.dropbox.com/s/91nj66c6gg26wt7/Primitives.rar?dl=0 and then overwrote all *.lxfml in the Assemblies folder with the ones from the rar file... still same issue. Which lxfml file is containing the pistons ? I may check if its a problem with that.
  16. Thanks for the quick reply. Maybe i did something wrong when copying.... Anyway its not a biggie :)
  17. I got the latest parts-update and now I'm having some 'questionmark' parts group divider containing some piston parts: Am I the only one with this ?
  18. I love it - super informative wiki entry ! Looking forward to others.
  19. You don't need to 'code' anything. You can get the python script here: https://github.com/JrMasterModelBuilder/LIF-Extractor . Then just run it in the command line (called 'Terminal' in macOS). Terminal might feel slightly intimidating but its for this task not complex.
  20. Thanks ! Are those pieces available in LDD (mod) ?
  21. Another update to support the colors added in the latest LDD mod. Get it here: https://github.com/sttng/LegoToR/releases/tag/v0.5.1.2 Bonus: A R-Type spaceship I build in LDD and rendered:
  22. Could we have references of which parts are using this color ? I have trouble in finding for ex parts that use 341 as a color in real life.
×
×
  • Create New...