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.
Ok I should have said 'is to have J3D display to the Xserver running on 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.
Yes this will work and I didn't think of it, but as you describe below it's a little complicated to be able to see what the Java3D app is doing. And I think it's impossible to interact with it (push swing buttons, pull down menus, etc.)
My real point was only that the VNC Xserver doesn't support OpenGL, and even it did it would be in software, and not using the video board HW.
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.
VNC is an Xserver, a virtual SW only Xserver, that has it's own really low bandwidth protocol between it and it's viewer client. VNC servers are available for many platforms, and viewers are available for even more. Actually there is a pure Java viewer that can run in a web browser. I use the X viewer all the time to control PC's from my desktop, and I also use the PC viewer from home to monitor things I left running at work.
Xvnc is based off of the XFree86 Xserver, I wonder if anyone has ever looked into getting the Mesa libraries to work with it so it could have and OGL extension? It'd be slow I know (but VNC is used in slow places already) but it'd be better than nothing.
-Kyle
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%
-- _ -------------------------------ooO( )Ooo------------------------------- Kyle J. McDonald (o o) Systems Support Engineer Sun Microsystems Inc. ||||| Enterprise Server Products [EMAIL PROTECTED] 1 Network Drive BUR03-4630 \\\// voice: (781) 442-2184 Burlington, MA 01803 (o o) fax: (781) 442-1542 -------------------------------ooO(_)Ooo-------------------------------
=========================================================================== 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".
