Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

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

Thread: how long does it take and how easy is it to learn opengl?

  1. #1
    Junior Member Newbie
    Join Date
    Jul 2001
    Posts
    1

    how long does it take and how easy is it to learn opengl?

    I think the title says it all..I'm aiming at creating a 2d sidescrolling shooter..I know a good part of basic, but it's too crappy to do a fast 2d game..anyway, answer the title please

  2. #2
    Senior Member OpenGL Pro
    Join Date
    Jun 2000
    Location
    Shreveport, LA, USA
    Posts
    1,757

    Re: how long does it take and how easy is it to learn opengl?

    N.E.I. or in case you didn't have my physics 504 professor, not enough information. The answers to the questions are dependent upon the skill and/or persistence of the person. For me, it didn't take long at all, just a couple weeks to get comfortable with it. But then I wrote my first sprite library in 6809 machine code over 15 years ago. OpenGL isn't any harder to learn than any other API. The hardest part for newbies seems to be understanding rotations and the projection and modelview matrices in general.


    [This message has been edited by DFrey (edited 07-07-2001).]

  3. #3
    Member Regular Contributor
    Join Date
    Mar 2001
    Posts
    340

    Re: how long does it take and how easy is it to learn opengl?

    I think that writing a 2D game in OpenGL can be slightly convoluted. OpenGL is a 3D API, and you'd probably have to learn 3D first, and then try to apply it to 2D. It's not that hard, but it's not completely straightforward to use for that purpose.

  4. #4
    Senior Member OpenGL Pro
    Join Date
    Jun 2000
    Location
    Shreveport, LA, USA
    Posts
    1,757

    Re: how long does it take and how easy is it to learn opengl?

    Saying OpenGL is a 3D API is selling OpenGL short. It is both a 2D and 3D graphics API. Afterall, what use would there be for glVertex2? I personally didn't find it convoluted at all to write a 2D OpenGL app. And it was a whole lot easier than DirectDraw I think. But in general I would go with DirectDraw for a 2D app simply because you can lock the surface and get very close to the hardware.

  5. #5
    Intern Newbie
    Join Date
    Feb 2001
    Location
    Atlanta Georgia
    Posts
    34

    Re: how long does it take and how easy is it to learn opengl?

    OpenGL performs very well in a 2d scenario. I wrote a 2d spline manipulator that worked great with opengl's feedback. OpenGL has the valuable multiplatform thing going.
    "Close before striking. Keep away from Children"--Strike on the box matches.

  6. #6
    Member Regular Contributor
    Join Date
    Nov 2000
    Location
    Dunblane, Scotland
    Posts
    353

    Re: how long does it take and how easy is it to learn opengl?

    I felt very comfortable after a couple of weeks, after a couple of months I felt I could make a game, 6 months later I am still here trying. The graphics is the easy part to making a game, I know most of the syntax and ways of doings things for OpenGL and so this side is a lot easier and is automatic for me. However once you try and make a decent I/O system, Collision detection, A.I, animation, sound, physics, lighting, network... you realise you don't have what it takes to make a good game.

    Programming skills and experience is the most important I think, then good maths and the ability to quickly learn knew maths is also very important. Graphics don't make or break a game, better top have a decent A.I and Collision detection with shoddy gfx than the other way round.
    Reality is for idiots only the best over come it!

  7. #7
    Intern Newbie
    Join Date
    Apr 2001
    Location
    London,England
    Posts
    45

    Re: how long does it take and how easy is it to learn opengl?

    If you know how to program at a reasonable level (ie can cope with pointers, memory, data structures ok) then opengl is pretty simple.

    There's no "openGL magic". It's just API programming with a nice, simple API designed by some of the best programmers.

  8. #8
    Junior Member Newbie
    Join Date
    Jul 2001
    Location
    Grenade, Spain
    Posts
    14

    Re: how long does it take and how easy is it to learn opengl?

    If you want a 2d game with OpenGL inside, you can look at SDL library.

  9. #9
    Junior Member Newbie
    Join Date
    Jun 2001
    Location
    Cracow, Poland
    Posts
    5

    Re: how long does it take and how easy is it to learn opengl?

    My friend asked me to make a painting (2D)program for him - he had his DirectX version already under development. Instead of re-learning DirectX I quickly created an application from scratch using GLUT. Where he needed lots of lines of optimised code I just drew a colored quad ;-), my zoom is completely free, speed is next to unbeatable as long as you have OpenGL accelerated card, but nearly every desktop computer has it anyway. Use OpenGL!

  10. #10
    Advanced Member Frequent Contributor
    Join Date
    May 2000
    Location
    Oxford, England
    Posts
    547

    Re: how long does it take and how easy is it to learn opengl?

    putting a 2D game into openGL is actually not a bad idea (know this from experiance). openGL is at the end of the day a graphics library, not just limited to 3D. Using it to do 2D graphics allows you to take advantage of hardware acceleration. Simply blitting graphics to the screen is all well and good, but code optimisations are needed, and you dont get the scalability of openGL. I must admit though, I like my 2D games with the nostalgic pixelated look, but thats me....

    Of course, if you're into making your own streetfighter type games, then you could look out for Mugen.

    I always think its a shame that people forget that games used to be made in 2D, some of the best of all time I might add. Back to the days when games were made for reasons of playability and not for how many polys they could display per frame.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •