> Date:         Wed, 5 Mar 2003 21:06:20 -0500
> From: Kyle McDonald <[EMAIL PROTECTED]>
>
> The only way to have Java3D use the video board in your Solaris
> machine is to sit at the console (monitor and keyboard) of that
> solaris machine.

It depends on what you need.  I actually do this all the time working
from home if I want to do a non-interactive test.  Client apps on the
Solaris machine in my office connect to an X server running on my PC at
home for display.  If I need to run a Java 3D app on the frame buffer of
my office machine, I set the DISPLAY variable so that it points to the X
server running on the office machine instead.

This works as long as I disable dtlogin and the screen saver and start
the X server on the console of the office machine under my own login:

klia% /usr/openwin/bin/xinit /usr/dt/bin/Xsession -- /usr/openwin/bin/Xsun :0

The screen can be locked and monitor can be off while I'm at home.  It
sounds like VNC for Unix is essentially an X server, so it might work for
VNC as well.

You can get a snapshot of the output of a Java 3D app by grepping through
the output of xlswins for the app name, and feeding the xid of the
window through the appropriate filters:

klia% printenv DISPLAY
klia:1.0
klia% setenv DISPLAY klia:0.0
klia% java ObjLoad skull.obj &
[1] 22048
klia% xlswins -l | grep ObjLoad
3:        0x4000031  (); (javax.swing.JFrame)(ObjLoad)    688x669+0+0  +7+26
klia% xwd -id 0x4000031 | xwdtopnm | xv -display klia:1.0 - &
[2] 22051 22052 22053
xwdtopnm: writing PPM file
klia%

-- Mark Hood

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to