PDA

View Full Version : Draw a 3D in Open G L



mahdieh
06-21-2014, 02:23 PM
Hi
I have several forms in a 3D space that I placed randomly in space
now i need on the environment and go forward and back, left and right
I've used this function glulookat" and change the first parameter of 3. Whether this is true?
Also, when I use the "glutpostredisplay" function to be reconstructed page fault location varies according to the randomness of natural forms locations.
What should I do to error does not change the location of the screen to move the camera?
Thank you

giordi
06-22-2014, 09:52 AM
Hi
I have several forms in a 3D space that I placed randomly in space
now i need on the environment and go forward and back, left and right
I've used this function glulookat" and change the first parameter of 3. Whether this is true?
Also, when I use the "glutpostredisplay" function to be reconstructed page fault location varies according to the randomness of natural forms locations.
What should I do to error does not change the location of the screen to move the camera?
Thank you

Is quite hard to understand you man :)
I am not exacly sure what you need but you can check here:
https://www.youtube.com/playlist?list=PLRwVmtr-pp06qT6ckboaOhnm9FxmzHpbY

It goes all the way from creating a window to render 3d object with a 3d camera.