Close Show/hide page

Mesh Slicer v1.9 (Cube Steak Edition)

Sooner than expected (thanks no doubt to my first snow storm in two years giving me all the excuse I needed to stay in all day), this version covers bullet-point 2 of the previous post:

Adding extra faces to the cut-up meshes to make them closed shapes again would make the whole thing feel more “physical” and less abstract-graphics-demoey…

I’m using Adobe’s Kuler service to generate the color scheme, which I find quite exciting. Because it saves this particular demo from a world of red and black — which are basically the only colors I use when left to my own devices. (Press


to cycle through colors) Many thanks to Aden Forshaw for the AS3/Kuler example.

Finally worth noting is that the ‘physics’ have improved a little. I was previously using vertex count as a proxy for mass. Using the volume of the axis-aligned bounding box ends up being a better way of faking it.






10 Responses to “Mesh Slicer v1.9 (Cube Steak Edition)”

  1. circstar says:

    I was just cruising around reading various flash related posts and I came across this. Just wanted to say the mesh slicer is awesome. Very cool stuff, and it was a great idea to implement kuler (which I assume your accessing at runtime from an xml file on there site or something). Anyway, cool stuff keep it up.

  2. felix says:

    sweet! there must be a game in there somewhere…

  3. Well done, Lee.

    You didn´t post for a long time, so i visited your blog at random, an hey… a yummie ‘Cube Steak Edition’.

    Would love to see a ‘real textured’ example…

  4. Jodi says:

    That was really cool! Neat-o.

  5. Manuel Dahm says:

    Hi there,

    interesting indeed, I was thinking about an effect like this for a personal project…is this using MeshUtil or your own brew?

  6. Lee says:

    Manuel, this is home-brewed.

    You could use the MeshUtil class to slice the mesh. From there, the main task is closing the resulting ‘opening’ in the mesh with extra triangles…

  7. Manuel Dahm says:

    Neat. I’ll see if I can get my head around this :) Thanks for the inspiration.

  8. Peter Szwach says:

    Dear Lee. How can I download the source and the example?
    Your script is amazing!

  9. geoff says:

    felix is right – see “Cooking Mama” for the Wii. You could make a similar thing where you need to slice up food to prepare it to cook.

  10. mityok says:

    Hi thank you very much for you contribution!
    If it’s possible could you please post the source code for this amazing thing.

Leave a Reply