24/7 Customer Service (800) 927-7671

Learn ShapeJS: Image Poppers

by • March 21, 2016 • No Comments

For our initially foray into learning ShapeJS, we are going to begin
by via 2D Images. Millions of folks may already
understand
how to use 2D image tools, so if we can leverage those skills for 3D modeling we are in business.

The advantages I see in via 2D source material are:

  • Millions of 2D capable artists compared to much fewer 3D artists
  • Easy to source free material on the internet
  • Easy to purchase high-quality assets
  • Sketching interfaces are fun and intuitive for many

Image Popping

The basic concept is to use a 2D image as the source to turn it into 3D data. You specify the physical dimensions of the base and the 2D image is extruded into the Z way. The image of the letter R on the left turn it intos the 3D object on the right. This is the basics of what I call Image Popping. You pop the image up into the third dimension.

Image to 3D

The deplete docs for the Image3D datasource are on the market here: See Image3D.

So now that
you can use imagery in ShapeJS let’s ponder
of what can be created
with it. The initially object that
came to mind for me was a pendant. By only adding a loop or a bail/connector to the top of a 2D image, you have a swift and effortless 3D jewelry project. This is the basis for the Pendant Creator, one of our 2D-friendly create apps, that is a talked about initially creator for those new to 3D printing. You can use our pendant creator here: Pendant Creator


My First Pendant

That project went well, so I decided to try my hand at a thing dear to my heart: books! This time I conned a friend into sketching a few crystal-like patterns and utilized
that
as the source material to pop up a bookmark.

Transformations

That was fun, but my friends rightly pointed out that
I may have done that
project with a laser cutter. Now I’m sad. Looks like I require
to up my producing game. The upcoming level of image popping is to alter the image in a few way. All ShapeJS datasources can take a Transform via the setTransform() method. A alter is a function that maps an object to a new adaptation of itself and can significantly alter a datasource. A easy alter, called a Translation, is utilized
to move and object around in space, i.e. to move an object one unit to the right, you say new Translation (1,0,0). Other alters can rotate and scale (alter dimensions of) an object. A additional high end alter that
I commonly use is the RingWrap alter that wraps the image around a cylinder. This allows for us to easily use an image to turn it into a ring or bracelet. We utilized
this in our Ring Popper Creator. Here are a few printed examples we’ve done via that
technique. The top is the printed object and the bottom is the source image utilized
.

It is quite easy to manufacture. You only load an image and and so use the RingWrap alteration to bend it around a cylinder the dimensions of your finger. This technique is excellent for producing rings. If you want to manufacture a bracelet out of it and so you can want to use another alter called Scale. A scale alter alters the dimensions of an object in any way. For your wrist you can notice that
it’s quite
a squashed shape not an precise
cylinder. This example takes the ring example and redimensionss it for your wrist with a slight scale to manufacture it fit better: Bracelet Popper

Tiling and Symmetry

Our final example for image popping can takes us into a few informative
places. Perhaps you’ve seen the rad art done by Arabic artists. Think of Alhambra, or additional modern, the work of Escher. These all use tiling and symmetry patterns to manufacture complicated and pleasing patterns. Personally I’m not a excellent 2D artist so I find it complex to fill an entire canvas with informative
creates. One way to get around this is to take a easy element and and so alter it around your space. ShapeJS has an extensive set of assist for tiling and symmetry. A later blog post can go into much excellenter depth but I wanted to end this post with an example that
I hope inspires you. Working with a single image we can tile that
around a sphere. This is called an Icosahedral Symmetry and it looks like this:

Icosahedral Reflections
By Tomruen at en.wikipedia

The lower corner of your image is reflected around the sphere. You get 120 copies of your image rotated into various orientations. This manufactures for a few quite
rad patterns of easy images. Here is an example I created
into a tea light:

Tealight

You can try out this example here: Tealight.js

Working with this same technique we can in addition
manufacture a thing like a candy dish. The dish is created
by keeping the lower quarter of the sphere and and so a base is introduced to manufacture it stable.

Soap Dish

You can try out the Candy Dish example here: Candy Dish Example

2D Images manufacture a powerful begin
ing point for creating 3D models. ShapeJS manufactures it effortless to use images as the source material for a few fun projects. Hopefully this blog post has inspired you to turn it into your own objects via the Image3D datasource and a few easy alterations. If you have inquiries
of ShapeJS please join us in the forums: ShapeJS Forum


Latest posts
test

by admin • March 5, 2017