Members of my household have used software to create and print a bust of someone we know. The profile was quite good, the face recognizable. That this tech is available for home use is mind-blowing to me. Today I’m going to explore some of that software!
I stopped at a site called 3DFlow. They have photogrammetry software for sale, but also a free version for personal use. Intrigued, I read some more. There was a tutorial, along with some notes for the bells-and-whistles paid version. I started looking over the tutorial, but quite frankly, well-presented as it was, my eyes started glazing over around ‘ point cloud’. This despite the gorgeous colors, relatively simple vocabulary and explanations, and frankly super cool name, “Zephyr”. I’ll try the tutorial again after I mess around with the software and get a feel for it. For now, I was happy enough to do the prep work.
I put a black cloth over some random prop on a lazy susan, then put the butterfly on top of that. For lighting, I used natural light from outside, plus the bright light from the ceiling lamp. Far from ideal, but you gotta work with what you got!
I took a bunch of pictures with my cellphone camera, taking multiple shots of the same face but from different heights before spinning the lazy susan a few inches. By doing this repeatedly, I soon had a carousel of images.
I sent all of these to my gmail in batches, created a folder on my desktop labeled ‘butterflies’, then unzipped each batch of images into the newly created folder. Sometimes I had duplicates, and frankly I am sure I missed a few pics too, but it was a real pain. Still.
I ended up downloading the software, then clicked some buttons. First, create a mesh, sparse points, dense points, 3d model generation, textured mesh generation… I wish I’d taken better notes. I think that’s right though.
After each choice, I would hit ‘run’ at the top, and things would happen. It made an ugly looking spatter of light spots, then a slightly more interesting one, then showed the model, then a better version. At least that’s how I remember it. It was only a few minutes ago but I was overwhelmed with excitement and my brain stopped working, I swear!
After all that, I did have my butterfly, mostly. It had thrown out a lot of my pictures, or didn’t use them for whatever reason, likely because they had awful lighting and some were fractional, missing pieces. What remained created a mesh of a butterfly that looked trapped in stone because it had captured the cloth as well. Guess I should have tried that masking! Anyhow it still looks so cool, I’m going to print this, a butterfly escaping stone and concrete. I like it. It’s not quite what I was aiming for, but I got out what I put in.
Ah, but I still have to print it. It exported as a .obj, which I imported into Tinkercad. I added a nub on the bottom so that the piece wouldn’t fall right over, then exported it as an .stl file, which I was able to print on my Bambu. Behold my poor little butterfly. I can tell that if I had better pictures and used the masking this would have been much nicer. For all that, I was really happy that it was recognizably at least partially my butterfly candle. I’m pretty excited by this. Also that second image where the software is working on putting it all together is astounding, like looking-glass art.
I’m considering this experiment a partial success, and a definite learning experience.
I’m confident I can do better. Before taking an entire new set of images, I’m going to first try pruning those I have. I am making a second butterfly folder, naming it Better Butterfly, then moving only quality images to it. After that, I’m watching the tutorial :)
The folder is done now; only the best images survived the apocalypse. As for the tutorial, this time I looked up ‘point cloud’. I had some vague fuzzy notion that it was matching some points that my image made, kind of like facial recognition. In my head anyway, time to look up what it really meant!
I went on a search for reputable-looking sources that matched my criteria: easy to understand, had additional information for the curious, and appeared well-presented. There were quite a few, but Einstar’s site blew me away. I linked it below, but snipped part of the point cloud definition straight from the article: “A point cloud is measured 3D data made of separate points in 3D space”. I snipped it because the rest simply clarified what a point cloud isn’t.
After reading the article, my understanding is that the software is able to mark points at coordinates X, Y, and Z. Like vectors I think, though I’m running this by ChatGPT later to make sure I’m not sharing nonsense. So my image gets noted as all these different points, then it gets turned and new points get logged, rinse and repeat til lots of angles and points are logged. Then it tries to match the right points, like a dot-to-dot but in 3D. And there’s more!
Data points can log more than X Y Z coordinates, which was a complete surprise to me. I learned that color, intensity, surface normals, classification and timestamps are possible options. The article broke down what these meant and what applications might use them. It went into a deep dive that, while far out of scope for this simple project, is truly spectacular and interesting, including topics like how point cloud processing works, point cloud mistakes, and common point cloud formats.
Back to the topic at-hand however: learning to use the 3DFZephyr (3DFlow’s software) correctly while understanding what is happening.
Armed with a Better Butterfly images folder, I went to 3DF Zephyr Free, a page that has a tutorial for the photogrammetry software, the downloadable free version, and a FAQ. I downloaded the file from the US mirror, then clicked it to run. I chose ‘english’ for language, accepting the EULA, agreed to add a shortcut but not to make it my default 3D viewer, than installed it.
On opening, it offered a choice of joining a related Discord channel, 3D Flow Academy Group, or Steam, as in the gaming platform, which makes me realize that for all my hours of Skyrim I don’t know all that much about Steam. It also offers ‘Not now thank you’. It felt rather welcoming now that I wasn’t rushing through it.
I first selected ‘workflow’ from the menu, then ‘new project’. The wizard asked where it should get the photos, and I chose the folder icon, then put in the Better Butterfly folder. It allowed me to calibrate the camera on the photos (I didn’t), then offered me an opportunity to orient the cameras myself (I did not). It then had me hit ‘run’ if I was satisfied. I ran the sparse point cloud generator, and it oriented 7 out of 16 of my images.
I then went back to the ‘workflow’ tab, this time selecting ‘3d model generation’, then clicked the ‘general’ option for the next two settings, not changing a thing, before I hit ‘run’ again.
The software informed me that I had succeeded, and WOW the resulting image was so much better.
I went back to the workflow to make the textured mesh, again choosing ‘general’, the default, as an option, then ran it.
I tried to export this as Better Butterfly, and the software informed me that whitespace wasn’t allowed, and would I like to add an underscore? I have to say, these guys brought their best game. I find what’s happening to be pretty fast for me, it’s hard to digest, but there are resources and that’s really nice. I said yes to the software, and it added an underscore to my .obj file. Now I only need to import it to Tinkercad, then export it as an .stl file.
Simply pruning the images helped, though to really do a good job I needed better photos to choose from.
It didn’t looks as good once I imported it, though it was an improvement over the old butterfly. This time I preserved more of the wings, nearly all of it. I still didn’t try masking the images. Consequently the cloth background showed through, giving the piece incredible texture, and making my software have to work really hard to import it, as well as redraw during clean-up.
I found this to be exciting. I am sure I will do this again some time, and use what I learned next time too! That means taking lots of pictures, no slices or slivers, the background consistent each time. Keep the lazy susan but use a tripod for the camera, I’m thinking. A ring light would be great for even lighting. That said, I’m done for now! I hope this helps if you decide you want to make some 3D models of your own using this tech.