[vtkusers] Off screen rendering Linux, OpenGL accelerated
francois.bertel at kitware.com
Wed Mar 11 16:55:57 EDT 2009
arkadia is running Ubuntu 8.10 Linux x86 and has a nVidia GeForce 6800, 256MB
The driver is 177.82:
The 3 following tests passed on arkadia (OS stands for Offscreen):
* TestOSConeCxx (VTK/Rendering/Testing/Cxx/TestOSConeCxx.cxx)
* OSCone-image (VTK/Graphics/Testing/Tcl/OSCone.tcl)
On Tue, Mar 10, 2009 at 5:20 PM, Anton Deguet <anton.deguet at jhu.edu> wrote:
> I would like to know if there is an easy way to render off screen on Linux
> (X) with OpenGL (NVidia accelerated).
> My code looks like:
> vtkRenderWindow *pOffScreenRenderWindow = vtkOpenGLRenderWindow::New();
> This works on Windows (at least XP, VS 2008, VTK 5.2) and Mac OS (10.5, gcc
> 4, VTK 5.0). I tried all kind of combinations on Linux (CentOS, Ubuntu
> 8.04, VTK 5.0, 5.2, 5.3) and it fails.
> Is there any reason this doesn't work? Is there a magic method to call or
> build configuration needed?
> PS: I also did a bit of research and found the class
> vtkXOpenGLOffScreenRenderWindow (http://www.cmake.org/Wiki/VTK_Classes).
> With some minor updates I got this class to compile and run on Linux 64
> (amd) with VTK 5.2. The method ReportCapabilities() lists NVIDIA as the
> OpenGL vendor. It would be nice if whatever is implemented in this external
> class could make it to VTK.
> Anton Deguet, Research Engineer, ERC-CISST/LCSR, Johns Hopkins University
> e-mail: anton.deguet at jhu.edu, iChat: anton.deguet at mac.com
> office phone: 410-516-5261, cell phone: 410-790-0456
> JHU, LCSR, CSEB 137b, 3400 North Charles Street, Baltimore, MD 21218, USA
> Powered by www.kitware.com
> Visit other Kitware open-source projects at
> Please keep messages on-topic and check the VTK FAQ at:
> Follow this link to subscribe/unsubscribe:
François Bertel, PhD | Kitware Inc. Suite 204
1 (518) 371 3971 x113 | 28 Corporate Drive
| Clifton Park NY 12065, USA
More information about the vtkusers