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
0
Question by Goose2460 · Aug 04, 2012 at 07:30 PM · meshbeginnergeometrycylinder

Smooth out cylinder?

Is there a way to smooth out a cylinder? I'm just looking at the mesh filter, and it has 88 vertices, is there a way to change the geometry so it has more faces and appears smoother? Thanks

Comment
Add comment
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

4 Replies

· Add your reply
  • Sort: 
avatar image
6

Answer by doukasd · Dec 11, 2012 at 05:33 AM

Or you can use a procedural cylinder.

I have created a module for Unity3D in C# that does exactly this and allows you to tweak the parameters. You should be able to easily convert to C or C++ as the geometry calculation is the same everywhere. Watch the video to see what it's about and download the code from GitHub. Feel free to contribute!

[1]: http://en.wikipedia.org/wiki/Triangle_strip

Comment
Add comment · Show 8 · 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 AlucardJay · Dec 11, 2012 at 06:22 AM 0
Share

Upvote for excellent work and resource, many thanks =]

avatar image mrpmorris · Nov 05, 2016 at 09:37 AM 0
Share

Thanks for sharing!

avatar image mrpmorris · Nov 05, 2016 at 09:48 AM 0
Share

Do you realise that nobody can use this source because you have an "all rights reserved" copyright in the header of your source files?

avatar image doukasd · Nov 06, 2016 at 11:07 PM 0
Share

@mrpmorris no I had not realised, please use that code in any way you want :)

avatar image mrpmorris doukasd · Nov 07, 2016 at 07:25 AM 0
Share

Thanks. I found that in Unity5 the generated meshes wouldn't work for colliders. Try creating a new game object (not via your menu option) and then adding a procedural cylinder script to it. Even with the changes in the pull request I submitted on github (which update the mesh) the object will still fall through a plane when it has a Rigidbody attached.

avatar image Eric5h5 mrpmorris · Nov 07, 2016 at 08:07 AM 0
Share

That's just because mesh colliders don't collide with other mesh colliders, never have. If you want to use a mesh collider for a moving object, it must be marked as a convex collider.

@doukasd: it's not that simple; if you want it to be public domain, you need to remove the copyright notice stating all rights reserved and replace it with a waiver that explicitly puts the code in the public domain.

Show more comments
avatar image 1Riptide · Dec 07, 2017 at 01:42 AM 0
Share
  • Thank you!

avatar image
1

Answer by ScroodgeM · Aug 04, 2012 at 07:41 PM

no, you can't change primirives in Unity, so you should:

  • make a cylinder in some 3d modelling software nd import it

  • or generate cylinder programmaticaly (mesh generating)

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
1

Answer by Eric5h5 · Aug 04, 2012 at 07:42 PM

That's something you do in a 3D modeling app.

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 aenas1 · Oct 01, 2016 at 04:24 PM

You can actually make a material from a circular img and select a shader which will make the rough edges transparent.

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

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

15 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

A node in a childnode? 1 Answer

Beginner Help with Unity 1 Answer

Enabling and Disabling Nav Mesh Agent? 0 Answers

Can unity handle this city (it's multiple meshes)? 1 Answer

Problems importing curves from blender into Unity 3d 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