Page 1 of 1

3D Visualization - Camera Orientation

Posted: Sat Jan 02, 2016 4:12 am
by S.T.
CameraDirectionX() and the other two vectors:
Documentation says
Return value

Returns the 'x' direction vector of the camera. This value is always between -1.0 and 1.0.

Since a direction vector cannot be specified with a scalar this should return 3 components specifying the vector.

Also there should be a function to set the direction for the X axis of the camera like SetCameraXDirection(x,y,z).
Using CameraLookAt the Z axis can be specified. Then there is no need to specify the Y direction when the X and Z have already been specified. Instead of X we should have the option to set the Y axis of the camera. Mostly this would be directed parallel to the world Z axis, or upward ( if you use Z coordinate of the World perpendicular to the ground).

Thanks

Re: 3D Visualization - Camera Orientation

Posted: Sun Jul 10, 2016 1:31 pm
by Andre
This sounds more like a feature-request.
So moved to this sub-forum for further investigation by the programmers.

Re: 3D Visualization - Camera Orientation

Posted: Sun Jul 10, 2016 7:10 pm
by Samuel
S.T. wrote:CameraDirectionX() and the other two vectors:
Documentation says
Return value

Returns the 'x' direction vector of the camera. This value is always between -1.0 and 1.0.

Since a direction vector cannot be specified with a scalar this should return 3 components specifying the vector.
This looks more like a mistake in the helps files to me.
I think it would be better if the help files said something like CameraDirectionX() returns the X value of the Camera's directional view vector. The same thing could be said for CameraDirectionY() and CameraDirectionZ().
S.T. wrote: Also there should be a function to set the direction for the X axis of the camera like SetCameraXDirection(x,y,z).
It seems to me like you want the ability to manually adjust the Camera's View, Right, and Up vectors.
Not sure if I agree with adding those commands though. It can be risky because if you incorrectly calculate the vectors the scene will be distorted.

Re: 3D Visualization - Camera Orientation

Posted: Sat Apr 21, 2018 9:43 pm
by Andre
To be investigated by Fred or comtois...