Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
FieldDoc
23
Years of Service
User Offline
Joined: 30th May 2003
Location: London, UK
Posted: 23rd Sep 2003 15:57 Edited at: 23rd Sep 2003 15:57
Hi,

I am planning on making a turn-based strategy game. It was going to be in 2d (isometric) but I have realised that the frame rates are too poor. I am therefore trying to make the same game but using a matrix as the map and manipulating the camera to make it look like its isometric.

I have been messing around with some code for a few hours now and I am stuck. All I want to do is create a simple wireframe matrix and rotate the camera so it points at the matrix to give it an isometric appearance. I seem to have managed this but the problem comes when I move the camera. I need it so that when yo press the left and right keys the camera scrolls left and right but keeps the perspective. I am finding it even more difficult to scroll the map up and down as the game either zooms through the matrix or pitches up and you can no longer see the matrix!

I hope this has made some sense, could anyone help me out a little? Click below for a screenshot of my isometric map editor I made using the paste image command for an idea of the perspective I am trying to achieve.

http://www.basementfactory.com/isome/images/screenshots/isome_4.jpg

Codger
23
Years of Service
User Offline
Joined: 23rd Nov 2002
Location:
Posted: 23rd Sep 2003 17:30
Take a look at my camera control function in "Code Snippets" it should be easy to modigy the movement to maintain isometric perspective. Maintain a constant height and do not allow camera to pan.

System
PIII 650 MZ H.P. Pavillion
394 Mem GeForce 4 400MX
FieldDoc
23
Years of Service
User Offline
Joined: 30th May 2003
Location: London, UK
Posted: 23rd Sep 2003 18:15
Thanks Codger, nice little function there. I think I have worked it out for myself though. Like you said, just have to keep a constant height and not let the camera pan

This is what I came up with:



Login to post a reply

Server time is: 2026-07-25 21:25:51
Your offset time is: 2026-07-25 21:25:51