Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: Please help me.

  1. #1
    Junior Member Newbie
    Join Date
    Feb 2007
    Location
    korea
    Posts
    1

    Please help me.

    I made a SDI application using OpenGL.
    and I have a problem.


    I used orthographic parallel viewing volume.

    glOrtho (-l,l,-b,b,ne,fa);

    l, b, ne, fa are appropriate variables..

    and then I'm redering the model.

    the blue line's Z position is 1.0
    and yellow block's Z positon is 0.0

    when I use mouse wheel, the picture is scaled.

    glScaled(scale*count_scale, scale*count_scale, scale*count_scale);

    I want Fig.1
    but if the scale is small, Fig.2 is appread.

    what is the problem?

    thanks for your attention.

  2. #2
    Intern Contributor
    Join Date
    Apr 2004
    Location
    Bangalore India
    Posts
    64

    Re: Please help me.

    If its 3D object what you are rendering paste the complete code where you are positioning the objects, if its only 2D try not scaling along Z Axis.
    Regards

    K.Kumar

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •