Re: [osg-users] osgposter through Task Scheduler

2019-07-05 Thread Chris Hanson
With all due respect, I think OpenGL on headless Windows is a slight
distinction from what Andreas was asking for (OpenGL without a Windows
desktop login session). Most people doing headless OpenGL at least have a
Windows login session.

I was curious about the situation myself. We (myself, Nick and Per at Volvo
Sweden just a few hours from Remograph) and the guys at DLR in Munich have
all been pursuing headless OSG operation and context creation via EGL. The
goal is multifold -- on Linux it would be nice to not have to have XWindows
running. On other devices, it'd be nice to operate headless.

I don't know for sure if the EGL method would work on a Windows machine
that doesn't have a logged-in desktop session.

As far as I recall, the old WinNT OpnGL Tubes (and friends) screen savers
could operate prior to login on the login screen, by using the system
display context, but I'm not sure if that tactic is applicable here, but it
does suggest that somehow an OpenGL context could be created without a
desktop session. Have you tried executing a simple (non-OSG) EGL demo
executable in this situation? That would tell you if pursuing EGL to solve
the problem is worth doing.

I put in a query to some friends who might know the answer firsthand, but
haven't heard anything back. If you want to email me privately, I can try
to keep you in touch. Were your requirements specific to a particular GPU
platform (NVidia, AMD, etc) or does it need to be a vendor-agnostic
solution? Some vendors provide enhancements that others don't have.

On Fri, Jul 5, 2019 at 12:55 PM Andreas Ekstrand <
andreas.ekstr...@remograph.com> wrote:

> Thanks Chris! Guess I haven't googled generally enough - will look around
> for more less-specific solutions.
> /Andreas
>
> On 2019-07-04 01:15, Chris Djali wrote:
>
> Hi,
>
> I don't want to be the guy that says "Go away and Google your problem", but I 
> was curious and searched for OpenGL on headless Windows and saw a few results 
> where people had managed to do it. Even if you don't find something 
> compatible with your situation, you're likely to find more and better answers 
> on a less-specific mailing list.
>
> Sorry I couldn't give an actual answer,
> Chris
>
> --
> Read this topic online 
> here:http://forum.openscenegraph.org/viewtopic.php?p=76366#76366
>
>
>
>
>
> ___
> osg-users mailing 
> listosg-users@lists.openscenegraph.orghttp://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
> ___
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>


-- 
Chris 'Xenon' Hanson, omo sanza lettere. xe...@alphapixel.com
http://www.alphapixel.com/
Training • Consulting • Contracting
3D • Scene Graphs (Open Scene Graph/OSG) • OpenGL 2 • OpenGL 3 • OpenGL 4 •
GLSL • OpenGL ES 1 • OpenGL ES 2 • OpenCL
Legal/IP • Forensics • Imaging • UAVs • GIS • GPS •
osgEarth • Terrain • Telemetry • Cryptography • LIDAR • Embedded • Mobile •
iPhone/iPad/iOS • Android
@alphapixel  facebook.com/alphapixel (775)
623-PIXL [7495]
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] osgposter through Task Scheduler

2019-07-05 Thread Andreas Ekstrand
Thanks Chris! Guess I haven't googled generally enough - will look 
around for more less-specific solutions.

/Andreas

On 2019-07-04 01:15, Chris Djali wrote:

Hi,

I don't want to be the guy that says "Go away and Google your problem", but I 
was curious and searched for OpenGL on headless Windows and saw a few results where 
people had managed to do it. Even if you don't find something compatible with your 
situation, you're likely to find more and better answers on a less-specific mailing list.

Sorry I couldn't give an actual answer,
Chris

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=76366#76366





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org



___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] osgposter through Task Scheduler

2019-07-03 Thread Chris Djali
Hi,

I don't want to be the guy that says "Go away and Google your problem", but I 
was curious and searched for OpenGL on headless Windows and saw a few results 
where people had managed to do it. Even if you don't find something compatible 
with your situation, you're likely to find more and better answers on a 
less-specific mailing list.

Sorry I couldn't give an actual answer,
Chris

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=76366#76366





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] osgposter through Task Scheduler

2019-07-03 Thread Andreas Ekstrand

Hi,

Doesn't anyone have an idea about this? Basic question is, how can one 
retrieve a valid context without logging in to Windows? Is it even 
possible? I guess this problem isn't OSG-specific but I would have 
guessed that someone here had come across this before.


Even if I enable auto-login, it won't allow for remote desktop login 
since you're logged out again after such a session - this makes it hard 
to log in remotely to check the progress of headless process servers.


Regards,
Andreas


On 2019-06-16 21:17, Andreas Ekstrand wrote:

Hi,

I'm having problems with the osgposter example in Windows, or more 
precisely something similar I'm developing but the problem is easier 
to reproduce with osgposter. In my simple reproduction of the problem 
I'm trying to render an image automatically at computer startup by 
calling osgposter (inactive mode) from a Python script (os.system) 
activated as a task from Task Scheduler in Windows 10. But it seems to 
fail to fetch a valid OpenGL context. I have tried all rendering types 
in osgposter - fb, fbo, pbuffer and pbuffer-rtt.


The script works fine when started manually or when the task is set to 
start only when the user is logged on. But when activated as a task at 
computer startup whether user is logged on or not, it refuses to 
render anything. It just gets stuck in an infinite loop in the 
PosterPrinter class since FrameStamp::getFrameNumber() returns 0.


Before that, View::setUpViewInWindow results in the following messages 
if OSG_NOTIFY_LEVEL is set to DEBUG:

(...)
SingleWindow::configure - GraphicsWindow has not been created 
successfully.

(...)
Viewer::realize() - No valid contexts found, setting up view across 
all screens.

(...)
SingleWindow::configure - GraphicsWindow has not been created 
successfully.

(...)
Viewer::realize() - failed to set up any windows

Does anyone know how to get this working without having to log on to a 
Windows user?  Should it work? I have a GeForce GT 710 with the latest 
drivers. Actually, I tried adding opengl32.dll from the Mesa3D library 
to the same folder as osgposter.exe to make it work when manually 
executed while logged on through Remote Desktop. It did the trick, but 
not when activated from Task Scheduler.


Regards,
Andreas


___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] osgposter through Task Scheduler

2019-06-16 Thread Andreas Ekstrand

Hi,

I'm having problems with the osgposter example in Windows, or more 
precisely something similar I'm developing but the problem is easier to 
reproduce with osgposter. In my simple reproduction of the problem I'm 
trying to render an image automatically at computer startup by calling 
osgposter (inactive mode) from a Python script (os.system) activated as 
a task from Task Scheduler in Windows 10. But it seems to fail to fetch 
a valid OpenGL context. I have tried all rendering types in osgposter - 
fb, fbo, pbuffer and pbuffer-rtt.


The script works fine when started manually or when the task is set to 
start only when the user is logged on. But when activated as a task at 
computer startup whether user is logged on or not, it refuses to render 
anything. It just gets stuck in an infinite loop in the PosterPrinter 
class since FrameStamp::getFrameNumber() returns 0.


Before that, View::setUpViewInWindow results in the following messages 
if OSG_NOTIFY_LEVEL is set to DEBUG:

(...)
SingleWindow::configure - GraphicsWindow has not been created successfully.
(...)
Viewer::realize() - No valid contexts found, setting up view across all 
screens.

(...)
SingleWindow::configure - GraphicsWindow has not been created successfully.
(...)
Viewer::realize() - failed to set up any windows

Does anyone know how to get this working without having to log on to a 
Windows user?  Should it work? I have a GeForce GT 710 with the latest 
drivers. Actually, I tried adding opengl32.dll from the Mesa3D library 
to the same folder as osgposter.exe to make it work when manually 
executed while logged on through Remote Desktop. It did the trick, but 
not when activated from Task Scheduler.


Regards,
Andreas

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org