Jump to content
  • Advertisement
Sign in to follow this  
djones11

Introductory Graphics Question

This topic is 4848 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

Hello all, This looks like a very helpful site. Perhaps someone can assist me with my graphics problem.... I have a 3D particle distribution. I want to design a graphics driver that will allow the user to manipulate the 3D distribution in real-time using a mouse. That is, he or she should be able to rotate the particle distribution about any axis, zoom in and out, and recenter. The particles will stay fixed relative to one another. My question is: what is the best graphics library or package to start out with? I can work in C/C++ or Fortran, and the library must be free. :) Thanks! DJ

Share this post


Link to post
Share on other sites
Advertisement
Yes, thank you. OpenGL seems to have all of the translation/rotation capabilities used in shifting viewpoints, but I don't know how to design an interface between the mouse and the functions in that library.

I have a little bit of experience with glade and gtk, so I know it must have something to do with a signal handler or something. That is, there must be something to 'catch' the signals from the mouse and activate the corresponding functions.

So my NEW question is, what would be best to use for communication between the mouse and the program?

BTW: I am using Linux and X-windows at the moment.

Thanks again!
DJ

Share this post


Link to post
Share on other sites
Take a look at SDL, it can setup an OpenGL context (window) for you and handle input (mouse, keyboard, joysticks, etc).

The NeHe tutorials are also a good place to look for getting started with OpenGL (if you scroll down to the bottom of each tutorial there is SDL/linux source code).

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • 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!