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 / Question About Positioning Objects.

Author
Message
2Beastmode4u
15
Years of Service
User Offline
Joined: 14th Feb 2011
Location: Loading...
Posted: 26th Mar 2011 14:27
Can someone please help me fully under stand how to position 3D and 2D objects. People just seem to know how to position. Help positioning cameras would be good to. Thanks.


The Modder... Unleashed,


God help me, Please.
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 26th Mar 2011 17:43
Are you asking about the 3D coordinate system? Or just how the POSITION OBJECT/POSITION CAMERA commands work. Or are you asking about scale? What?

2Beastmode4u
15
Years of Service
User Offline
Joined: 14th Feb 2011
Location: Loading...
Posted: 28th Mar 2011 15:28
Quote: "
Are you asking about the 3D coordinate system? Or just how the POSITION OBJECT/POSITION CAMERA commands work. Or are you asking about scale? What?
"


I'm asking about all of it... I don't know where x,y,z will go if i put nnumbers in. Please Help. Thanks.

The Modder... Unleashed,


God help me, Please.
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 28th Mar 2011 15:48
Ok, I assume you have a flat desk in front of you. Let's start with the centre of the desk as the origin, with an x coord of 0, y coord of 0 and z coord of 0.

From that origin, if you use an x coord that is negative, then that's to the left of the origin. If it's positive, that's to the right. If your y coord is negative, then that's below the origin, while a positive value is above. If your z coord is negative, then that's between the origin and you, while a positive value is the other side of the origin from you.

Obviously, the larger the value in a coordinate, the further away from the origin it is.

The camera is represented by your eyes. Your eyes have a position relative to the origin - if you are sat in a chair in front of the origin, then you have an x coord of 0, a positive y coord (being above the desk) and a negative z coord.

Your eyes also have a direction to look. With DBPro you can specify angles (how much to turn your head left/right/up/down), or you can simply tell it to look at a point.

Login to post a reply

Server time is: 2026-07-16 23:18:52
Your offset time is: 2026-07-16 23:18:52