Questions tagged [isometric]

A method for visually representing three-dimensional objects in two dimensions, often referring to isometric tiles.

366 questions
181
votes
6 answers

Drawing Isometric game worlds

What is the correct way to draw isometric tiles in a 2D game? I've read references (such as this one) that suggest the tiles be rendered in a way that will zig-zag each column in the 2D array representation of the map. I imagine that they should be…
Benny Hallett
  • 7,327
  • 4
  • 26
  • 26
38
votes
7 answers

mouse position to isometric tile including height

Struggeling translating the position of the mouse to the location of the tiles in my grid. When it's all flat, the math looks like this: this.position.x = Math.floor(((pos.y - 240) / 24) + ((pos.x - 320) / 48)); this.position.y = Math.floor(((pos.y…
Jorg
  • 7,219
  • 3
  • 44
  • 65
32
votes
4 answers

Most efficient way to save tile data of an isometric game

I'm working on an isometric game for fast browsers that support , which is great fun. To save information of each tile, I use a two-dimensional array which contains numbers representing tile IDs, like: var level = [[1, 1, 1, 2, 1, 0], …
Harmen
  • 22,092
  • 4
  • 54
  • 76
18
votes
1 answer

2D isometric - SFML - Right formulas, wrong coordinate range

I don't work with tiles but cubes drawn with sf::Vertex. Each cubes have 6 sides with 4 points each. So i just have to cubes[numCube].sides()[numSide].... to select a side. I create cubes layer.cpp : for(int J = 0; J < mapSize; J++) { …
Madz
  • 287
  • 3
  • 14
18
votes
4 answers

true isometric projection with opengl

Is there a simple way to have isometric projection? I mean the true isometric projection, not the general orthogonal projection. (Isometric projection happens only when projections of unit X, Y and Z vectors are equally long and angles between them…
someone
  • 381
  • 3
  • 5
  • 14
17
votes
6 answers

Efficiently getting isometric grid positions within a bounding box

I have an isometric grid system who's coordinates start from [0,0] in the left hand corner of the grid (The corner shown in the above image) with x incrementing towards the bottom of the image and y incrementing towards the top (so [0, height]…
Tristan
  • 3,845
  • 5
  • 35
  • 58
14
votes
1 answer

sf::Texture applied in a wrong way

In my 2D isometric engine, I have the following classes: maps(variable)/layers(variable)/cubes(variable)/sides(6)/points(4)/coordinates(3) Each sides contains 4 points(1 point = 1 coordinate(x, y, z)). Each cubes contains 6 sides. I can create a…
Madz
  • 287
  • 3
  • 14
11
votes
0 answers

Object pooling (isometric tiling) on phaser and camera positioning

I am new to Phaser and I am currently having a hard time in generating a tilemap with the aid of the phaser isometric plugin. I am also having trouble with understanding some of the concepts related with the Phaser world, game, and the camera which…
Kunis
  • 576
  • 7
  • 24
11
votes
2 answers

Whats the best way to implement and design walls in an isometric tile game?

The game I am thinking about where this solution would be applied, is a game where tiles can be changed, sort of an editor. You are going to need to make graphics for 2 types of walls: west facing and east facing or north/west. There seems to be 2…
user1035910
  • 125
  • 1
  • 8
10
votes
2 answers

Is phaser capable of large multiplayer games?

Newbie here. I am working with phaser, specifically with the isometric plugin. I would like to know if it is possible to create games in phaser similar to agar.io, in terms of handling real-time multiple connections, generating a enormous map with…
Kunis
  • 576
  • 7
  • 24
10
votes
4 answers

How to calculate the index of the tile underneath the mouse in an isometric world taking into account tile elevation

I have a tile-based isometric world and I can calculate which tile is underneath specific (mouse) coordinates by using the following calculations: function isoTo2D(pt:Point):Point{ var tempPt:Point = new Point(0, 0); tempPt.x = (2 * pt.y + pt.x)…
user1094553
  • 786
  • 5
  • 15
10
votes
1 answer

Improving performance of click detection on a staggered column isometric grid

I am working on an isometric game engine and have already created an algorithm for pixel perfect click detection. Visit the project and notice that click detection is able to detect which edge of the tile was clicked. It is also checks the y-index…
Max
  • 2,710
  • 1
  • 23
  • 34
9
votes
1 answer

How to render with isometric perspective?

Possible Duplicate: true isometric projection with opengl I want to render using the same isometric rendering which Blender3d uses, how can i do this ? Is it possible with just a call to glMultMatrix() ? I tried googling but couldnt find any…
Rookie
  • 3,753
  • 5
  • 33
  • 33
9
votes
2 answers

Passages through isometric tiles

Above are four images of a character walking along the ground from the bottom right towards the upper left. You can see that the drawing order isn't correct in the third panel. There doesn't seem to be a "correct order" here. For example if…
Bemmu
  • 17,849
  • 16
  • 76
  • 93
9
votes
2 answers

Isometric tiles drawing and picking - JAVA

I'm trying to draw isometric tiles in Java and implement a tile picking system using the mouse cursor. I draw the tiles using these math formulas I found and adapted to my tile textures which you can find below. Tiles are 64x64px but flat tiles are…
RomainImberti
  • 121
  • 1
  • 11
1
2 3
24 25