LebGeeks

A community for technology geeks in Lebanon.

You are not logged in.

#1 February 8 2014

Johnaudi
Member

C++ and OpenGL

Hey,
Anyone knows any good and easy to learn tutorial to get started with OpenGL with C++? (3D not 2D)

I want something quite simple, squares and stuff, nothing too complex.

Thanks!

Offline

#2 February 9 2014

Joe
Member

Re: C++ and OpenGL

Unfortunately, OpenGL is anything but "quite simple" and is very complex.

Fortunately, you can find frameworks built on top of OpenGL that make things a lot easier for the developer. If you're interested in C++, you should check out these:

Note that Unity is the only proprietary software of these 3. The basic version is free and limited, but enough to discover how it works. However for any substantial professional work, you'll need to by the Pro edition that is expensive (1500USD or 75USD/month for a minimum of 12 months).

I have limited experience with Panda (although I used to Python bindings not the C++ ones, for sanity's sake...). If you have questions, I could maybe help out there.

Offline

#3 February 9 2014

Johnaudi
Member

Re: C++ and OpenGL

Thanks, I've tried Unity around a year ago, it was quite not so flexible. I was wondering if there are any good tutorials to help me start a game from scratch.

Offline

#4 February 9 2014

rolf
Member

Re: C++ and OpenGL

Thanks a lot for the pointers, rahmu

Offline

#5 February 10 2014

jsaade
Member

Re: C++ and OpenGL

Hi, if you want to learn openGL there are a lot of books (ex: OpenGL SuperBible) or online resources (ex: http://nehe.gamedev.net/).

IF you want to go a bit high-level you can use SDL (http://www.libsdl.org/) or sfml (http://www.sfml-dev.org/).

It really depends what you want to do, btw in your original post 'square' is 2D not 3D.

Offline

#6 February 10 2014

Johnaudi
Member

Re: C++ and OpenGL

jsaade wrote:

Hi, if you want to learn openGL there are a lot of books (ex: OpenGL SuperBible) or online resources (ex: http://nehe.gamedev.net/).

IF you want to go a bit high-level you can use SDL (http://www.libsdl.org/) or sfml (http://www.sfml-dev.org/).

It really depends what you want to do, btw in your original post 'square' is 2D not 3D.

I meant cubes, sorry.

I'm more looking forward to learn pure OpenGL, no libraries. This way I can go as flexible as possible.

Offline

#7 February 10 2014

venam
Member

Re: C++ and OpenGL

--

Last edited by venam (September 9 2016)

Offline

#8 February 10 2014

Johnaudi
Member

Re: C++ and OpenGL

venam wrote:

If you want to step in the *new world*, which is moving towards webtechnology, you can learn webgl.
EDIT: We took opengl at university and the only good way that I found to learn it was to read the first chapters of the _red book_ and then learn by reading some implementations and playing around with them.

I started reading the book online, quite easy looking.
I'm not interested in WebGL currently, it doesn't look that fascinating either because most web browsers these days are not allowing plugins or such.

Offline

#9 February 10 2014

venam
Member

Re: C++ and OpenGL

--

Last edited by venam (September 9 2016)

Offline

#10 February 10 2014

Johnaudi
Member

Re: C++ and OpenGL

I'm speaking mobile, console etc.

Offline

#11 February 10 2014

Fischer
Member

Re: C++ and OpenGL

Unity 3d doesn't support C++, (the last time I used it), It supports C#, Lua and Boo, and if you do (python + blender), you can import the models to unity.

Offline

#12 March 23 2014

CodingFreak
Member

Re: C++ and OpenGL

Like jsaade, I recommend you get the 6th edition of OpenGL SuperBible (I'm reading the 5th because my graphic card doesn't support OpenGL 4.0). OpenGL is too complex to pick up from random tutorials and last time I checked, there was no tutorial that covered everything.

I would also recommend you start with 2D, by using either SDL 2.0 (my game: https://github.com/chaficnajjar/pong) or SFML. The cool thing is that you can fully invoke OpenGL from SDL later on.

Last edited by CodingFreak (March 24 2014)

Offline

Board footer