[vtkusers] Off screen rendering Linux, OpenGL accelerated

Francois Bertel 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:
http://www.cdash.org/CDash/testDetails.php?test=18630448&build=289285

The 3 following tests passed on arkadia (OS stands for Offscreen):

* TestOSConeCxx (VTK/Rendering/Testing/Cxx/TestOSConeCxx.cxx)
http://www.cdash.org/CDash/testDetails.php?test=18630463&build=289285

* OSCone-image (VTK/Graphics/Testing/Tcl/OSCone.tcl)
http://www.cdash.org/CDash/testDetails.php?test=18629944&build=289285

* OSConePython
http://www.cdash.org/CDash/testDetails.php?test=18630126&build=289285


On Tue, Mar 10, 2009 at 5:20 PM, Anton Deguet <anton.deguet at jhu.edu> wrote:
> Hello,
>
> 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();
>  pOffScreenRenderWindow->OffScreenRenderingOn();
>
> 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?
>
>
> Anton
>
>
> 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
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>



-- 
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 mailing list