Results 1 to 3 of 3

Thread: Sizeproblem

  1. #1
    Guest

    Sizeproblem

    Hi all!
    If I change size or minimize my window, then all my objects lose their rotations and translations and goes back to it's origin state.
    How do I fix this?
    /Micke

  2. #2
    Senior Member Frequent Contributor
    Join Date
    Feb 2000
    Location
    France
    Posts
    880

    Re: Sizeproblem

    The reason might be that you reset the modelview matrix (load identity) when the size of your window is changed... You should post part of your code...

    Eric

  3. #3
    Senior Member OpenGL Guru
    Join Date
    Feb 2000
    Location
    Sweden
    Posts
    2,978

    Re: Sizeproblem

    If you are using glut, you should setup the initial modelview matrix in a separate function, and only change the projection matrix in the reshape function. You are probably (re)setting the modelview matrix in the reshape function too, like Eric said.

    Bob

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean