Make Salesforce Astro-kun papercraft with Blender

23

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.:grinning:

At first

Salesforce has a lot of cute characters these days. Chief among them is this Astro-kun.

image.pngTrailblazing - Salesforce.com

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.

What was done

When you make such a 3D model,

image.png

Such an expanded diagram is automatically generated,

image.png

When printed and assembled, it looks like this:

image.png

I think it was quite cute.

In addition, the micro:bit with the power board and thin speaker is sized to fit snugly in the head, so you can also make it speak.

image.png

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

papercraft download

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).

Download the exploded diagram

Download the Blender file

image.png

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.

I used Elecom's papercraft paper, but if you don't put a micro:bit in it, you can't make it with copy paper.

recipe

Qiita article, so technical? Let's write a story.

modelling

I have written a tutorial with copy and paste tech, so please see there for details.

Make a micro:bit papercraft with Blender

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)astro_face.png astro_body.png
  • 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 Shift+S. and then with Shift+D (copy) → 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 S (scale) →Z (axis to be aligned) →0.
  • 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.
  • Finally Ctrl+J we 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.

How to make a paper craft expansion drawing

Assuming that the model is already completed, we will output the paper craft expansion drawing.

Enabling the Export Paper Model

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].

image.png

If it is not in the add-on list, please add it by following the steps below.

  1. Save the file from the Raw button on the github io_export_paper_model.py above.
  2. Select the downloaded io_export_paper_model.py with the [Install add-on from file] button at the bottom of the Add-ons tab and install it.

Attach a seam

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.

  1. Set it to [Edit Mode] and then [Side Selection].
  2. Select multiple sides you want to cut with Shift + 右クリック.
  3. 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.

image.png

Generate Exploded Diagram

Click the Export Paper Model button.

image.png

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

image.png

Let's briefly explain the options.

name explanation
format PDF or SVGIn the case of PDF, for some reason, the folded lines also become solid lines, so if you have a tool that can print SVG properly, SVG is recommended.
Scale Magnification. If you make the model at actual size, it is OK to leave it as 1:1.0.
Create Tabs Whether or not to put glue on. Of course, it's easier to put it on, but you should turn it off when making all-in-the-back papercraft that doesn't use glue.
Create Numbers When assembled, the same numbers are displayed on the sides that are connected.Since it does not output very cleanly as shown below, I thought it would be better to turn it off.image.png
texture No Texture: Since there is no texture, the whole thing is pure white. After outputting, I think that it can be used when painting with another tool.From Materials: Prints the material assigned to each face.Full Render: Outputs in the same state as when rendered.I'm not sure about the others.
Resolution (DPI) Resolution.It is often said that 300 DPI is good for printing.
Colors and Styles You can set the color and style of each line (such as solid / dashed line), text color, etc., but I think there is no problem by default. And when it is a PDF, it does not become a dashed line.

at last

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!

Looking for a web engineer who wants to be a programmer forever! Both product development and SI can be done! At home / Shortened hours / Almost no overtime! | co-meeting co-meeting

Share:
23
Atsuhiko Kimura
Author by

Atsuhiko Kimura

株式会社co-meeetingのCEO。最近はSalesforce上で動くアプリを作ってます。コピペテックはじめました😀

Updated on December 17, 2018