Fire breathing dragon

This is my first attempt at creating a model using AI. I followed instructions set out by Kyle at LearnYourCNC.

I carved this in foam and sprayed it grey. There remains a steep learning curve so that I can get better results from the AI, but I’m happy enough with this as my first attempt.

7 Likes

You’ll have to go more into detail here.

Really cool!

1 Like

Fantastic! We definitely need more detail - so far I have played a bit with using AI to generate images for the laser, but nothing for 3D - would love to know how you’re doing it.

1 Like

@NeilFerreri @elbarsal I’ll do my best over the next couple of days to write something up. I really just followed some online directions.

5 Likes

Super, looking forward to it.

1 Like

@NeilFerreri @elbarsal Here is the process that I followed to create the model.

A couple of points;

  1. The prompt is key. Just keep adding conditions until you get the results you are looking for

  2. You need a graphics program of some sort to invert the height map.

  3. I use VCarvePro. I am assuming other CAD/CAM applications can do something similar, but I have no experience with them.

All that said, here is what I did

  1. Open http://copilot.microsoft.com. This is a free application, but you need a free Microsoft account.

  2. Enter your prompt. For the dragon, I used:
    “A greyscale image of a fire breathing dragon with the highest possible contrast, representing a relief model for CNC routing. The image must feature extremely balanced lighting to make details visible across the model, with very clear, sharp contours and textures.”

The prompt is the key. Just keep playing until you get results that you like.

  1. You will be given 4 choices. Choose one and download it.

  2. Open Marigold Depth Estimation - a Hugging Face Space by toshas. This is going to convert the image to a greyscale height map.

  3. Import your image and click to convert. Save the first choice – 16bit. This will be a .png file.

  4. Bring this file into your graphics program. I used Photoshop. The sole purpose of this is to invert the height map. As it is, the dark areas are high, and the light areas are low. We need them inverted.

  5. Open http://www.imagetostl.com. Import the .png file, convert it to .stl and save it.

  6. Open VCarvePro, create a single-sided job and import the .stl file.

  7. Create your 3D toolpaths.

4 Likes

Excellent, thanks @gwilki. I have been looking at trying to extract depth from an existing image - I’m curious to see how that Marigold tool does at it.

@elbarsal As you likely know, there are many other converters out there. I’m going to keep looking and trying things out.

Try “Tiled Zoedepthmap” in GitHub.
You can use image files such as png and jpg. Generates great deep greyscale depth map images.

Also, with Micro$haft Co Pilot, I’ve go the best results starting the query with “ light wood bas relief ,“ and then ending with “high detail, high contrast deep” for the best results

@Lappa thanks much, Peter. I’ll give both of your suggestions a try.

here’s a link to a Youtube video that give a good explanation on using Tiled zoedepthmap

https://youtu.be/H6GvUdONkFI?si=pI6_q2exdUeMh-Lw

@Lappa tks, Peter. I’ll look at it this evening.

I use Vectric Desktop and after multiple different methods to replicate the Copilot Bas reliefs, using Vectric Desktop, this was the best method I found.

  1. Create Bas Relief using Co pilot with the above terms.
  2. Turn the bas relief image to a STL using “heighmapt2stl” (link below). I tried multiple programs and this one seemed to work the best with Vectric.
    a) Open heightmap2stl and choose image and choose output path.
    b) Set " base height" to 2 and model height to between 6 and 8 (this will give you a relief height of between 4 and 6mm). This can be adjusted later in Vectric but I haven’t found the need - yet.
    c) Select “create”
  3. In vectric, open the stl as a “File, Import component/ 3D model” and then do what you would normally do with a 3D model.

This is a relief I got from Copilot

This is the result from Vectric Desktop without any special touchups ie. just upload, set toolpaths, end result.

I found no need to use deepgreyscale depth maps for these images - infact they lost detail.

link to heightmap2stl

https://sourceforge.net/projects/heightmap2stl/

2 Likes