Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Search:

Type: Posts; User: kolkon

Search: Search took 0.00 seconds.

  1. thank you for that. i copied one of the examples...

    thank you for that. i copied one of the examples from the link you showed, rearranged the axes (since i have z as up), and it now works perfectly!
  2. sure. http://pastebin.com/0dwNu9D5 lines 72...

    sure.

    http://pastebin.com/0dwNu9D5

    lines 72 to 99 is the camera control part


    a, b, = window.width/2, window.height/2 #this stores mouse position
    k = 0.01 #sensitivity
    gx = 0 #this stores...
  3. i did it with three pencils. if i'm understanding...

    i did it with three pencils. if i'm understanding you correctly, you mean to say that axes rotate with each other. that is, if the x-axis rotates, the z-axis will correspondingly move with it.
    ...
  4. if x is the direction a car is going, and y is...

    if x is the direction a car is going, and y is perpendicular to that, and z is vertical with the ground, i want the car to turn. instead, it rolls, as if it's rotating on the x-axis. rotating the z...
  5. scene rolls instead of turning. glRotatef used

    I want to be able to rotate the model, to turn up and down, left and right. However, i start rolling instead of turning. In my code i use thetahor (theta horizontal) to represent the angle on the...
  6. i've got it working with this now: def...

    i've got it working with this now:


    def display():
    glClear(GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT)
    glShadeModel(GL_SMOOTH)
    glLoadIdentity()

    def reshape():
    glShadeModel(...
  7. i understand. however, i cannot get...

    i understand. however, i cannot get gluPerspective to work in GL_PROJECTION. (the resulting display is the same as if i left the gluPerspective line out completely. do you have any idea why this...
  8. my post was denied for some reason involving urls...

    my post was denied for some reason involving urls and forbidden words
    instead, here is a link to my code and explanation. link was modified in the same way as the image was as descriped in the first...
  9. gluPerspective is "centered" on lower left corner. i want it in the center

    i'm using opengl 4 on windows 8.

    When i call gluPerspective, the focus or center of the view seems to be in the corner rather than the center. this is depicted in the following link to an image:
    ...
Results 1 to 9 of 9