Using LDCad flexible parts with Studio


Using LDCad flexible parts with Studio
#1
Studio is a nice LEGO CAD tool, but current version (2.0.1(39)) lacks flexible parts. Fortunately, with some tweaks (and a few caveats), it is possible to use LDCad flexible parts in Studio.

If you created your model with Studio, you need to
  • export it as LDraw
  • open the exported model with LDCad
  • add the flex parts using the guidelines that follow.
  • reload the LDraw model in Studio.
If, like me, you are a die-hard LDCad user, you can still use these tips to make use of the great photorealistic rendering engine included in Studio, or its fast and user friendly instruction generator. I find that Studio editor is not nearly as convenient, flexible and powerful as LDCad, but I'm probably biased Wink

How it works?
LDCad uses specialized meta-commands to describe the flexible parts but also create a generic fallback LDraw representation. It is this fallback which is visible in Studio if two conditions are met:
  • the fallback is made with segment parts present in the LDraw library of Studio
  • The segment parts are not scaled: Studio is not able to scale parts.
Important note:
This is NOT a LDCad flexible parts tutorial! For more details, see LDCad documentation, video tutorials and technical documentation.
Reply
1 - Directly compatible flexible parts
#2
[Image: easy-flex.jpg]
This is the easy case: LDCad fallback representation uses only unscaled LDraw parts. LDCAd model can then simply be loaded in Studio.
This is the case for all chains (Technic and System), System flexible hose and Technic ribbed hose. For this one, you must use the LQ template version (Technic Ribbed Hose LQ). HQ version doesn't use segment parts but a single mesh that can be visually better but doesn't import easily in Studio.
Files: LDraw, Studio
Reply
2 - Flexible parts with scaled segments
#3
[Image: unscaledflex.jpg]

Here LDCad fallback representation uses scaled LDraw segments, so you must tweak flexible parts to force LDCad to use unscaled segments. Otherwise flex parts looks like dashed lines in Studio, like this:
[Image: scaledflex.jpg]

This is the case for all Power Functions and Powered Up elements, as well as pneumatic hoses. You must always use the LQ template version (eg. Power Functions L Motor (LQ), Pneumatic Hose LQ). HQ versions don't use segment parts but a single mesh that can be visually better but don't import easily in Studio.

How to unscale segments:
  • In LDCad nested mode, click on the flexible section of the part to select it, then right-click -> properties
  • Set Basesize=100%, Segment size = 50%, maxmerge = 1 as shown in this screen capture.
[Image: skin1.jpg]

Of course you can also create a Studio compatible LDCad template instead of edit each and every flex part in your model!

I strongly suggest not to edit regular LDCad template, but copy it and edit the template copy. LDCad templates are located in %appdata%\LDCad\templates\ subfolders (Windows).

Here is for example a Studio-compatible pneumatic hose template. To use it place it in the same folder as regular template, in %appdata%\LDCad\templates\path\

Files: LDraw, Studio
Reply
RE: 2 - Flexible parts with scaled segments
#4
Philo,

Could you please copy these information into a wiki tutorial?

w.o
LEGO ergo sum
Reply
3 - Flexible parts that need segment changes
#5
[Image: trickyflex.jpg]

This is the most complex situation: LDCad uses (scaled) segment parts that are not in LDraw library, so you have to find a suitable segment that is in library and modify flex part accordingly.

This is the case for strings, rubber belts, 9V and NXT/EV3 cables, Technic flexible axles and flex-system hoses.

How to change and unscale segments:
  • In LDCad nested mode, click on the flexible section of the part to select it, then right-click -> properties
  • Set Basesize=100%, Segment size = 50%, maxmerge = 1 as shown in this screen capture.
  • Change Donor placement type to Static references and Final scale to Segment merge only
  • Change the Part to the name of LDraw segment file.

[Image: skin2.jpg]

Suggested segment files:
  • 9V cable: 993.dat
  • NXT/EV3 cable: 932.dat
  • flex-system hose: 77.dat
  • round rubber band, strings: 4-4cyli.dat (result is a bit thin, but...)
  • square rubber band: box4o8a.dat
  • Body of Technic flex axle: axlehol8.dat. But you must also provide appropriate segments for the ends, so the best is to use this template!
Two other templates I made: NXT/EV3 cable, string with end studs.

 To use them, place them in the same folder as the matching regular templates, in %appdata%\LDCad\templates\path\

Files: LDraw, Studio

[Image: trickyflexrender.png]
Reply
« Next Oldest | Next Newest »



Forum Jump:


Users browsing this thread: 1 Guest(s)
Forum Jump:


Users browsing this thread: 1 Guest(s)