- Home /
Creating a Pyramid-thingy?
Hey everyone, i'm using unity free and excuse me if this is a dumb question(i bet it is, lol) i know i can spawn cubes, cylinders, spheres and capsules but how about like a pyramid?
i can't add any triangular objects and that's bad D:
thanks..
Biohazard
Re-tagged, re-edited, and not voting to close. Despite some of the flames (sorry about those), this is a good Question. It's about how to generate an object shape that isn't part of Unity's default set of objects - and there is a good Answer already.
Answer by Mortennobel · Apr 21, 2011 at 11:21 AM
I have written a blog on how to create a tetrahedron in unity:
http://blog.nobel-joergensen.com/2010/12/25/procedural-generated-mesh-in-unity/
A tetrahedron is not quite a pyramid, but close, and it should be very easy to modify my code to a pyramid as well.
Thanks for that tutorial! It's an aspect of program$$anonymous$$g I'm shamefully unfamiliar with and will now play with for at least a few hours. Have you gotten anything similar? :D
Right, there's a little mistake in the triangle faces table that had me confused for several $$anonymous$$utes xD the line 3-1-4 should say 3-2-4. You do it correctly in your script though, which is zero based. Almost had me derailed there. ^.^ kudos on the tutorial though.
Answer by BarkShark · May 03, 2011 at 05:05 PM
You can use a free 3D modeling program for example blender, you can creating very cool 3d objects with that program.
Answer by create3dgames · May 09, 2011 at 08:29 PM
Wings 3d is another great 3d modelling program and it is very simple. Exports to 3ds and obj, which means exports to Unity. Create a pyramid in Wings 3d easily and then import into Unity 3d.
Answer by Macdude2 · May 10, 2011 at 12:21 AM
You can also get maya and if you are a student, for free. Maya is really good, they have tons of primitives (basic shapes like cubes, pyramids, cylinders) that you can model with just one click. Then you can save that file and drag it into unity. Blender is also a good option, but requires a bit more time to get just the basic shapes. Modeling with code I would not recommend because for most purposes it is much faster to use a 3d model from a program, then to create exactly what you are looking for from code.
Answer by Ashkan_gc · May 13, 2011 at 07:26 AM
there are a few primitive shapes available in unity but it doesen't mean that you can not import shapes and models to it.
use any DCC (digital content creation) tool like max, maya, blender and c4d to create any shape/model you want and import it into unity.
there is a harder but more fun way that is creating it procedurally using unity's mesh API.