私はofxProjectorKinectV2Calibrationを使用してKinect v2とプロジェクタを調整しようとしています。それはopenFrameworksのアドオンであり、セットアップは比較的複雑です。glfwCreateWindowはnullを返しませんが、新しいウィンドウは表示されません
とにかく、ofxProjectorKinectV2Calibrationは別のアドオンofxSecondWindowを使ってチェス盤を表示するための第2のウィンドウを作成します。私の問題は、私はこの第2の窓を全く見ないことです。タスクバーには表示されません。ここで
は、第二のウィンドウを作成するために、ofxSecondWindowからのコードは次のとおりです。
void ofxSecondWindow::setup(const char *name, int xpos, int ypos, int width, int height, bool undecorated) {
this->width = width;
this->height = height;
glfwWindowHint(GLFW_DECORATED, !undecorated);
mainWindow = glfwGetCurrentContext();
auxWindow = glfwCreateWindow(width, height, name, NULL, mainWindow);
glfwSetWindowPos(auxWindow, xpos, ypos);
/* enable alpha blending by default */
glfwMakeContextCurrent(auxWindow);
glEnable(GL_BLEND);
#ifndef TARGET_OPENGLES
glBlendEquation(GL_FUNC_ADD);
#endif
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
glfwMakeContextCurrent(mainWindow);
hidden = false;
}
私はwidth
とheight
が正しい、オンまたはオフを回すと何も変わらないことを確信している、とglfwCreateWindow
は、そのいくつかのハンドルを返しませんnullではありません。
環境:Windowsの10の64ビット、Visual Studioの2015年の32ビットビルドターゲット、プロジェクター(1024×768)は、ディスプレイ1で、PCの画面が表示2. openFrameworksバージョン0.9.3、アドオンです:
ofxOpenCv
ofxXmlSettings
ofxCv
ofxKinect2ProjectorCalibration
ofxKinectV2
ofxSecondWindow
ofxUI
のアイデア?
回答を解決策としてマークしてください – RecursiveExceptionException