TobyLobster / ImportLDraw

A Blender plug-in for importing LDraw file format Lego models and parts.
GNU General Public License v2.0
273 stars 47 forks source link

Scale question #80

Closed bjornsyse closed 1 year ago

bjornsyse commented 1 year ago

Hi

When I import ldraw files exported from stud.io, I do not get them into Blender in the correct scale. I've tried with this 3005 part which according to Wikipedia would have dimension of 7.8mm in width. However it comes into Blender as 20 units (meter in my case). Import scale setting is set to 1.0.

Is there some type of inch/mm factor at work herer? 20 / 2.54 is 7.87, which is quite close to 7.8 at least.

https://en.wikipedia.org/wiki/File:Lego_dimensions.svg

image

image

TobyLobster commented 1 year ago

You are right that the default scaling results in large bricks. This is really just for historical reasons with the importer. It would be disruptive to change that default now I think. The default scale factor is 0.01, but if you use 0.0039 this should import the parts at the correct size.

bjornsyse commented 1 year ago

Hi

Thanks for looking into it. Seems odd to leave it at such an arbitrary default scale factor but I suppose you have your reasons. Maybe the readme could be updated to inform about the 0.0039 natural constant :)

Scale is quite important if one is working with 3D printing, but even for rendering/animation engines nowadays it's crucial to get it correct in order for lens values or simulation gravity dependent things to work right.

TobyLobster commented 1 year ago

Yeah, I am in two minds about it. The downside to fixing it is that people that have already imported models will have new imports at a different scale, which will be unexpected. It does kinda feel right to fix it though, so maybe I will.

bjornsyse commented 1 year ago

I understand. Well I suppose the read me would have to mention the scale factory anyhow. Perhaps you could add something to the interface in blender palette giving you the option to apply “legacy scale” and then the scale field would change to 0.0039

TobyLobster commented 1 year ago

Fixed in latest release. Now a scale factor of 1 is the default which means: import at real life scale.