bastiaanolij wrote on Tuesday, January 26, 2016:
Hey All,
I’m trying my hand at stereo scopic rendering. I’ve got it working both on my Macbook and AlienWare Laptop with splitscreen rendering, just hooking it up to my 3D TV which can use a splitscreen approach. I did a writeup of the setup here:
My next step was looking into using a left and right backbuffer by enabling GLFW_STEREO. As far as I can tell the Geforce 555M in my AlienWare laptop supports this as long as I hook it up to a 3D screen through HDMI. It indeed is telling me it’s setup for 3D in the display settings so it should in theory work. Unfortunately the glfwCreateWindow fails.
Here is the code I’m attempting to get to work:
// see if we can initialize GLFW
if (!glfwInit()) {
exit(EXIT_FAILURE);
};
// make sure we're using OpenGL 3.2+
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3);
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 2);
glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE);
glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);
glfwWindowHint(GLFW_STEREO, GL_TRUE);
window = glfwCreateWindow(1920, 1080, "GLFW Tutorial", glfwGetPrimaryMonitor(), NULL);
glfwCreateWindow returns NULL. It’s not giving me any feedback on why. I’ve tried both 1920x1080 and 1280x720 which are the only two resolutions 3D is supported on. My suspicion is that glfwGetPrimaryMonitor is returning my LCD screen instead of the TV even though I’ve told it to only use the TV.
Has anyone got any idea what step I’m missing here?
Cheers,
Bas