Quantcast
Channel: bugs, errors - openFrameworks
Viewing all articles
Browse latest Browse all 636

Lighting doesn't work when I use ofCreateWindow(settings)

$
0
0

@asabanapal wrote:

I'm using OF 0.9.3 on Windows 10 64 bit and have checked my GPU's drivers and capabilities and it's running OpenGL 4.3

A simple example of the problem is:
When I run the examples/gl/MultiLightExample it runs absolutely fine when I use

ofSetupOpenGL(1024,768, OF_WINDOW);			// <-------- setup the GL context
ofRunApp( new ofApp());

A screenshot of the app running:

However from what I read that is deprecated (or doesn't use OpenGL 3) and the recommended way of launching the GL context is to now use:

ofGLWindowSettings settings;
settings.setGLVersion(3, 2);
settings.width = 1280;
settings.height = 780;
ofCreateWindow(settings);
ofRunApp( new ofApp());

If I launch the app that way though (with no other changes to the code) the lighting doesn't work, this is what I get:

As I say there are no other changes to the code apart from the way I launch the main window from main.cpp and my system says it's capable of running OpenGL 4.3

Does anyone know what the issue is? Should this work or am I missing something?

Thanks

Posts: 8

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 636

Trending Articles