Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, Ayumi), 853 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
lorikob361, LucasJoshua, Baklazhan, Hanky27, firatv
19054 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 | chip programmers | 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