6 registered members (TipmyPip, Niels, dBc, Ed_Love, 3run, 1 invisible),
17,843
guests, and 5
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
camera
#407973
09/22/12 13:42
09/22/12 13:42
|
Joined: Sep 2012
Posts: 74 Niedersachsen, Germany
PriNova
OP
Junior Member
|
OP
Junior Member
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
Expert
|
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: PriNova]
#408006
09/23/12 14:13
09/23/12 14:13
|
Joined: Jan 2002
Posts: 4,225 Germany / Essen
Uhrwerk
Expert
|
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...
|
|
|
|