CHAI3DCHAI3D

normal Qt - Multiple Windows with multiple views

More
28 Jun 2016 22:17 #1

I'm trying to do what is essentially a mash-up of 18-endoscope and 27-multiframes in a Qt GUI. I want two windows: (1) is a main view with my settings/options pane with my primary camera view in passive stereo, and (2) is another window with multiple directional view of the environment (think front, top, side).

I'm not entirely sure how to do this. I can get multiple frames with different camera views without a problem, but I'm not sure how to proceed in getting rendering these views in a separate Qt window.

Thanks for any help in advance.

Please Log in or Create an account to join the conversation.

More
29 Jun 2016 15:40 #2

Check the Qt forums for examples that demonstrate applications using multiple windows. Then for each window, simply instantiate a graphic viewport to render a scene in OpenGL (see Qt template application).

Please Log in or Create an account to join the conversation.

More
05 Jul 2016 08:33 #3

I would like to make 2 windows.
One window renders a left eye view and the other renders a right eye view.

at 18-endoscope example =========================

// initialize the first GLUT window
glutInitWindowPosition(windowPosX0, windowPosY0);
glutInitWindowSize(windowW0, windowH0);
glutInitDisplayMode(GLUT_RGB | GLUT_DEPTH | GLUT_DOUBLE);
windowHandle0 = glutCreateWindow(argv[0]);
glutDisplayFunc(updateGraphics0);
glutKeyboardFunc(keySelect);
glutReshapeFunc(resizeWindow0);
glutSetWindowTitle("CHAI3D");
glutTimerFunc(50, graphicsTimer0, 0);

// initialize the second GLUT window
glutInitWindowPosition(windowPosX1, windowPosY1);
glutInitWindowSize(windowW1, windowH1);
glutInitDisplayMode(GLUT_RGB | GLUT_DEPTH | GLUT_DOUBLE);
windowHandle1 = glutCreateWindow(argv[0]);
glutDisplayFunc(updateGraphics1);
glutKeyboardFunc(keySelect);
glutReshapeFunc(resizeWindow1);
glutSetWindowTitle("CHAI3D");
glutTimerFunc(50, graphicsTimer1, 0);


at updateGraphic0 : camera->renderView(screenW, screenH, 0, C_STEREO_LEFT_EYE);
at updateGraphic1 : camera->renderView(screenW, screenH, 0, C_STEREO_RIGHT_EYE);
at graphicsTimer0 : glutTimerFunc(50, graphicsTimer1, 0);
at graphicsTimer1 : gludTimerFunc(50, graphicsTimer0, 0);

===================


How can I make 2 windows at Qt ?
What function(s) can I call ???

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum