Java-Gaming.org
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
Featured games (78)
games approved by the League of Dukes
Games in Showcase (408)
games submitted by our members
Games in WIP (293)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Thoughts on 2D isometric perspective?  (Read 2980 times)
0 Members and 1 Guest are viewing this topic.
Offline Eli Delventhal
« League of Dukes »

JGO Kernel


Medals: 39
Projects: 12


Game Engineer


« Posted 2009-05-06 21:19:44 »

Hey guys.

I've got 2D isometric in a game, and I was just wondering peoples' thoughts on how they preferred to achieve it. Here's what I did:

1) Rotate 45 degrees.
2) Scale Y by tan(30) (creates 30/60/90 triangles in each grid space, ~0.57).

Doing the whole tan(30) thing doesn't really optimize much, it just uses a known triangle shape so that any subsequent calculations I can know the length of the hypotenuse etc. from the top of my head. As of now, that hasn't been useful at all. Tongue

I was looking at images at some past 2D isometric games, and one I found with clear grid spacing was Sim City 2000. In it, it looks like they do this:

1) Rotate 45 degrees.
2) Scale T by 1/2.

I discovered this by looking at a screenshot of the game, where a grid space is 32 pixels wide and 16 pixels tall.

A classic game I really enjoyed called Nethergate looks to have used 2/3 as the height scale. A more recent RPG I played, Eschalon, looks like it used 1/2.

The common theme is that people appear to have accomplished this pseudo-3D look is by rotating 45 degrees and then squishing everything vertically (or stretching everything horizontally, whichever you want to call it). My question and discussion topic to you all is this: what have you guys tried in order to achieve this effect? Have you used different scaling values? Do you do it some other way? Why do you think different people made varying choices for the height? The more it's squished, the more you can see on the screen at one time. Do you think that the game genre determines the squish amount, or do you think it's simply preference? The closer the squish ratio gets to 0, the more it looks like you're looking directly at a horizon level, and the closer it gets to 1, the closer you get to a straight-up bird's eye view.

Etc. etc.

See my work:
OTC Software
Online Mickelukas

JGO Ninja


Medals: 39
Projects: 2


Java guru wanabee


« Reply #1 - Posted 2009-05-06 22:08:21 »

I did it just like sim city apparently. rotate 45 degrees and squeeze it with 50%. I tried different values but I thought it ended up looking nicest like that.

Offline pjt33
« Reply #2 - Posted 2009-05-07 09:51:51 »

One factor affecting the scaling parameter is pixel art. I think that's probably the reason for a lot of games choosing 1/2.
Games published by our own members! Check 'em out!
Try the Free Demo of Revenge of the Titans
Offline SwampChicken

Senior Member


Medals: 1



« Reply #3 - Posted 2009-05-07 10:22:36 »

Thoughts on 2D isometric perspective?


.....It's my absolute favourite gaming platform.
 Grin
Offline oNyx

JGO Coder


Medals: 1


pixels! :x


« Reply #4 - Posted 2009-05-07 10:34:46 »

A good article:
http://www.compuphase.com/axometr.htm

Personally I think that iso stuff looks nice, but doesn't actually work that well in most games that use it.

弾幕 ☆ @mahonnaiseblog
Offline Eli Delventhal
« League of Dukes »

JGO Kernel


Medals: 39
Projects: 12


Game Engineer


« Reply #5 - Posted 2009-05-07 20:21:44 »

Brilliant link. Definitely does a great job of explaining the math of each perspective.

See my work:
OTC Software
Offline Wildern

Junior Member





« Reply #6 - Posted 2009-05-08 16:32:49 »

You may also find this site very useful.
http://reinerstileset.4players.de/englisch.html
Offline Eli Delventhal
« League of Dukes »

JGO Kernel


Medals: 39
Projects: 12


Game Engineer


« Reply #7 - Posted 2009-05-11 09:26:22 »

You may also find this site very useful.
http://reinerstileset.4players.de/englisch.html
Thanks, man.

See my work:
OTC Software
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Browse for soundtracks for your game!

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

The invasion has landed! On Mars! And you're there to beat 'em!
cubemaster21 (119 views)
2013-05-17 21:29:12

alaslipknot (126 views)
2013-05-16 21:24:48

gouessej (157 views)
2013-05-16 00:53:38

gouessej (147 views)
2013-05-16 00:17:58

theagentd (162 views)
2013-05-15 15:01:13

theagentd (147 views)
2013-05-15 15:00:54

StreetDoggy (191 views)
2013-05-14 15:56:26

kutucuk (215 views)
2013-05-12 17:10:36

kutucuk (214 views)
2013-05-12 15:36:09

UnluckyDevil (217 views)
2013-05-12 05:09:57
Complex number cookbook
by Roquen
2013-04-24 12:47:31

2D Dynamic Lighting
by Oskuro
2013-04-17 16:46:12

2D Dynamic Lighting
by Oskuro
2013-04-17 16:45:57

2D Dynamic Lighting
by Oskuro
2013-04-17 16:23:20

Noise (bandpassed white)
by Roquen
2013-04-05 17:36:01

Noise (bandpassed white)
by Roquen
2013-04-03 16:17:38

Java Data structures
by Roquen
2013-03-29 13:21:12

Topic Request
by kutucuk
2013-03-22 21:42:01
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!
Page created in 0.071 seconds with 20 queries.