#### Archived

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

# 3D for ISO

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

## Recommended Posts

If you're making your own 3D rendering engine there's no reason you have to make it use a perspective projection. You could just as easily (actually more easily) make it use orthagonal projection.

##### Share on other sites
uh...orthogonal perspective?

##### Share on other sites
usually to show perspective you divide the x and y by the z coordinate. What you want is just to throw out the z so far away things are just as big as nearby things.

##### Share on other sites
Could someone show a formula for calculating a matrix for an orthogonal projection? I've looked everywhere and keep on coming up with map projections =) Thanks...

Sorry, typo.

##### Share on other sites
This post is in the Iso section but it also files under graphics programming so....

How is it possible to use 3D to render a isometric world correctly when perspective always messes things up (such worlds as Alpha Centauri and Railroad Tycoon 2)?

##### Share on other sites
From the OpenGL docs [with minor modifications]:

The orthogonal matrix corresponds to:

a 0 0 tx
0 b 0 ty
0 0 c tz
0 0 0 1

where

a = 2/( right - left )
b = 2/( top - bottom )
c = -2/( far - near )
tx = -(right+left)/(right-left)
ty = -(top+bottom)/(top-bottom)
tz = -(far+near)/(far-near)

Note: OpenGL uses the right hand convention and a column-major matrix format.

1. 1
Rutin
46
2. 2
3. 3
4. 4
5. 5
JoeJ
19

• 11
• 15
• 9
• 10
• 13
• ### Forum Statistics

• Total Topics
633004
• Total Posts
3009837
• ### Who's Online (See full list)

There are no registered users currently online

×