camera problem
who know how to do different camera view in opengl??
now i already do a camera to walkthrough in opengl but i don't know how to do another one camera with different coordinat.anyone help???
my project is like that:
i want user can press key to view in different viewing coordinat.so how i should do??
thanks.
- You create a camera class that includes the proper transformation matrices
- for each camera, you create an instance of the class
- switching camera = pointing to the corresponding camera object
- before rendering, you call glLoadMatrix(currentCamera.matrix)
- for each camera, you create an instance of the class
- switching camera = pointing to the corresponding camera object
- before rendering, you call glLoadMatrix(currentCamera.matrix)
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement