Login
Username:

Password:

Remember me



Lost Password?

Register now!
Main Menu
H3D.org Feeds


Browsing this Thread:   1 Anonymous Users






Running H3D window on second screen
#1
Not too shy to talk
Not too shy to talk


See User information
Hello,

I am trying to run an H3D process on my second screen under Ubuntu. Previously, I was using python to handle this in Windows through the win32process library. This library does not exist under Linux, and the subprocess library in python doesn't seem to have this functionality, at least not under Linux.

Basically, what I need is for H3D to always run in fullscreen on my second monitor when it's called.

In my x3d file, I currently have:
<H3DWindowNode fullscreen='1' />


This gets called in python through:
subprocess.Popen(['H3DLoad'process_name], stdout=PIPEstderr=PIPE)

where process_name is the path to the x3d file.

From my understanding of the H3DWindowNode documentation, there doesn't seem to be an option to 'select a screen' or to set the pixel position of one of the window corners, unless it's a field/option I'm not seeing. What is the way to achieve this under Linux?

Thanks,
-Yaz

Posted on: 5/20 20:16
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong Top


Re: Running H3D window on second screen
#2
Webmaster
Webmaster


See User information
We have a task in our backlog (not the public one) about unifying the command line options for H3DLoad/H3DViewer.
For H3DViewer you can set the position/size (at least if you build the latest trunk).
For H3DLoad I am afraid it looks like only size can be set. If you are not opposed to modifying this yourself you could just add a similar option to your H3DLoad as the one that is in H3DViewer.

Posted on: 5/22 9:09
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong Top


Re: Running H3D window on second screen
#3
Not too shy to talk
Not too shy to talk


See User information
I have the latest trunk compiled on Linux, I can take a crack at it. Can you point me to where this is implemented in H3DViewer?

Posted on: 5/23 19:53
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong Top


Re: Running H3D window on second screen
#4
Webmaster
Webmaster


See User information
In H3DViewer it is implemented in H3DViewerApp.cpp in the
MyApp::OnInit function.

Also double check H3DLoad command lines so I am not completely out of the blue, but I can't find anything in the code regarding this.

Posted on: 5/24 7:42
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong Top







You can view topic.
You cannot start a new topic.
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.
You cannot use topic type.
You cannot use HTML syntax.
You cannot use signature.
You cannot create pdf.
You cannot get print page.

[Advanced Search]





(C) 2012 SenseGraphics AB    ---    Powered by XOOPS