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

Thread: Newbie at OpenGL!! many questions need answers

  1. #1
    Guest

    Newbie at OpenGL!! many questions need answers

    Hi,
    I know c++ programming and I would like to learn OpenGL. All I have is Borlan C++ so I am stuck using this compiler and its included lib's. First of all I do not know win32 programming. I know that if I use Glut I can get by without knowing Win32. I have tried many of the tutorials and successfully compile and ran some of them, but others, I get tons of linking errors or external references. Here are questions I need detailed explanation on:

    1. Where can I download documentation on OpenGl? I have the glut documentation on pdf. but I also need all the built-in functions of OpenGl preferalbly in pdf format. I checked some of the links on the documentation page, but they are dead.

    2. How do I setup Borland to compile OpenGl code? Like what settings I need in the new project dialog-box. I know I am suppose to put all the glut stuff in the c\:windows directory, but where do I put the other stuff like gl.h, glu.h, glaux.h, and do I really need them?

    Any help would be greatly appreciated.

  2. #2
    Member Contributor
    Join Date
    Oct 2000
    Location
    Helsinki, Finland
    Posts
    59

    Re: Newbie at OpenGL!! many questions need answers

    For the documentation: do google search with 'Red Book' and all the variants so you should get at least couple of hits. If this fails however, inform me and I can email a bunch of .pdfs to you.

    Are you using regular Borland C++ compiler or some version of Builder? If you use Builder the OpenGL headers are located in your .../include/gl directory.

    - Niko

  3. #3
    Senior Member Regular Contributor
    Join Date
    Oct 2005
    Posts
    137

    Re: Newbie at OpenGL!! many questions need answers

    Hi,

    I was also wondering where can I get latest glut documentation in pdf format. I tried searching but couldn't find it. If anyone has a link to it please post it.

    Fastian

  4. #4
    Guest

    Re: Newbie at OpenGL!! many questions need answers

    you can get the glut documents here
    <<http://reality.sgi.com/mjk_asd/glut3/glut3.html>>

  5. #5
    Member Contributor
    Join Date
    Apr 2004
    Posts
    73

    Re: Newbie at OpenGL!! many questions need answers

    For ALLS beginners !!!

    Please, don't begin OpenGL programming with Windows, Microsoft seem to make all it can for to make this really difficult ...

    Make this on another OS where the compilation of opengl programs isn't a nightmare ...

    For example, opengl compilation in Linux is as simple as :

    gcc test.c -o test -L/usr/X11R6/lib -lglut -lGLU -lGL -lXext -lX11 -lm

    This compile a opengl .C file named test.c and make one executable named test.

    The compilation of Opengl's programs can really be very simple, no ?

    It's nothing but I'm tired about the lot of specific Windows problems for to compile opengl's programs : this is really very difficult when this can be really simple ...

    If Microsoft don't want really to make something for the opengl community, then this is the opengl community that to have to make something for it !!!

    And why NVidia, Ati and others don't want to make an Opengl SDK for others OS that Windows, they really think that Microsoft is a reference into the Opengl history ???

    No, it's only a big child that don't want what it want and perturb all others !!!


    @+
    Cyclone
    @+
    Yannoo

  6. #6
    Guest

    Re: Newbie at OpenGL!! many questions need answers

    I agree that it is hard to get openGl to compile on windows for beginers like me, and that is why everybody has so many questions. But I got my first computer with windows installed so I depend heavily on GUI and am somewhat uncomfotable with command lines. I just learn by trial and error and now I am doing pretty well with borland C++ on Win98.

    Any way, I have a request, can somebody give me a demo code or ponit me to one that does something like this:

    a cube on the screen and the user is able to move around it using the arrows keys and the mouse.I got the straffing and forward backward right, but I do not know how make it so that when I turn, the cube translates to the opposite direction and rotating at the same time allowing me to make a full 360 turn and come back to the object.

    If anybody just happen to have that code or can point me to a tutorial I would really appreciate it.

  7. #7
    Member Contributor
    Join Date
    Jul 2001
    Location
    France
    Posts
    80

    Re: Newbie at OpenGL!! many questions need answers

    For example, opengl compilation in Linux is as simple as :

    gcc test.c -o test -L/usr/X11R6/lib -lglut -lGLU -lGL -lXext -lX11 -lm
    easy ?

    I think that for someone wich is new to linux, the learning time is less important with windows and all the lib, .h compiler stuff, and at least your know what you are doing, it just need to be demistified at startup, like many others learnings, linux included.
    I don't really see any reason to use linux better than windows for a beginner.

    no offense,
    Marsu-Win

  8. #8
    Member Contributor
    Join Date
    Oct 2000
    Location
    Helsinki, Finland
    Posts
    59

    Re: Newbie at OpenGL!! many questions need answers

    Right. Learning OpenGL under Windows is not inherently difficult. Only lousy tools make it difficult. Here's an excellent tool: Borland C++ Builder. Doing OpenGL apps could not be easier than it is with bcb: Install bcb, include gl.h and start coding. No tedious hasling with rpms, trying to figure out what the hell is the correct version of this and that for this Linux distribution and so on and so on. For me it's not a big deal because I am comfortable with UNIX systems anyways but for newbie... can't wait until the C++ Kylix hits the streets, though

    - Niko

  9. #9
    Senior Member Regular Contributor
    Join Date
    Feb 2001
    Location
    Australia
    Posts
    431

    Re: Newbie at OpenGL!! many questions need answers

    Originally posted by the newbie:
    ... a cube on the screen and the user is able to move around it using the arrows keys and the mouse.I got the straffing and forward backward right, but I do not know how make it so that when I turn, the cube translates to the opposite direction and rotating at the same time allowing me to make a full 360 turn and come back to the object.

    If anybody just happen to have that code or can point me to a tutorial I would really appreciate it.
    If you work through the tutorials on http://nehe.gamedev.net you should be able to work this out.

    Hope that helps.

  10. #10
    Senior Member Frequent Contributor marcus256's Avatar
    Join Date
    Aug 2001
    Location
    Sweden
    Posts
    764

    Re: Newbie at OpenGL!! many questions need answers

    Originally posted by cyclone:

    For example, opengl compilation in Linux is as simple as :

    gcc test.c -o test -L/usr/X11R6/lib -lglut -lGLU -lGL -lXext -lX11 -lm
    Cyclone
    Well, under Windows with MinGW (GCC port) it is as simple as:

    gcc test.c -o test.exe -lglut32 -lglu32 -lopengl32 -lm



    Or, if you want to use Windows GDI instead of GLUT:

    gcc test.c -o test.exe -lglu32 -lopengl32 -lgdi32 -lm

    How's that for simple??

Page 1 of 2 12 LastLast

Similar Threads

  1. Current FBO implementation: answers to some common questions
    By JeffJ in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 09-29-2005, 07:30 PM
  2. some questions that needs answers
    By doodlemunch in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 06-14-2005, 08:49 PM
  3. newbie OpenGL ES questions
    By chrisweaver in forum OpenGL ES
    Replies: 3
    Last Post: 03-03-2005, 11:00 AM
  4. Newbie Questions
    By solopido in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 08-23-2002, 05:15 AM
  5. Newbie questions!
    By EeeK in forum OpenGL: Basic Coding
    Replies: 9
    Last Post: 07-19-2000, 09:06 PM

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