Comments (2)
Hello, the GRRLIB_Camera3dSettings
function is used to set values that are used by the guLookAt
function in libogc. Here is the documentation in case it can help you:
/*!
* \fn void guLookAt(Mtx mt,guVector *camPos,guVector *camUp,guVector *target)
* \brief Sets a world-space to camera-space transformation matrix.
*
* \details Create the matrix \a m by specifying a camera position (\a camPos), a camera "up" direction (\a camUp), and a target
* position (\a target).
*
* The camera's reference viewing direction is the -z axis. The camera's reference 'up' direction is the +y axis.
*
* This function is especially convenient for creating a tethered camera, aiming at an object, panning, or specifying an
* arbitrary view.
*
* \param[out] mt New viewing matrix.
* \param[in] camPos Vector giving 3D camera position in world space.
* \param[in] camUp Vector containing camera "up" vector; does not have to be a unit vector.
* \param[in] target Vector giving 3D target position in world space.
*
* \return none
*/
So nothing mentions rotation.
I think I will need to change the documentation for GRRLIB_Camera3dSettings
because it is wrong since 2009:
* @param posx x position of the camera.
* @param posy y position of the camera.
* @param posz z position of the camera.
* @param upx Alpha component.
* @param upy Alpha component.
* @param upz Alpha component.
* @param lookx x up position of the camera.
* @param looky y up position of the camera.
* @param lookz z up position of the camera.
I guess it should be replaced by something like this:
* @param posx x position of the camera.
* @param posy y position of the camera.
* @param posz z position of the camera.
* @param upx x up position of the camera.
* @param upy y up position of the camera.
* @param upz z up position of the camera.
* @param lookx x position of the target.
* @param looky y position of the target.
* @param lookz z position of the target.
from grrlib.
Thanks, I was wondering what the alpha component was. Changing upx
, upy
, and upz
still didn't have the desired effect, so to rotate the camera do I have to set lookx
, looky
, and lookz
to a point relative to the camera in the direction I want, or is there an easier way?
from grrlib.
Related Issues (19)
- Examples don't work properly HOT 2
- Fatal error with powerpc-eabi-gcc.exe HOT 1
- make fails on 3d_sample1 HOT 1
- problem compilng HOT 2
- GX_end is static compile warning HOT 5
- powerpc-eabi-gcc: No such file or directory HOT 18
- Missing documentation / weird behaviour with PNG where `size % 4 != 0`
- Drawing 3D over 2D
- Any idea as to why a particularly large PNG wouldn't load?
- Examples for Gamecube don't compile HOT 6
- error with command make clean all install HOT 2
- Question regarding 3D object rotation
- Build on Linux HOT 8
- GRRLIB_PrintfTTF and GRRLIB_PrintfTTFW do not display the text in correct alpha value HOT 6
- $ cd C:\grr\GRRLIB bash: cd: C:grrGRRLIB: No such file or directory HOT 9
- pass environment variables in documentation
- Compiling+installing seems to be problematic on GNU/Linux HOT 8
- Compilation on Ubuntu WSL HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grrlib.