My first program - newbie

Hi, im a newbie in the opengl world , i search a guide or anything to create my first program.

Thanks to all.

Google “opengl tutorial”. Or “opengl programming guide”.

Append site:opengl.org to search only this web site.

Go to http://gigiapedia.org/

type OpenGL into the seach box and press Enter.

Go to http://books.google.com/

and do the same. You can find a lot of things elsewhere… :>

An example of application with start?

I really dislike elitist bastards. They feel that if they have worked hard to acquire their knowledge that everyone should have to put in the same effort. I personally feel that this is a bunch of crap. So, putting my money where my mouth is, I have put out money to rent web space and I have written some primers on exactly what you are looking for. You can find them here: http://demochronicles.mccolm.org/build.php Hopefully I can help expedite your learning curve and help you get to the fun of creating demos.

Feel free to ask me for additional help. It’s time to end elitism. Oh, and when you are ready for it, you should definitely check out http://fly.cc.fer.hr/~unreal/theredbook This e-book is an awesome resource, even if it is not completely up to date.

The NeHe tutorials are quite highly regarded, but I find that they tend to focus more on structuring your code as pretty C++ classes than on actually getting stuff done. Still good for learning if you cut through the C++ and focus on the OpenGL. Here if you want a look: http://nehe.gamedev.net/

The material at CodeSampler is one of my own favourite resources. It covers both OpenGL and Direct3D in quite a bit of depth. Clicky: http://www.codesampler.com/ Beware though that it tends to provide finished programs rather than “how to” tutorials, but it’s great if you want to take something that you know already works and learn by modifying it.

For your first program you should just put a triangle on the screen and make it spin. This is the “Hello World” of 3D graphics and will help you a lot with some core concepts. There’s more than enough material at those two links to get you started with that.

An unusual resource might be the Quake 1 source code from ID Software (if you have the game - you can download the shareware version of it from their site if not). It’s quite simple code and will give you a working real world OpenGL application to learn from. There are a LOT of things wrong with this code however, so don’t always assume that just because it’s ID software it must be correct.

Best of luck, and - above all - have fun. :slight_smile:

(a bit OT)
Godvalve, your website seem very interesting, and it is a good idea to have “demo challenges”, but I never heard about about it, and the end of submission for the 3D tunnels is only in 10 days.

Do you already have received submissions ?

Nope… I don’t have any submissions yet but I am working on my own. If you are interested, then I will hold the competition over until next month and that will give you some time to create a submission. I’m hoping that in time a big group of us will do it regularly. Anyway, let me know if you are interested.

If you need example projects to get you started, check out the archive portion of my site. I have something like 170 OpenGL demos with source code that you can borrow ideas from. The address to the archive is http://demochronicles.mccolm.org/build.php

Did you submit the contest for the OpenGL frontpage news ? Talk about it on happypenguin.org, gamedev, etc ?

Nope… didn’t submit to any of those places yet. It’s too late in this month to start advertising the Demo Challenge so I’ll wait until the start of next month.

My congratulations, Godvalve!
Very nice site!
I just wonder why you didn’t use a “modern” approach based on GL3.x/4 model (Core Profile only). There are a lot of tutorials on fixed functionality but are rare with a shader based approach.

I will be creating primers on using the GL3/4 approach in the next couple of months. My intention was to cover the basics with respect to fixed functionality so that I could get the Demo Challenge up and running. By doing it this way, participants in the challenge who are relatively new to graphics programming will have a relatively simple platform to work from and will be able to work up to a more complicated framework as they became more accomplished.

I guess we’ll see how my plan works out.

A reminder to all beginners, we have a Getting Started page in our OpenGL Wiki. There are a number of Tutorials and How-To guides. Be sure to read through those first, then ask questions if still confused about getting going.

http://www.opengl.org/wiki/Getting_started