Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
3
Question by h4wkeye · Apr 21, 2011 at 11:11 AM · meshgenerate

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

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Cyclops · Apr 21, 2011 at 12:55 PM 13
Share

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.

6 Replies

· Add your reply
  • Sort: 
avatar image
20
Best Answer

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.

Comment
Add comment · Show 3 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Joshua · Apr 21, 2011 at 01:17 PM 1
Share

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

avatar image Joshua · Apr 21, 2011 at 01:32 PM 1
Share

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.

avatar image Mortennobel · Apr 21, 2011 at 01:53 PM 0
Share

Thanks - the image is now updated.

avatar image
3

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.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

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.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

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.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

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.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
  • 1
  • 2
  • ›

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

1 Person is following this question.

avatar image

Related Questions

Generate and extrude a mesh 2 Answers

Generating mesh - performance issues? 5 Answers

Create faces between vertices on a procedurally genererated map 2 Answers

Applying Tileable Texture to Imported Mesh 1 Answer

creating a mesh and generating it's specific uvs 2 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges