• Create Account

## 3D Tiles

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

5 replies to this topic

### #1Lance42  Members

339
Like
0Likes
Like

Posted 09 September 2012 - 11:19 PM

I have a 2D tile system which currently uses 96x96 pixel tiles. I wish to convert to using tiles that have a 3D appearance to them. Each 2D tile sprite is a 96x96 pixel texture placed on a square(two triangles really). I'm thinking to make this work well I'll need to turn the squares 45 degrees so they become diamonds, and tile them that way.

Am I thinking correctly here? Is there a better way?

Lance...

### #2menyo  Members

896
Like
1Likes
Like

Posted 10 September 2012 - 12:09 AM

Well if you want to have your game with a more dynamic camera feeling to it you should use this technique, but walls and objects should be made 3D if you want to pull that off.

If you want a 2D isometric game you need to draw your tiles in diamonds and just do the math to tile them and for mouse to tile picking.

http://www.gandraxa....tric_tiling.xml

Edited by menyo, 10 September 2012 - 12:09 AM.

Latest finished project Project

### #3Lance42  Members

339
Like
0Likes
Like

Posted 10 September 2012 - 12:42 AM

### #4Deft  Members

226
Like
0Likes
Like

Posted 10 September 2012 - 02:31 AM

Sorry if I'm not right, but how you want to construct diamond with using squares? Square can give you cube or parallelepiped. In any case of building diamond you need additional triangle(s) for figure to be done.
I suggest that you need to adopt your system to work with triangles and then build a diamond or any figure that you want.

Sorry if I misunderstood your question. With regards.

### #5Lance42  Members

339
Like
0Likes
Like

Posted 10 September 2012 - 02:42 AM

Sorry if I'm not right, but how you want to construct diamond with using squares? Square can give you cube or parallelepiped. In any case of building diamond you need additional triangle(s) for figure to be done.
I suggest that you need to adopt your system to work with triangles and then build a diamond or any figure that you want.

Sorry if I misunderstood your question. With regards.

My square is actually two triangles. See original post. =D

### #6menyo  Members

896
Like
0Likes
Like

Posted 10 September 2012 - 02:44 AM

He ment quads/triangles in the 3D sense to build a flat diamond to project his tiles on.

Since it's a flat diamond you only need 2 triangles. Take a look at the link, for a isometric view you use a rotated and vertically scaled square (a diamond). Then tile those images so they match up at the borders.

For more information you can google on isometric tiles/projection. It's really fun to make games like this though the math is a bit harder then a normal tile engine. It's also pretty hard to hide the flatness of the map. Diablo 2 did a very good job, they made the tiles at the bottom of the screen appear almost twice as large then the tiles on the top of the screen. That creates debt, i tried to mimic this effect with 2D but came to the conclusion that it was much easier to create a 3D engine for the map.

Latest finished project Project

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.