Make Salesforce Astro-kun papercraft with Blender
Hello. This is Kimura from co-meeting.
This article is the 17th day of the Salesforce Platform Advent Calendar 2018. This year, I decided to run for the story.
Salesforce has a lot of cute characters these days. Chief among them is this Astro-kun.
This time, I would like to talk about making a 3D model of this astro-kun with the 3D modeling tool Blender and making a Pepacraft expansion diagram from there.
I'll leave the modeling method lightly, but as a technical tip for this article, I will introduce how to use the Export-Paper-Model-from-Blender add-on, which was mainly used to generate papercraft development diagrams.
Not related to Salesforce? Well, sometimes it's nice to do something like this, isn't it?
Seriously, I've written two last month, so if you like, please go for it.
- Developing ISV Packages Using SFDX-Falcon - Qiita
- ISV Package Development with Salesforce DX + Vue.js + TypeScript - Qiita
When you make such a 3D model,
Such an expanded diagram is automatically generated,
When printed and assembled, it looks like this:
I think it was quite cute.
This is a video from the article "Making Salesforce Astro-kun Papercraft with Blender." (I post it on Twitter because I want to put a video on Qiita.) Click here for the article ↓ https://t.co/XXezAEzuPA pic.twitter.com/NuuiHH81Zg— Atsuhiko Kimura (@atskimura) Dec. 17, 2018
I'll leave the auto-generated SVG above neatly rearranged. It has only been rearranged, but nothing has been done with the exploded drawing itself. I'll also publish the Blender file (made in v2.79b).
If you like, please print it out and make it. Please note that if you do not print at 100% when printing, the micro:bit will not enter.
Qiita article, so technical? Let's write a story.
I have written a tutorial with copy and paste tech, so please see there for details.
However, this model is more complicated, such as the parts with folded limbs are only here, so I will bullet points in this article including that area.
- For example, if you want to merge planes and circles, you need to concatenate them with [Remove Duplicate Vertices] or [Bridge of Side Loops] instead of joining. Otherwise, the parts will be separated.
- Clamshell parts such as hands and feet are copied, pivot (rotation axis) is specified at the connection, and after rotating slightly, they are connected by [Delete duplicate vertices].
- The single color is colored with the usual material, and the face and stomach are attached with the following image with UV mapping. (Click to open larger image)
- The holes at the connection of the parts are actually inserted so that the location can be seen, and the knife tool is used to make a surface of a nice size.
- Symmetrical parts such as ears/hands/feet can be easily copied by pivoting to the origin in
.and then with
Ctrl+M X(mirror flipping to X-axisymity).
- Only the tail uses a Bézier curve, and the others are written as a combination/deformation of a plane and a circle.
- If you operate it in various ways, the vertices of the mesh that are intended to be flat may be misaligned. At that time, the Z coordinates are aligned with
Z(axis to be aligned) →
- I first printed my hand on one side, and then the thumb of one hand pointed in the opposite direction. It's because you can't set the inside out of the plane. I couldn't help but make it two-sided.
Ctrl+Jwe need to consolidate them into one object (Object Consolidation). Since you may want to separate later, it is better to avoid contact between the parts so that it is easy to separate.
- I made it in actual size, but it was too small and difficult to make, so it may be easier to make it at about 100 times and specify the magnification when outputting the expanded figure.
- If there are duplicate vertices or it is too complicated, it will become an error and it will not be output, so make a papercraft! I think it is better to think and model.
Assuming that the model is already completed, we will output the paper craft expansion drawing.
Use the Blender add-on addam/Export-Paper-Model-from-Blender.
Open [File] > [User Settings], check [Import-Export: Export Paper Model] on the [Add-ons] tab, and click [Save User Settings].
If it is not in the add-on list, please add it by following the steps below.
- Save the file from the Raw button on the github io_export_paper_model.py above.
- Select the downloaded
io_export_paper_model.pywith the [Install add-on from file] button at the bottom of the Add-ons tab and install it.
Sets where the three-dimensional cut should be when expanded. In addition, even if you do not put it on, it will automatically cut it into a good feeling.
- Set it to [Edit Mode] and then [Side Selection].
- Select multiple sides you want to cut with
Shift + 右クリック.
- Open the Paper Model in the toolbox and click "Add Seam". With this, the place you want to cut as follows is displayed as a red line.
Click the Export Paper Model button.
With the following settings, click [Export Paper Model] with an appropriate file name to output the expanded diagram as an SVG file.
- Format: SVG (or PDF)
- Create Numbers: Uncheck
- Texture: From Materials
- Resolution (DPI): 300
Let's briefly explain the options.
If you like, please try to make it! Have fun with your Salesforce life next year!
Finally a light publicity.
Co-meeting Co., Ltd., which can write such articles during business hours, is looking for engineers. Please feel free to apply!