Archived

This topic is now archived and is closed to further replies.

Giving Tiles an extra dimension

This topic is 5623 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Would it be possible to give isometric tiles an extra Z coordinate in order to get somewhere near 3D Terrain? If it ist possible, how can those tiles be stored during the running time of the programme? PS: I am talking about using OpenGL or DX Graphics for tiling... Im Anfang war die Tat... Faust

Share this post


Link to post
Share on other sites
you could define your map as a 3d array and draw all you tiles furthest to closest an bottem to top, and any tiles with a z higher than zero would be moved up z*some-offset. Not sure if that would work :b Klaus

Share this post


Link to post
Share on other sites
Use a tile struct/class that looks something like this:


  
class CIsoTile {
public:
float _vertZ[4];
char _texture;
...
};


In the _vertZ array you store each corner of the tiles Z coordinate.

Share this post


Link to post
Share on other sites