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.

Dark GDK / simple 3d question

Author
Message
haliop
User Banned
Posted: 24th Jun 2009 03:07
im having a problem figuring out , what is the camera and rotation
for a top down shooter, as far as i see it
is that the camera needs to be way above player like for say 300 Y
and should be rotated towards the player ..
so its X or Y or Z rotate????????????? hmm
yeah that was a simple question , so i'll just debug it 3 times to see ....

im stupid.
nadav.
haliop
User Banned
Posted: 24th Jun 2009 03:54
ok i have found it
only that its the Z axis for the height
and 180 X rotation

i think thats good , it looks good. is it?

cause i know
that Y is the height in most cases...
and Z is depth..

so does DarkGdk draw its 3D axis from a point of view where the Z is the height instead of the Y ?

wierd.. or maybe i'm just way to high.
kklouzal
15
Years of Service
User Offline
Joined: 15th May 2009
Location: Arizona
Posted: 24th Jun 2009 10:24
Quote: "@haliop - or maybe i'm just way to high."


o.O I hope you meant that your camera was way too high.

& no, Y is "height"

haliop
User Banned
Posted: 24th Jun 2009 11:48
if y is the height
then , what is a good code for a top down shooter?


dbPositionCamera(0,300,0);
dbRotateCamera(?,?,?) where do i rotate?

my current setting is
dbPositionCamera(0,0,300);
dbRotateCamera(180,0,0);

and it feels good , but yes the height here displayed as the Z value and not the Y value.
heyufool1
15
Years of Service
User Offline
Joined: 14th Feb 2009
Location: My quiet place
Posted: 24th Jun 2009 22:16 Edited at: 24th Jun 2009 22:16
If you want the camera to point straight at the player then try this:



Replace OBJECT with the object you wish the camera to follow. If you want to know what all the arguments are then look it up in the Dark GDK Documentation.

Login to post a reply

Server time is: 2024-11-25 08:34:33
Your offset time is: 2024-11-25 08:34:33