ncurses or opengl

This is a discussion on ncurses or opengl within the C Programming forums, part of the General Programming Boards category; I had a friend at school use Qbasic to model functions for intermolecular forces. it involved calculating particle position acceleration, ...

  1. #1
    Registered User
    Join Date
    Mar 2004
    Posts
    6

    Question ncurses or opengl

    I had a friend at school use Qbasic to model functions for intermolecular forces. it involved calculating particle position acceleration, and even, after the movement was paused, the field lines between the particles. It ran using an interpreter and was terribly *blinky* and slow.

    I wanted to develop similar physics modeling application using C (something to compile, and to bone up before my next course). Using linux, would I be better suited to use the ncurses library or opengl.

    Thanks ahead of time for the responses.


    * by the way, mesa gl i know is the equivalent of opengl on linux,
    are all the functions/prototypes the same?. ie. if i were to invest in
    opengl material would i have to re-learn all the function names, etc. ?
    Last edited by CuLtOfGoAt; 12-07-2004 at 12:43 AM.

  2. #2
    ---
    Join Date
    May 2004
    Posts
    1,379
    OpenGL is cross platform so the functions are the same.

    Mesa is a 3-D graphics library with an API which is very similar to that of OpenGL.* To the extent that Mesa utilizes the OpenGL command syntax or state machine, it is being used with authorization from Silicon Graphics, Inc.(SGI). However, the author does not possess an OpenGL license from SGI, and makes no claim that Mesa is in any way a compatible replacement for OpenGL or associated with SGI.
    Mesa is an open source implementation of OpenGL. So you can use either of them on Linux

  3. #3
    Registered User
    Join Date
    Dec 2004
    Posts
    35
    Hi there,

    I'm sorry this has nothing to do with your post, but I'm writing software to do quantum chemical calculations (which of course involves the calculation of interparticle energies as part of it) - and i'm just really interested in hearing more about what you're doing.

    I'd also be keen to learn about openGL because I know very little about it. All the graphical stuff i have used is ncurses, perl/TK, and java Swing/awt.

    but games are written using openGL aren't they?? (I mean proper 3d games?)

    anyway hope to hear from you - feel free to PM me if you're interested in chatting about molecular stuff.

    James
    VIM + gcc + beer... does life get any better?

  4. #4
    not-a-geek
    Join Date
    Apr 2004
    Posts
    210
    Quote Originally Posted by CuLtOfGoAt
    It ran using an interpreter and was terribly *blinky* and slow.
    There is a QBasic compiler called QuickBasic. I'm not sure if it is still available though.

    Quote Originally Posted by CuLtOfGoAt
    * by the way, mesa gl i know is the equivalent of opengl on linux,
    are all the functions/prototypes the same?. ie. if i were to invest in
    opengl material would i have to re-learn all the function names, etc. ?
    Mesa is just a free OpenGL implementation. Theoretically it doesn't matter which OpenGL implementation you use to develop your code, it should run on all of them (and there are tons of. Practically every graphics card vendor has its own implementation, specifically optimized for its card).

    That said, I'd go for OpenGL along with GLut. GLut is pretty nice to get around all the OS specific stuff like initialization, context setup... Usually it's just a few commands to get a working OpenGL window opened with it.
    Another reason for OpenGL is that you're dealing with 3D objects (at least I guess you do) and you won't have to worry about how to represent those properly on a 2D screen.
    main() { int O[!0<<~-!0]; (!0<<!0)[O]+= ~0 +~(!0|!0<<!0); printf("a function calling "); }

  5. #5
    Registered User
    Join Date
    Mar 2004
    Posts
    6

    Talking

    appreciation to all, off to the gl brick road i go

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Linking OpenGL in Dev-C++
    By linkofazeroth in forum Game Programming
    Replies: 4
    Last Post: 09-13-2005, 10:17 AM
  2. OpenGL Window
    By Morgul in forum Game Programming
    Replies: 1
    Last Post: 05-15-2005, 12:34 PM
  3. OpenGL .dll vs video card dll
    By Silvercord in forum Game Programming
    Replies: 14
    Last Post: 02-12-2003, 06:57 PM
  4. OpenGL and Windows
    By sean345 in forum Game Programming
    Replies: 5
    Last Post: 06-24-2002, 10:14 PM
  5. opengl code not working
    By Unregistered in forum Windows Programming
    Replies: 4
    Last Post: 02-14-2002, 09:01 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21