Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
5 registered members (clonman, TipmyPip, Niels, dBc, 1 invisible), 18,961 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
camera #407973
09/22/12 13:42
09/22/12 13:42
Joined: Sep 2012
Posts: 74
Niedersachsen, Germany
P
PriNova Offline OP
Junior Member
PriNova  Offline OP
Junior Member
P

Joined: Sep 2012
Posts: 74
Niedersachsen, Germany
Next question I have with camera is: is the camera.x, .y,.z an absolute coordinate independent from pan, tilt and roll?
I used: vec_set(camera.x, vector (-40, 20,30));
and found out a strange behaviour. ths axis are twistet.
-40 equals .z, 20 equals .y, and 30 equals .x
The same is with the colour vector which I changed in the atype.h that red is always the first colour vector. Why is this? Every graphical program I know has red as the first vector.

Re: camera [Re: PriNova] #407974
09/22/12 13:47
09/22/12 13:47
Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
Kartoffel Offline
Expert
Kartoffel  Offline
Expert

Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
color-vectors are BGR (has something to do with the communication between acknex and direct-x), so if you use
vec_set(sky_color.blue, vector(200, 100, 0));
it is R=0, G=100, B=200.

However, the camera-position is absolute and independent from pan tilt and roll but x, y and z are not swaped.
If pan, tilt and roll is 0 the camera is looking in the direction of the x-axis.

So: X is forward, Y is to the left and Z is up.

Last edited by Kartoffel; 09/22/12 13:54.

POTATO-MAN saves the day! - Random
Re: camera [Re: Kartoffel] #407977
09/22/12 17:26
09/22/12 17:26
Joined: Sep 2012
Posts: 74
Niedersachsen, Germany
P
PriNova Offline OP
Junior Member
PriNova  Offline OP
Junior Member
P

Joined: Sep 2012
Posts: 74
Niedersachsen, Germany
Is this coordinate system hardcoded or is there a way to switch to the directx left handed cartesian system like it is used usually in directx?

Thanks for answers.

Re: camera [Re: PriNova] #408006
09/23/12 14:13
09/23/12 14:13
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
The coordinate system of 3DGS is fixed, you cannot change it.

Just think of all the overhead that would arise from providing different coordinate systems...


Always learn from history, to be sure you make the same mistakes again...

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1