PDA

View Full Version : Trouble with arcsynthesis tutorial



kiwon0905
08-31-2012, 08:04 PM
I compiled the first tutorial, but it shows a console window and exits right away.

I managed to read the error message that says it failed to creat a opengl context which is very weird because I have created many opengl contexts using sfml and freeglut in my past projects

Is that supposed to happen?

Alfonse Reinheart
09-01-2012, 04:07 AM
Can you post the exact error message? Just run the executable from the console.

kiwon0905
09-01-2012, 06:23 AM
It's hard to read the error message because it closes right away, but it said "unable to create OpenGL 3.3 context"

Alfonse Reinheart
09-01-2012, 06:38 AM
It's hard to read the error message because it closes right away

That's why I said "run the executable from the console." You know, open up a command prompt, go to the directory, and execute it.


unable to create OpenGL 3.3 context

If that is indeed the error you are getting, then either your hardware doesn't support GL 3.3, or your drivers don't support GL 3.3. What hardware and graphics drivers are you using?

kiwon0905
09-01-2012, 07:08 AM
That's what I thought, I'm have the cheap Intel graphics. I checked the website and it only supports up to 2.1
Is there other way I can do this?

Alfonse Reinheart
09-01-2012, 09:28 AM
Sorry, but there's nothing that can be done (outside of rewriting them). The tutorials are written against OpenGL 3.3. I believe it says this on the "What You Need" page (http://www.arcsynthesis.org/gltut/About%20Need.html).

Of course, you can still read the text and learn from that. But you can't run the code or do the exercises.

Kopelrativ
09-01-2012, 09:32 AM
That's what I thought, I'm have the cheap Intel graphics. I checked the website and it only supports up to 2.1
Is there other way I can do this?

It seems you are out of luck here. OpenGL 2.1 is from 2006, and the tutorial is about "Modern 3D programming". Much of the 3D parts of the tutorial was possible already in 2006, but the programmatic way is now different.

You either have the option to use another computer, another graphics card or stay with OpenGL 2.1. There are many tutorials out there for the legacy OpenGL, but I wouldn't recommend it. See http://www.opengl.org/wiki/Legacy_OpenGL.