openframeworks / openFrameworks

openFrameworks is a community-developed cross platform toolkit for creative coding in C++.
http://openframeworks.cc
Other
9.94k stars 2.55k forks source link

OF cannot run with Remote Desktop under Windows #5955

Open eeyrw opened 6 years ago

eeyrw commented 6 years ago

I access my Windows PC as a remote computer by using RDP. It seems that GLFW can not find monitor when I operate under RDP. Here is an issue about GLFW which may hit the core of this problem. By the way, the version I used is of 0.9.8 for Visual Studio.

[ error ] ofAppGLFWWindow: 65544: No monitors found
[ error ] ofAppGLFWWindow: couldn't init GLFW
[ error ] ofAppGLFWWindow: 65537: The GLFW library is not initialized
oneandonlyoddo commented 6 years ago

As far as I know Windows RDP doesn't support any 3D Acceleration. It will also crash other programs like Cinema 4D that need 3D Acceleration.

youandhubris commented 6 years ago

The same happens with TeamViewer, if you install its drivers to Show black screen. For example. in Windows your monitor gets registered as Generic PNP Monitor in Device Manager, and you have to reinstall it.

So, and adding to what @oneandonlyoddo wrote, this seems to be more of an issue with third-party tools and not with openFrameworks itself.

igiso commented 6 years ago

if you want to use open frameworks with RDP, you have to get an earlier version that supports GLUT, make sure you use openGL 1 commands, (RDP does not support newer versions of open GL ofImage doesn't work, you need to use another drawing class)

you should be able to use GFLW if you lower the GL version from GFLW settings but not sure if it can be done in our fork of GFLW

ps, Windows Server 2016 supposedly supports newer versions of OPENGL but I have not tried it yet