3D Viewer OpenGL

I copied an OpenGL example out of a VSJ magazine, and it drew and rotated a 3D pyramid.  I then plotted a large 3d person, but could not get it in the view screen because of scale.  How do I change the depth of the object in the view screen?
I used glViewport, glBegin, glVertex, glEnd
LVL 1
MitchBroadheadAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Erick37Commented:
Two ways:
1) If you are using the LookAt call, modify the eye position to push yourself back from the object:
gluLookAt(0.0, 0.0, 25.0, _' our eye position
    0.0, 0.0, 0.0, _ ' center position
    0.0, 1.0, 0.0)  ' Y is positive going up

2) Use glScale to draw the object smaller:
glPushMatrix
    glScalef(0.5, 0.5, 0.5) 'Draw 50%
    'Do your vertex drawing here
glPopMatrix
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Erick37Commented:
Another thing you can do is set the Field-of-view larger:

gluPerspective(60.0, _ 'Field-Of-View (degrees)
    width / height, _ 'Aspect ratio
    0.01, _ ' z close clipping
    100.0) 'z far clipping
0
Erick37Commented:
And finally, you could draw the object further away from the center position using glTranslate.

glPushMatrix
    glTranslatef(0.0, 0.0, -25.0) 'starting at origin 0,0,-25
    'Do your vertex drawing here
glPopMatrix
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.