LDraw.org Discussion Forums

Full Version: Using LDCad flexible parts with Studio
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
(2018-11-03, 19:44)Philippe Hurbain Wrote: [ -> ]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!

Perhaps I should have used your template, Philo…I used the regular LDCad template, but just changing all of the different segments to the appropriate part. (I wanted to use the LDCad template so the path caps would have the proper grouping and snap info.)

Unfortunately, I get some visible gaps in the render—does your template account for this? or is there some setting I can tweak?

[attachment=5030]
(2020-03-29, 4:56)N. W. Perry Wrote: [ -> ]Unfortunately, I get some visible gaps in the render—does your template account for this? or is there some setting I can tweak?
Basically for LQ flex parts, the trick is to increase overlap between segments. To do that, lower "Segment size" below 100%. If the visual length of the segment must be preserved (ends of flex axle), increase "Base size" proportionnally.
I tweaked my flex axle template (http://www.brickshelf.com/gallery/Philo/...studio.ldr) because there were gaps in the ends of axles. I changed Segment size to 80% and Base size to 125%, now it looks good:
[Image: flexaxle.png]
(2020-03-29, 11:11)Philippe Hurbain Wrote: [ -> ]Basically for LQ flex parts, the trick is to increase overlap between segments. To do that, lower "Segment size" below 100%. If the visual length of the segment must be preserved (ends of flex axle), increase "Base size" proportionnally.
I tweaked my flex axle template (http://www.brickshelf.com/gallery/Philo/...studio.ldr) because there were gaps in the ends of axles. I changed Segment size to 80% and Base size to 125%, now it looks good:

OK, that's better indeed. (I still have some minuscule seams visible, but I can tell they're due to primitive substitution, not segment overlap, since they're not at the joints between segments.) However, I thought we had to set all basesizes to 100%, because Studio isn't able to scale segments; why does it work in this case?
[attachment=5031]
Also…does it look like I have a little gap between the subparts of the path cap (at the "hilt" of the axle end)? I don't think that's just a shadow. Perhaps I'll try the Philo version with the added 77.dat segments…
(2020-03-29, 18:20)N. W. Perry Wrote: [ -> ]However, I thought we had to set all basesizes to 100%, because Studio isn't able to scale segments; why does it work in this case?
Question is not "in this case", it's "now"... this has been corrected some time ago. Still a bit buggy, faked seams are also scaled in renders. This prevents to use large scaling factors.
(2020-03-29, 18:33)Philippe Hurbain Wrote: [ -> ]Question is not "in this case", it's "now"... this has been corrected some time ago. Still a bit buggy, faked seams are also scaled in renders. This prevents to use large scaling factors.

Ah, good—I never realized that had been fixed! So it's still a good idea to change the base size from, say, 400% to 100% (and maxmerge to 1, to avoid super-long straight segments)?

Also, I just figured out that for the flex axle, you don't actually have to change the donor part at all, because all of the LDCad donor parts are just references to regular library parts. You can just select "static references", and then either check "inline donor references", or leave it unchecked and just copy the LDCad donor files into Studio's custom parts directory.
(2020-03-30, 0:42)N. W. Perry Wrote: [ -> ]Ah, good—I never realized that had been fixed! So it's still a good idea to change the base size from, say, 400% to 100% (and maxmerge to 1, to avoid super-long straight segments)?
The idea is to keep scaling factor "low enough" since fake seam sizes are scaled by the same amount. For a plausible gap of 0.25 ldu, a 400% scaling gives a 1 ldu gap, something easily accounted for by segment overlaps. And hopefully this will be corrected. One day. Or another.  Angel

Quote:Also, I just figured out that for the flex axle, you don't actually have to change the donor part at all, because all of the LDCad donor parts are just references to regular library parts. You can just select "static references", and then either check "inline donor references", or leave it unchecked and just copy the LDCad donor files into Studio's custom parts directory.
Yes, that's a possibility. The benefit of using LDraw segments is that they are already in Studio library.
One final (hopefully) update: I investigated the gap in the end piece; see below for an image of the problem. The top axle uses LDCad's default flex axle template; note the space at the "hilt" of the cap part on the lower end. (Segment sizes have been adjusted at the lower end of the piece, but not the upper, hence the visible seams there.) The bottom axle shows the problem corrected after making my own adjustments—read on…
[attachment=5034]

I tried using Philo's flex axle template, and it does indeed fix the problem. This template uses additional segments (77.dat) in the "handle" portion of the axle so that it, too, is flexible (it isn't in the LDCad version). It seems that the adjustment of segment sizes in this section creates enough overlap to eliminate the gap—which I bet comes from the same issue of the rendering software scaling the fake seams, because LDCad's version of the handle is a stud3a primitive scaled to a factor of 5. (Also, Philo's 77.dat segments aren't scaled, so any fake seams between them would likewise not be scaled.)

However, I wanted to keep using LDCad's version of the end piece, because I actually want the handle to remain rigid (along with retaining the snap info and path cap auto-grouping). So I made my own version of the LDCad donor part (ldcFlexAxleCap.dat), with some extra overlap hardcoded in by increasing the scaling factor for the stud3a primitive, with an appropriate Y-offset to compensate.

I then made my own version of the LDCad flex axle template, substituting my new cap donor part, as well as adjusting the base and segment sizes for the flexible segments, and setting them to static donor references. Finally, I copied all of LDCad's donor files into Studio's custom parts folder and rendered the file, resulting in the bottom part in the picture, with all of the issues corrected.  Big Grin

Here is my version of the flex axle template adapted for rendering in Studio; use this one if you want the "handle" portion to stay rigid. (If you want it to be flexible, use Philo's template.) There are two files provided: use the second one if you have copied the LDCad donor files into Studio's custom parts folder; otherwise, use the first one. Place the file into LDCad's "templates->path" directory.
[attachment=5035]
[attachment=5036]

To use either of these files, you need my modified path cap donor part; place it in LDCad's "donors" folder.
[attachment=5037]
(2020-03-30, 20:08)N. W. Perry Wrote: [ -> ]This template uses additional segments (77.dat) in the "handle" portion of the axle so that it, too, is flexible (it isn't in the LDCad version).
It used to be, but I changed it in 1.6b, I think, in order to make it snap.
(2020-03-30, 21:59)Roland Melkert Wrote: [ -> ]It used to be, but I changed it in 1.6b, I think, in order to make it snap.

Having the snap info definitely helps, but also I think you need the PATH_CAP meta in order to predictably place the ends (particularly at the non-origin end).
(2020-03-30, 21:59)Roland Melkert Wrote: [ -> ]It used to be, but I changed it in 1.6b, I think, in order to make it snap.

These days the flex axles are being used very often with 11090, which only holds about half the length of the tip. So I made a version of the template that still snaps in to this part, but only to a depth of 10 LDU, and then is flexible after that like the real thing. It's attached below, along with the custom end cap donor you need.
[attachment=5485]
[attachment=5486]

For some reason that I don't fully understand, I had to change the edge deletion setting for the ldcFlexAxleEndC (and only at one end). None of the other donors needed any adjustments.
Pages: 1 2 3