One of my favorite parts of game development is prototyping new game ideas. My game engine of choice is Unity. Unity is not only great for “full” games, it’s great for prototypes too. When I build prototypes in Unity, I typically create empty game objects as the parent object for my player, enemies, obstacles, etc. Using Unity’s basic shapes (cubes, spheres, etc.) attached to those objects works great for something simple to see moving around the screen.
Yesterday I started a new prototype third person shooter. Before long, I had little cubes moving around the screen shooting each other. Let’s face it though – simple cubes are pretty boring. To spice it up, I searched online for a 3d cube model with rounded corners.
It surprised me that there weren’t piles of rounded cube models all over the Internet. I found one I could buy for $5. I found a few tutorials on how to make them in Maya and Blender. No 3d models though. All I wanted to do was download a 3d model and drop it in my game. Where are the 3d models!?
I made one. Here it is. This zip contains the 3d model in several different polygon counts.
To get this out in the wild, I’m sharing this under the Creative Commons Attribution-ShareAlike license. For the attribution part of the license, if you release a game (or other work) using the rounded cube please leave a comment sharing the name of your project (a link is great too). No other attribution is required.
For those interested in how I made it, I used Cheetah3d and Balancer Lite. Cheetah is a 3d modeling package for OS X. It’s available on the Mac App Store. Balancer is a simple way to reduce the number of polygons in a model. Less is more, so I hear.
In Cheetah3d, here were my steps:
- Create a cube
- Objects/Make editable
- Use Tools/Polygon/Ring Cut to make the cube look like this:
- Use Tools/Polygon/Catmull-Clark Subdive twice to make the cube look like this:
That created a model with 1728 faces. There’s really no need for that many. You can probably easily pick out at least 36 “squares” in each side of the cube that aren’t needed. Some 3d modeling packages have built-in functions to reduce polygons. Cheetah3d doesn’t. So, I fired up Balancer Lite (free!) and built a couple reduced polygon versions of the rounded cube to test it out.
With a Balancer “tolerance” of 1, the faces drop down to 554. With a tolerance of 3, it turned the model into 320 faces. At 5, the model only had 226 faces.
Once the models were in Unity, I couldn’t tell the difference between the 554 face round cube and the 1728 face one. At 320 and 226 faces, the corners looked a little less round when dynamic lights moved around the scene.
So, go. Make games. Spice up your prototypes with rounded cubes!
EDIT: As pointed out in a comment below, it looks like Balancer adds some errors for texture alignment. Check out the comment & screenshot below for more info.
Pingback: Learn How to make an Orange Cube-Shape Fruit in Photoshop | Photoshop Tutorial
Hi
Thanks for posting this. When I try to apply a material to your mesh (the 554 face version), there is substantial warping of the source image, which I expect is due to the poly reduction by Balancer not respecting the texture coordinates. Here is a screenshot. Note that in the original texture the tiles are all perfectly square and rectilinear.
Is it possible you could include an obj file with the original model (no poly-culling) in the zip?
I would also recommend trying MeshLab’s “Quadric Edge Collapse Decimation with texture” filter for doing poly reduction with no texture warping.
Many thanks
Barney
Good catch! I’ve updated the zip file with an obj of the original model. It looks like Balancer is causing the issue. Here’s an image showing the full poly cube on the left and the 554 face version.
Also, sorry for the delay. Things have been too busy to keep up with blog posts because of the launch of our new game Unpossible.
Hi, just wanted to say that I used this cube in my game. It’s called “Why, Bob?” and it’s an endless runner available on the Windows Phone Store.
Thanks for the cube! I’m using it in a specialty dice app called “Descent Tower”, which will hopefully make it onto the play store sometime soon.
Thanks! Saved me some time. I’ll be using the mesh in a puzzle game I’m designing called “Tilemetry”. 🙂
Cheers.
Thanks for sharing! I mentioned/used your rounded cube in a photoshop tutorial: https://www.creative-aktuell.de/de/blog-details/photoshop-sky-produktpaket-gestalten.html
Thank you!
Jesus, cant thank you enough! i tried making one in blender, yet it has SO freaking many polygons, its like even 10 000+ each. im going to use this as a replacement for when you hit the ? block, like in mario. Yea, with mine performance dropped INSANELY after 4 of them.. from 80 FPS to 30.. thaaanks!!
Hello! I am using your Rounded Cube OBJ for an intro for my channel. Thank you so much for creating something like this for free.
Thanks!!!
Thanks! In fact, I cannot find such a simple model in any market.
Thanks!