Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


A few questions

This topic is 5952 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

1). What do the 9 parameters to gluLookAt() mean? I'm guessing eye is where the camera is, center is where it focuses, but what the heck are the last 3 - the 'up' ones? 2). This isn't really opengl, but, what is the best way to do arkanoid collision detection (circle with rectangles, storing the block's positions, etc.) 3). How do I get the current coordinates of my mouse? 4). Last, does anybody have a function that draws a sphere? [edited by - tarun713 on June 30, 2002 6:46:53 PM]

Share this post

Link to post
Share on other sites
I can help on a couple, but not all.

1) "Up" is simply the vector of up. So, for a person, it would be a line coming upwards out of their head. Normally this is (0,1,0)

3) NeHe''s Lesson 32 uses mouse movement. http://nehe.gamedev.net/tutorials/lesson.asp?l=32
You''ll have to download the code to get what you are looking for, though.

4) Take a look at gluSphere()

void gluSphere( GLUquadricObj *qobj,
GLdouble radius,
GLint slices,
GLint stacks )

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!