Haris072

Members
  • Content count

    4
  • Joined

  • Last visited

Community Reputation

112 Neutral

About Haris072

  • Rank
    Newbie
  1. Zooming diaginal in corners?

    Thanks for reply, I want to zoom in/out and rotate the sphere like google earth.
  2. [color=#282828][font=helvetica, arial, verdana, tahoma, sans-serif][size=3][left][background=rgb(250, 251, 252)]Hi ,[/background][/left][/size][/font][/color] [color=#282828][font=helvetica, arial, verdana, tahoma, sans-serif][size=3][left][background=rgb(250, 251, 252)]I have a sphere that I need to be able to Zoom in and out with. [/background][/left][/size][/font][/color][color=#282828][font=helvetica, arial, verdana, tahoma, sans-serif][size=3][left][background=rgb(250, 251, 252)] I do this by using the mouse to get a deltaZ value and then plug this deltaZ into glTranslate(). This method works great when my sphere is sitting in the center of the screen, but if I move it to the corners or the sides of my viewport(by calling glTranslate with a different X and Y value), it zooms and goes in a diaginal direction (in X and Y). Please note that there is only one glTranslate call in my code and it is in my draw method. All the values that change the X, Y or Z values are passed into this draw method. Any ideas on what my problem could be and how to fix it?? [/background][/left][/size][/font][/color]
  3. How To Solve Z buffer Fighting

    On What basis I have to Change to Near and far values. I am new to this opengl 3d Programming Edit1:If I push the near value 1.0 or greater till 1.0 distance Its not possible to see in the viewport
  4. Hi, Is there any other way to solve z buffer fighting without changing the near plane value. I am using gluPerspective(fov,(winWid/winHgt),0.001,100000.0); Thanks,