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.

DarkBASIC Professional Discussion / Isometric Camera Clipping Problem

Author
Message
Cloggy
19
Years of Service
User Offline
Joined: 31st Oct 2004
Location: Rayleigh, Essex
Posted: 12th Nov 2004 07:00
I am looking at making an isometric viewpoint game using objects rather than sprites but I'm getting a clipping problem as show in the attached screen print.

here is the code



Is there anyway to correct this? Ive tried various thing without any success.

Any suggestions would be gratefully received.

Cheers,
Cloggy

Attachments

Login to view attachments
Nicholas Thompson
19
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 12th Nov 2004 07:11
Are you sure they are lining up correctly?

Cloggy
19
Years of Service
User Offline
Joined: 31st Oct 2004
Location: Rayleigh, Essex
Posted: 12th Nov 2004 07:17
This code works.



I've changed the following

position camera -50,50,-50 and SetIsometric(40,1,100000)

I've also move the object closer together so they overlap.

The problem is I'm attempting to get a correct isometric projection and this has some perspective.

Cheers,

Cloggy
Nicholas Thompson
19
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 12th Nov 2004 08:07
Why are you trying to do isometric in true 3D? I thought the idea of isometric was it was fake 3D..

Cloggy
19
Years of Service
User Offline
Joined: 31st Oct 2004
Location: Rayleigh, Essex
Posted: 12th Nov 2004 08:12 Edited at: 12th Nov 2004 08:12
I've found the answer. It appears that the problem was due to the rather large camera distance.I had to reduce to the size of the objects and move the camera much closer.



I wanted to make a game that resembled Zaxxon. It made sense to me to use 3d objects rather than sprites or images as this would hopefully be faster and give me more flexibilty (changing view angles and such).

Cheers,

Cloggy
Nicholas Thompson
19
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 12th Nov 2004 09:59
Cool.. Just wondering. I was hoping that would be your answer actually.. I like the effect where a game is made to look fake 3D or even 2D, then you do something that makes it into 3D, like camera effect, etc.

Mattman
20
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 12th Nov 2004 10:02
2d in darkbasic IS 3d, so it doesnt really make a difference...

Song of the whenever i feel like updating it....
Man in a Dream, by Stew
Nicholas Thompson
19
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 12th Nov 2004 10:17 Edited at: 12th Nov 2004 10:17
Not true...

A game made entirely of sprites is 2D as you cannot set depth (well you can layer)..

And as for your arguement of "IS 3d".. Nothing on a PC is truely 3D unless you have some impressive hardware like a Holodeck

Mattman
20
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 12th Nov 2004 10:19
No, the way DBP makes sprites is by making textured planes, theres no way around it...

Song of the whenever i feel like updating it....
Man in a Dress, by Stew
Nicholas Thompson
19
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 12th Nov 2004 10:25 Edited at: 12th Nov 2004 10:26
Yes, but they're locked in depth. The only way you get layering is by altering the drawing order.

[EDIT] If you remove depth you remove 1 Dimension.. 3-1 = 2.. 2D..

Login to post a reply

Server time is: 2024-04-20 15:21:42
Your offset time is: 2024-04-20 15:21:42