Jump to content
  • Advertisement

Archived

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

Mark Sheeky

Alternative Perspective Transforms For 3D Isometrix

This topic is 5730 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

I''m thinking of doing another isometric game. My first was a DrectDraw 5 thing but this time I want to go 3D. My first idea was to use untransformed polygons in diamond shaps to build the blocks. This is fine for cubes and such, I could even use the depth buffer to do-auto masking but placing 3D characters there or any weird shaped objects might be tricky. Then I thought I could use a true 3D transform but change the pespective matrix to remove the perspective and have an isometric display. Ie: thing in the distance are not smaller any more. I''ve seen it done but don''t know the matrix for this kind of transform. Anyone know it? It seems the logical way to represent isometric maps using 3D hardware. Mark mark@cornutopia.co.uk http://www.cornutopia.co.uk

Share this post


Link to post
Share on other sites
Advertisement
What I do for my isometric games in opengl/d3d:
- Set the projection matrix to a typical isometric matrix like this:

[ cosA | 0 | sinA | 0 ]
[ sinB*sinA | cosB | -sinB*cosA | 0 ]
[ 0 | 0 | 0 | 0 ]
[ 0 | 0 | 0 | 1 ]

with A = 45deg and B=35.26deg

Share this post


Link to post
Share on other sites
And if you don''T want Perspective, you
have to use a orthogonal Projection. Described in the SDK.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!