Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: GLUT vs visual C++

  1. #1
    Member Contributor
    Join Date
    Aug 2003
    Location
    singapore
    Posts
    85

    GLUT vs visual C++

    Wanna know which is better and easier to learn/use, GLUT or C++ for GUI application involving 3D visualization? Will appreciate if someone can kindly give some advice or suggest any better software.

  2. #2
    Senior Member OpenGL Guru
    Join Date
    Jun 2000
    Location
    Gastonia, NC, USA
    Posts
    2,068

    Re: GLUT vs visual C++

    First GLUT is a library of functions made to simplify the creation of a window in a opengl program vs. using native windowing commands.

    C++ is a programming language has no built in GUI, external library's much be used in conjunction with C++.

    GLUT will work inside of a C or C++ based program.

    Now, I think you may have been think about windowing functions in the MFC vs. GLUT.

    GLUT does not support menu bar type functions, while MFC does.

    If you want a menu bar type interface then you will have to look at MFC or some other GUI that supports that.

    Note also that the MFC is Microsoft windows only, so if you want cross platform then you can not use it.


    Originally posted by coda:
    Wanna know which is better and easier to learn/use, GLUT or C++ for GUI application involving 3D visualization? Will appreciate if someone can kindly give some advice or suggest any better software.

  3. #3
    Senior Member Frequent Contributor
    Join Date
    Apr 2003
    Posts
    680

    Re: GLUT vs visual C++

    the topic is really weird.. glut is better of course because:

    - it does not cost money
    - it is not windows-only

    but it really dependes on what you want to do.. mfc seems to be outdated, anyway. I would not a) invest money and b) not learn anything that is so much microsoft-only. so you're better of with glut, in my opinion, but after all it depends on what you want to do..

  4. #4
    Senior Member Frequent Contributor
    Join Date
    Apr 2003
    Posts
    680

    Re: GLUT vs visual C++

    If you really want to develop a complex application with a complex GUI and OpenGL visualization, maybe you should try delphi.. it is a lot easier than c++, the IDE is extremely easy to use and it is not less powerfull than c++, and the personal version does not even cost any money.

  5. #5
    Senior Member Regular Contributor
    Join Date
    May 2000
    Location
    Oxford, England
    Posts
    472

    Re: GLUT vs visual C++

    oh dear, here we go again.

    yup, MFC is clunky, but it works (most of the time), no it's not portable but then 90% of people who bang on about the importance of writing portable code don't because they only ever target a specific OS anyway (usually linux).

    for GUI stuff MFC will be easier than glut, however it is also easier to get lost in MFC if you aren't comfortable with WIN32 code.

    if you want to be truly portable, then go for one of the following glut based gui's :

    pui (now part of plib)
    glui

    These are OK, however their (C++) interface design is a bit sucky IMO, and they still feel very 'glut' and fairly rough around the edges. Basically glui looks better but is more limited, pui has more useful widgets (such as a file selector) but it looks cack.

    or, go for a more robust option such as Qt from trolltech. (This is kinda free, but only if you have linux, a cut down version is available for free on Win32/Mac, though the full blown version costs a hell of a lot of money - GNU licenses eh? Giving it to you free in one hand, using the other to rob you blind.... )

    I've started using this recently because it is the quickest thing I've ever used to knock up OpenGL/GUI apps. It also has the QGlWidget class that should be straight forward for any glut user to get their head around (infact, it's simpler than glut)

    The other options are stuff like Tcl/Tk, or full blown windowed code ( WIN32, X etc ), however you will have to do your own GL setup with these options (and MFC actually...)


    [This message has been edited by Rob The Bloke (edited 08-10-2003).]

  6. #6
    Senior Member Regular Contributor
    Join Date
    May 2000
    Location
    Oxford, England
    Posts
    472

    Re: GLUT vs visual C++

    JanHH, you are a sick sick man

    coda,

    download

    Qt/Windows Non-commercial (version 2.3)

    from
    http://www.trolltech.com/download/index.html

    This will have the libs, Qt (GUI) designer, and lots of docs and examples.

    If you have VC6 then it will happily integrate itself into the IDE. I use VCNET / gcc and codewarrior on win32/linux/mac and have had no problem with it on any platform/compiler combination.

    Check out the manual in Qt designer for more info, also check out the "gear" and "box" examples that come with it. Post here if you get stuck and I'll try to answer your questions.....

  7. #7
    Member Contributor
    Join Date
    Aug 2003
    Location
    singapore
    Posts
    85

    Re: GLUT vs visual C++

    Gee thanx for those advice.. actually mi am still not sure wat kinda software to use coz I need to create a GUI that takes in user inputs and depending on those inputs, generate 3D visualization images.. so was thinking of using opengl and c++ but heard of this GLUT thing and DirectX similar to opengl..hence can anyone offer some help on what I can use?

  8. #8
    Senior Member Regular Contributor
    Join Date
    May 2000
    Location
    Oxford, England
    Posts
    472

    Re: GLUT vs visual C++

    Read my post.

    QT & C++ & OpenGL

    That is what you are asking for, that is what I am suggesting.

  9. #9
    Senior Member Frequent Contributor
    Join Date
    Apr 2003
    Posts
    680

    Re: GLUT vs visual C++

    sorry rob qt came to my mind after writing these posts, but somehow I forgot to mention it.. I also think it is the right choice.

  10. #10
    Senior Member OpenGL Guru
    Join Date
    Jun 2000
    Location
    Gastonia, NC, USA
    Posts
    2,068

    Re: GLUT vs visual C++

    Maybe you should start with learning a little bit more about programming in general, since we did give you some advise but did not understand it.

    The point is all of the things that you mentioned are able to do as you asked take data and make a 3D plot.

    It is like picking a car to use, any car will take you from place to place. It is in how the car handles and how hard it is to drive and helps us make a choice on which car to use.

    The same with programming, there are many diffrent way's you can go about creating a program that does the same job.

    Starting out I would think that a C/C++ compiler would be you choice of language, and GLUT is a very easy to use window library. Using the GLUT library will let you create a openGL program very easy.

Page 1 of 2 12 LastLast

Similar Threads

  1. C++ and glut in MS Visual C++ 6.0
    By Chris.W in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 02-19-2004, 03:54 AM
  2. Visual C++.NET and GLUT
    By wliad in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 06-19-2003, 01:01 PM
  3. Visual C++ and Glut
    By GregH in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 10-22-2000, 01:23 PM
  4. Visual c++ 6.0 and glut?
    By LeprA in forum OpenGL: Basic Coding
    Replies: 11
    Last Post: 10-20-2000, 05:20 PM
  5. GLUT for Windows98 & Visual C++5
    By in forum OpenGL: User Software
    Replies: 3
    Last Post: 10-14-2000, 06:54 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean