Welcome Guest!

Did you know you that by registering, you can gain access to new special powers? You’ll be able to reply to Topics, create your own Topics, talk in our Chatbox, message members, manage your profile, access extra content and much more! Best of all, this message & ads will vanish!

polymaker

Custom Bricks for LDD

18 posts in this topic

I just wanted to share my progress on creating custom bricks for LDD.

As you can see by the following images, I've succeeded at what many thought impossible: importing custom models into LDD. 

I have cracked the structure of the .g file format but I still have problems with a section that has to do with the outlines/borders of the bricks.

I am now working on an editor to create the xml that goes with the model which specifies the collision and connection information.

 

6xubEAS.png?1

QgYbIES.png?1

12 people like this

Share this post


Link to post
Share on other sites

Your images aren't showing up.

Share this post


Link to post
Share on other sites

Sorry, I forgot to set the pictures public in google drive...>.<

Share this post


Link to post
Share on other sites

POLYMAKER YOU ARE MY NEW BEST FRIEND NOW.
Sorry Larry.

 

Edit: Wait, nevermind. You don't use per-pixel shaders or AA in LDD so we can't be friends.

Alright Larry, you're still my best friend now again!

4 people like this

Share this post


Link to post
Share on other sites

Now that I can actually see the images...

 

 

LDD is missing a LOT of pieces simply because TLG doesn't seem to want to let you use discontinued bricks and elements. This is definitely going to help to fill in the gap.

Share this post


Link to post
Share on other sites

The last part I was working on got added in the last LDD update...-.- So now I'm working on this one:

YA6OJRj.png?1

 

The models are almost finished (I convert LDraw files to obj but they have a lot of gaps and need cleaning-up).

For the collisions and connections I haven't started yet, I'm still working on my software to help create the xml file and I don't feel like doing this one by hand.

4 people like this

Share this post


Link to post
Share on other sites

Just a quick update, aside from creating custom bricks, I'm also looking on modding LDD in general.

Here is my latest achievement :

6vDHB6u.png?1

 

I am able to mod the LDD brick palette. I can add (or 'unhide') missing parts, like the 9-11 linear actuator (only visible on Mindstorm or Extended).

For the loose parts like the ones in the screenshot, it is a little more complicated. LDD cannot load a part that is referenced by an assembly. (pre-assembled bricks, like minifigs and shock absorber) Just adding a line for the part in the palette list does nothing and if you set verbose=1 in the preferences.ini you will see in the output that LDD fails to load the part.

The workaround? simple, create an assembly for each part with only the part inside.

 

My software for modding LDD is doing well and will soon have an alpha release. You can follow my progress on https://github.com/Polymaker/ldd-modder

4 people like this

Share this post


Link to post
Share on other sites

Question - have you worked out how to make pieces that support decals?

Share this post


Link to post
Share on other sites
On 6/18/2016 at 5:48 PM, Terrev said:

Question - have you worked out how to make pieces that support decals?

Yes I have, and it is relatively simple. You may already know that the 3D data for the bricks are contained in the ".g" files, and if you have extracted the db.lif, you may have noticed this pattern: "XYZ.g", "XYZ.g1", "XYZ.g2". The main mesh data is in the ".g" file, and each ".gX" contains a textured surface that can have a decal. Now you are surely thinking (like me) about making existing brick "decal-able". That should not be very difficult, but there is one thing left that I must work out. There is one section of data in the LDD brick files that I know has to do with the outlines on the brick. I fiddled with it and I noticed changes in the outline, but I have not yet figured how it works. I know however how the outline is linked to the triangles and I have a general idea on how to split the data so I think it should be doable. 

1 person likes this

Share this post


Link to post
Share on other sites

You may already know that the 3D data for the bricks are contained in the ".g" files

nope

if you have extracted the db.lif

nope

you may have noticed this pattern: "XYZ.g", "XYZ.g1", "XYZ.g2".

nope

 Now you are surely thinking (like me) about making existing brick "decal-able"

and nope

 


l405G.jpg

Share this post


Link to post
Share on other sites

 

4 hours ago, aidenpons said:
Quote

You may already know that the 3D data for the bricks are contained in the ".g" files ...

if you have extracted the db.lif ...

nope  l405G.jpg

 

Well I had theses assumptions because it is here on this forum that I first discovered that it was possible to extract the db.lif and that someone successfully extracted the 3D data from a ".g" file (The post in question). And that what's actually started my quest to mod LDD.  :)

Share this post


Link to post
Share on other sites

Do you plan on sharing these bricks? LDD is being discontinued, so we need our help to mod LDD with the newer parts. I already know how to fit the bricks into palettes, but all I'd need are the brick .xml's and .g files. Do you think you could manage?

Share this post


Link to post
Share on other sites

It's  interesting. But how do I find that program in the 1st picture calls "Frm BrickEdit" and How to open the program you uploaded in github?:)

Share this post


Link to post
Share on other sites
On ‎18‎/‎12‎/‎2016 at 11:29 PM, Monkeyjay2003 said:

Do you plan on sharing these bricks? LDD is being discontinued, so we need our help to mod LDD with the newer parts. I already know how to fit the bricks into palettes, but all I'd need are the brick .xml's and .g files. Do you think you could manage?

So what you're saying is they are not bringing in any more bricks? Aw, I wanted to see some bricks that date back to the Late 90's or Early 2000's. You know the ones I mean, like those Pull Back Motors:

s-l225.jpg

41857c01.png

2658932296_968b7c846f.jpg

 

I also noticed they haven't got that Technic Pull Back Motor from 2013

 

motor.jpg

 

Are there any other bricks I might have missed out on?

Share this post


Link to post
Share on other sites

It seems they changed their mind on discontinuing LDD as some more patches have happened after the supposed final one. There's still plenty of old bricks that are unlikely to be added officially though (like those pull-back motors).

Share this post


Link to post
Share on other sites

Are you referring to the Old Pull Backs from 2002?

 

Or that Technic Pull Back from 2013?

Share this post


Link to post
Share on other sites

I think you MUST add Bionicle's promotional Mctoran's parts.

Share this post


Link to post
Share on other sites

Oh my gosh.

 

You're modding a program from my childhood.

 

This is amazing.

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