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
1
Question by GTHaxor · Dec 07, 2011 at 06:37 PM · 2dgrid2d spritestilesisometric

Isometric Tile Grid with 2D Sprite Assets

Hello all. I've seen a handful of people asking about the same topic but without any conclusive answers. I want to create an isometric view using 2D art assets. The assets would have a diamond base with whatever art going above the base (hopefully you can visualize what I mean).

What is the best way to go about setting such a game up? The tiles need to be able to be dynamically generated (through scripts) and some tiles need to fall in front of others to form an isometric perspective. Any thoughts?

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

3 Replies

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

Answer by cj_coimbra · Dec 07, 2011 at 07:43 PM

You will find precious information on isometric/hexagon tile grids here http://www.gamedev.net/page/resources/_/technical/game-programming/isometric-n-hexagonal-maps-part-i-r747

This one is also good: http://stackoverflow.com/questions/892811/drawing-isometric-game-worlds

It´s mostly a matter of coding and algorithms. For the rest just use GUI.DrawTexture(...) method to draw your tiles. You will probably need a 2d array of tiles and iterate thru them changing the drawing rect position according to the algorithms presented on the links I provided. The very indexes of the array will tell you the coeficients of the drawing rect position, and the content of a given array[x,y] will probably tell you what tile to draw among other stuff.

Comment
Add comment · Show 1 · 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 GTHaxor · Dec 07, 2011 at 08:00 PM 0
Share

cj.coimbra - thank you for this. This confirms that I was on the right path as you can see in my screenshot (http://blog.lunarenigma.com/wp-content/uploads/2011/12/isometric_test.png). The section about rotation as well as all the other content will prove to be very useful for this problem.

$$anonymous$$y plan is to have "tile" game objects (which you can already see in the ss) and then attach art textures to them as children. This way, I can position the "tile" easily through a simple loop and the 2D sprites will float above them. I'll definitely have to do some research on GUI.DrawTexture(...) though since I've never use it. Thank you for your help!

EDIT: That second post is great!

avatar image
0

Answer by Tasarran · Dec 07, 2011 at 07:48 PM

You might want to re-think the possibility of going to full 3-d, with an isometric camera...

I was working on a hex based game for a while and trying to do it sprite-based. You end up doing a lot of jumping through hoops to convert back and forth between real coordinates, game tile coordinates, pixel coordinates...

Since I went 3D, things are a lot happier in my house :)

Comment
Add comment · Show 1 · 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 GTHaxor · Dec 07, 2011 at 07:55 PM 0
Share

I can see where using 2D sprites in an isometric perspective would cause such problems. The coding I can do, it's the art that I can't do. I have an artist but his specialty is in 2D art - so I wanted to explore this option a little more before converting to full 3D. I will keep your comment in my thoughts though as it comes time to make a final decision.

avatar image
0

Answer by Pranav-Paharia · Mar 06, 2014 at 05:38 AM

I have a issue regarding the graphics quality. In my project I also have the requirements of isometric camera but I have a constraint of graphics quality, which has to be awesome. So any advise which types of assets will be best for it 2d or 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

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

6 People are following this question.

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

Related Questions

Texture grid displayed oddly when width =/= height 1 Answer

Get position from Isometric TileMap 1 Answer

How do I set up my sprites/skeletons to correctly interact with isometric sorting layers? 2 Answers

Can isometric tiles be rotated? 0 Answers

Is tilemap renderer sorting done by camera y position? 0 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