tutorial on how to create an object like the C4d door?
-
Does anyone know where I can find a tutorial teaching what is needed to create an object like the door in the asset browser that has parts that do not change their width when resized?
I am looking to make some shaker-style cabinets and resize the doors for a design but do not want to change the trim width (see image), basically a door that I can scale to any size but the trim does not widen, only lengthens, so if I have a trim around the door that is 3" wide, no matter what size I scale the door to, the trim should stay 3" wide. the C4d door does this but is very complex, I would like to make a simplified version of the C4d door but can not find any tutorials on how this is done.
Any help would be appreciated! Thanks
-
Hi industry-departure,
The simplest way is sketched here:
https://www.dropbox.com/s/ziyg2ny47qrmf3y/CV4_2023_drs_23_MOpf_01.c4d.zip?dl=0Two parameters are given the frame and the fill [element]. With these two values (or more for other sizes for different fill elements).
The key question is, what is the initial value, the frame, the fill, or the total size? From there, certain math starts. The result of the math is then applied to the points of a specific mesh.
This follows a logic whereby often the X and Y values are independent and repetitive but, in the proper sequence, result in a door with a frame.
This might sound cryptic initially, but check the example, and it will be more apparent.Let me know if there is any question; I'm happy to look into it.
(Scaling means that the Frame needs to be inverse scale, and the door needs to be defined with a final size and determine the frames from there.)
All the best
-
Thank you for this!
-
You're very welcome, industry-departure.
Have a nice weekend
-
I had someone on another forum make this for me, it seems to work a bit better on my system, wanted to share it in case someone else needs this.
-
Thanks for your reply, Mark.
The example that you shared produces doubled polygons, which might be a problem at one point during rendering.
Rotate the camera, and it is easily seen (flickering ).All the best
-
P.S.: This is the simplest and fastest version so far
https://www.dropbox.com/s/644f6d66j4ve3wz/CV4_2023_drs_23_MOww_01.c4d.zip?dl=0
With a middle part, as in you image, if you just need the front, not to open them separately
https://www.dropbox.com/s/bckkjouh0jeo81s/CV4_2023_drs_23_MOww_11.c4d.zip?dl=0Cheers
-
P.S.S.: If you need just a single frame, not a combination, perhaps that works.
https://www.dropbox.com/s/rw6trb1ab5m218g/CV4_2023_drs_23_MOww_21.c4d.zip?dl=0
Scale the "plane-object" in Model Mode.If the frame needs to be in a constant thickness, set a keyframe on the Extrude> Offset. It will scale for a moment but then snap back to the keyframe value. If a keyframe is used, the Null>Expression can be deleted.
-
… one more, this time more simple modeling tools with a bit of XPresso.
https://www.dropbox.com/s/yzcvptum4vb88qu/CV4_2023_drs_23_MOww_31.c4d.zip?dl=0
I hope the provided methods will support your work.
-
Thank you for this! the last one is very simple and works great, even though it is simple it is beyond me how you created it!
-
Hi Mark,
Thanks for the kind feedback.
The core idea is a Spline (Path) with another Spline (Profile). Then a Sweep is used.
The Profile Spline would extend the shape as it runs with its middle along the Path, so I used the Transform Element Capsule to get the axis to the "outer" point. Half of the width of the profile. In this way, the Path is also the final size. One of my targets here was to define the size without guessing.
With an Extrude, the Path creates the Fill of the door. I used a Bevel here, so it doesn't show up on the side (nearly no offset)
The XPresso handles the "half profile/axis" process and the User Data Mixer. Most of the parts (Formula) are done to allow the profile to shrink when the door is much smaller than the frame. This is more for comfort than needed.
My best wishes