Recommended Posts

Hi there,  I've been working on some code to allow of the conversion of textured 3D models into coloured ldr files (with brick optimisation - so it creates the ldr model with 10 different types of brick).  I've put my python code and instructions on how to use it on GitHub,  you can get all the details from my blog...

https://cultofthebrick.blogspot.com/2019...ithub.html

Hope you like it
VideoGameGiants.jpg

Share this post


Link to post
Share on other sites

Cool. I like it. Even so personally I would like lxf support as I am not using ldraw. 

Share this post


Link to post
Share on other sites

Your creation seems a very interesting 3D mosaic software.

What do you think to edit the first post of this topic and create a presentation page, so it can be added to the section index?
Has the software a name?

Share this post


Link to post
Share on other sites

Hi Calabar - I'll see if I can do what you suggest about creating a presentation page.  My python script is really part of a "3D conversion pipeline" that relies on a number of other people's freely available software.  My code is a "missing link" to convert from coloured voxels (for which there are quite a few editing tools freely available) to .ldr files; as part of a larger pipeline.  You can download the proposed pipeline here...https://github.com/pennyforge/ColouredVoxels2LDR/blob/master/User Guide - Pipeline to convert coloured 3D model files in Blender to coloured Lego LDraw models .pdf

Currently it's more of a process than a piece of software so I'm not quite sure I'm ready to give it a name yet!

Share this post


Link to post
Share on other sites

I recently went the other way arround transforming .ldr into .obj to render it. For my understanding you have to scale your voxels a little bit cause I think your video game characters are looking a bit high compared to their width. But I guess you are at a good starting point to fulfil that missing link :)

Share this post


Link to post
Share on other sites

Hi Ragni,

Yes, you are correct - Voxels are based on cubes (which have 3 axes of symetry) where as a 1x1 Lego brick is rectangular (with only 2 axes of symetry) - I think you need to scale the original 3D model in the height axis by about 0.8 (before you convert the 3D model to voxels) to allow for this difference - and as you point out I hadn't done this with my original models so when they are converted to .ldrs they look slightly out of proportion.

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.