Jump to content
jamesster

3DXML to OBJ - Converts LDD model captures to OBJ

Recommended Posts

MineTimelapser
5 minutes ago, TheDiplomat said:

Huh. Maybe I'm doing something wrong, then. I ran the installer, it finished without issue, and then I tried running the resulting executable. But all that happens is I see a little "3DVIA Printscreen" appear at the bottom-right of my screen, it disappears after a moment, and the process can be sitting idly when viewed in the Task Manager. So I thought, "okay, maybe there's no UI, it just waits for a hotkey or something", but then that doesn't explain how to change the configuration (or the fact that there are screenshots online of a UI)... So I tried googling and the best I could find was that my OS was just the problem, but if that's not it, I'm at a loss. :S

 

Try to right-click the 3dvia icon in your task bar and go to settings there. It indeed has very few UI and is just activated by the hotkey set there (F10 in my case). Also make sure to have a double-check on the setup points in the original post such as launching the program before opening LDD.

Share this post


Link to post
Share on other sites
jamesster

Another thing to try, if your computer has multiple graphics processors, is to try switching LDD to another one of them than the default. I have both an NVIDIA card and integrated graphics on this laptop, and 3DVIA Printscreen will only capture from LDD if LDD is running on integrated graphics:

 

OcOOk62.png

 

In fact, if 3DVIA Printscreen is open, some programs will freeze or not appear to launch if they're using the NVIDIA card. So, I've got LDD, 3DXML to OBJ, and misc other programs like Discord all set to use integrated graphics so 3DVIA Printscreen doesn't give them trouble.

Share this post


Link to post
Share on other sites
TheDiplomat

Thanks for the help! Turns out I was just looking for the settings in the wrong place, hehe. Didn't look for it in the "hidden icons". Whoops. Anyway, now that I'm able to try it out, this is an amazing tool, Terrev. Thanks for sharing it here!

 

 

Share this post


Link to post
Share on other sites
SarahC

Terrev - Thank you for such a wonderful conversion tool.

 

I wonder if you could help me with the conversion? I'm trying the 3DXML to OBJ conversion to make individual bricks - but  I'm not getting anywhere.

 

I tried unselecting "Weld duplicate vertices" to see if a side effect was separating the bricks - but that's exactly what it sounds, as you know!

I tried setting color variation - but everything turned red, and when all the bricks where selected as one.

 

Please could you help?

 

I want to split the bricks so I can move them in "post-production" - for instance scatter them out of a hole in a wall using 3D Builder, and set materials per-brick.

In Kerkythea when I select a brick ALL the bricks with the same material are selected, I checked the OBJ file, and saw they're one object in the file.

 

Many thanks!

 

Sarah

Share this post


Link to post
Share on other sites
jamesster

Hm, I'm not sure I have a good solution for this - LDD automatically batches many bricks of the same material together, since rendering one big mesh is more efficient than rendering hundreds of smaller ones, which keeps LDD running smoothly even with big models. The only way around it would be to keep LDD from doing it this in the first place.

 

The only potential solution I can think of would be to give each brick in the model a material not used anywhere else in the model. This would work similarly to color variation - you'd modify LDD's Materials.xml file to add custom materials (they can be visually identical to each other, just separately defined), then edit the LXF/LXFML to use them. The problem is that you'd need as many materials as there are bricks in the model, which would lead to a very bulky Materials.xml file... I'll look into it though, unless anyone has a better idea.

 

Edit: Oh, I just remembered - there IS an entirely separate method of converting LDD models that could serve your purposes. It doesn't really have anything to do with 3DXML files so I'll send you a PM about it once I get home a little later tonight, or something like that... I'm not sure you'd be able to access the PM feature until you have at least 3 posts though. Maybe we could use email, or you could just make two more posts somewhere (sorry for the hassle haha).

 

Another edit: Tried sending a PM to you but it said you can't receive them yet, blech. I just sent it to myself for the time being, once you have 3 posts I can add you to the conversation I guess... Sorry, this limit wasn't my idea haha.

Share this post


Link to post
Share on other sites
KHD1

I know that this is an old topic but I'm running into a problem. Every model I try to convert keeps messing up. I capture the models with 3DVia Printscreen and it captures it all because I've checked on the 3DVia Player but when I try to convert it to OBJ it only converts one part of it. For example when I try to convert an entire minifigure, it only converts one of it's legs or if I have just the torso, it only converts the arms. I would really appreciate some help.

Share this post


Link to post
Share on other sites
jamesster
2 hours ago, KHD1 said:

I know that this is an old topic but I'm running into a problem. Every model I try to convert keeps messing up. I capture the models with 3DVia Printscreen and it captures it all because I've checked on the 3DVia Player but when I try to convert it to OBJ it only converts one part of it. For example when I try to convert an entire minifigure, it only converts one of it's legs or if I have just the torso, it only converts the arms. I would really appreciate some help.

Be sure you're following the setup instructions in the first post exactly. It sounds like you might have "Group by textures" enabled in 3DVia Printscreen when it should be disabled.

Share this post


Link to post
Share on other sites
KHD1

Yeah that was the problem. I completely forgot to disable group by textures. Thank you.

Share this post


Link to post
Share on other sites
asdronin

Hi all, thanks for sharing this method, indeed works great, but I wonder if there is another method that could possibly remove all the concave areas from all the bricks too making it even lower polycount, the method works great but in the model Im trying it seems i need to remove other areas to make it even better so it would be great if i can achieve that

Share this post


Link to post
Share on other sites
jamesster

New release:

 

https://github.com/Terrev/3DXML-to-OBJ/releases/tag/v1.9.0

 

Updated engine version to 2019.2.12f1 and did some other general maintenance.

 

The engine upgrade means it can now render very large meshes that were previously over Unity's mesh size limit (they were always exported to the OBJ file though, so as far as raw functionality goes nothing really changed there).

 

There is one small fix to the actual conversion functionality: It turns out there's exactly one decoration in LDD that's RGB, while the other nearly 2000 of them are RGBA. The converter previously assumed all textures were RGBA and would choke on it, but that's fixed now. So if you've ever wanted to export a model with this awkwardly pixelated floral pattern, then boy howdy is this the update for you:

 

68828259-545a7f00-0662-11ea-83a9-ca742bc

 

 

As always, I recommend using the 64-bit version, especially if you need to convert very large models.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.