1
Bagaimana cara kerja gluLookAt?
Dari pengertian saya, gluLookAt( eye_x, eye_y, eye_z, center_x, center_y, center_z, up_x, up_y, up_z ); setara dengan: glRotatef(B, 0.0, 0.0, 1.0); glRotatef(A, wx, wy, wz); glTranslatef(-eye_x, -eye_y, -eye_z); Tetapi ketika saya mencetak ModelViewmatriks, panggilan ke glTranslatef()tampaknya tidak berfungsi dengan baik. Berikut ini cuplikan kode: #include <stdlib.h> #include <stdio.h> #include <GL/glut.h> #include …
9
c++
opengl
matrix
glut
algorithm
software-engineering
cocos2d-iphone
xcode
platformer
tower-defense
animation
textures
tiles
blender
hardware
console
xna
c#
3d
directx
xna3.1
animation
cocos2d-iphone
ios
objective-c
xna
collision-detection
collision-resolution
xna
xna-4.0
touch
gestures
software-engineering
javascript
html5
html-canvas
shaders
cocos2d-iphone
opengl-es2
masking
animation
android
opengl-es
opengl-es2
culling
frustum
python
pygame
rts