• 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 timetopat · Mar 21, 2011 at 08:18 PM · blenderhexagon

Making a 3d hex map, a little confused

hello, I am trying to make a hex globe much like hexplanet but instead in unity. I had some ideas for implementation but none of them so far seemed viable.

My first idea was to make a sphere and inscribe an icosphere model from blender inside of it. I could not make a mesh collision as large as needed for the globe and still it would not scale properly to work.

How would you implement adding nodes to a 3d sphere to simulate a hex map? Or how would you make a hex map in unity?

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

2 Replies

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

Answer by DaveA · Mar 21, 2011 at 09:34 PM

If you want a sphere covered by a hex map, technically, that won't work, as true hex maps won't wrap a sphere. You'd need to put in some pentagons (or quads) to make it bend around. For this, I recommend waiting a couple days an look for my new 'Polyhedron' art pack, coming to an Asset Store near you, I got a bunch of that stuff in there.

If you mean just a very large hex map, perhaps that wraps around at the edges, that's something else entirely. I'd go with something like a 2D square tile map (look around this forum for such questions), but use 6 rather than 4 possible directions to move to.

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
3

Answer by Bampf · Mar 21, 2011 at 10:08 PM

The hexplanet screenshot does look cool.

The author has posted source code and a whitepaper. Have you looked at them?

Someone described it as follows: "They use an icosahedron (a 12 sided die) and subdivide several times to create a sphere, made up of hexagons and 12 pentagons. The algorithm is quite simple, and you can do it in a couple of hours."

If you can understand what he did well enough to pick through the code, then you could pull the parts you need into Unity. Then you could generate a mesh dynamically using the vertices/faces that his algorithm generates.

Alternatively, you can try to get someone else to do it for you, or maybe someone will build a hexplanet extension for Blender, using Blender's Python API. I did a quick search, it does not appear that anyone has done a blender add-on yet. I did find one person in the Unity forums talking about maybe using hexplanet in their Unity game, but it's very possible that it was you. :-)

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.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

No one has followed this question yet.

Related Questions

The name 'Joystick' does not denote a valid type ('not found') 2 Answers

Animation Problems 1 Answer

BOO in Unity vs. Python in Blender 0 Answers

Some animations aren't playing in Unity 3.4.2 2 Answers

Animation On Mouse Click 1 Answer


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