[vtkusers] VTK 5.2 and 5.4 bug

Rolf Anders Syvertsen Rolf.Anders.Syvertsen at rikshospitalet.no
Mon Apr 6 08:26:56 EDT 2009


That would have been great if VTK's messa source would compile. But since it will not, that is not that simple. Have changed all the messa files so that they compile (vtk 5.4) but I haven't made it work :(



-----Opprinnelig melding-----
Fra: vtkusers-bounces at vtk.org [mailto:vtkusers-bounces at vtk.org] På vegne av Francois Bertel
Sendt: 2. april 2009 16:22
Til: VTK
Emne: Re: [vtkusers] VTK 5.2 and 5.4 bug

Hi,

For Rolf:

If you want to perform offscreen rendering without X, you have to set VTK_OPENGL_HAS_OSMESA to ON.


For Anton:

Regression tests are a good way to start:

VTK/Rendering/Testing/Cxx/TestOSConeCxx.cxx
VTK/Graphics/Testing/Tcl/OSCone.tcl


Note that arkadia is Ubuntu 8.10 with nVidia drivers 177.82 and an nVidia GeForce 6800 and it works fine on it.

So run the test first

ctest -R TestOSConeCxx

and see if it fails for you.

On Thu, Apr 2, 2009 at 9:49 AM, Anton Deguet <anton.deguet at jhu.edu> wrote:
> I have a similar problem and haven't been able to find a concise 
> how-to.  I understand that OS specific issues are hard to handle but 
> it would be nice to know if off-screen rendering is possible or not on 
> Linux and under which conditions.  A sample of code would be welcome.
>
> My setup, which I thinks is pretty classic, is:
> - Ubuntu 8.04
> - NVidia drivers
> - VTK 5.0, 5.2, 5.4
>
> All versions tested lead to a segmentation fault after an X11 message 
> re. an invalid windon Id when off-screen rendering is set On.  The 
> same code works on Mac OS and Windows but I need Linux.
>
> Anton
>
>
> ---
> Anton Deguet, Research Engineer, ERC-CISST/LCSR, Johns Hopkins 
> University
> e-mail: anton.deguet at jhu.edu
> JHU, LCSR, CSEB 137b, 3400 North Charles Street, Baltimore, MD 21218, 
> USA
>
>
>
>
> On Apr 2, 2009, at 7:45 AM, Rolf Anders Syvertsen wrote:
>
>> When I try to set the render offscreen value on, my linux computers 
>> gets a segmentation fault. Works find on my windows computer.
>>
>> I need a way to be able to render without the screen (xwindows), need 
>> to be able to render on my linux cluster, have loads of data that I 
>> need to render. Is it possible to do this with VTK? Or do I need to 
>> find an other way of doing this? Am a little feedup of messing with 
>> the !"well" documented vtk.
>>
>>
>> -----Opprinnelig melding-----
>> Fra: vtkusers-bounces at vtk.org [mailto:vtkusers-bounces at vtk.org] På 
>> vegne av Francois Bertel
>> Sendt: 31. mars 2009 15:43
>> Til: vtkusers at vtk.org
>> Emne: Re: [vtkusers] VTK 5.2 and 5.4 bug
>>
>> Hi,
>>
>> As mangle Mesa was pretty broken and there were other alternatives to 
>> perform offscreen rendering, it was decided a long time ago to stop 
>> maintaining  the vtkMesa* classes.
>>
>> The other alternatives for offscreen rendering are:
>> * if you have mesa compiled with offscreen and you set 
>> VTK_OPENGL_HAS_OSMESA to ON during the VTK build and you set 
>> OffScreenRendering ivar to on on the vtkWindow (superclass of 
>> vtkXOpenGLRenderWindow), it will use it first.
>> * if not, if you graphics card support framebuffer object (FBO), it 
>> will use it
>> * if not, if supported, if will use pbuffers (pixel buffers) (note:
>> this has nothing to do with pixel buffer objects (PBO) )
>> * if not, it will use pixmaps.
>>
>> On the VTK dashboard,
>> * arkadia.kitware covers offscreen with FBO
>> * hythloth.kitware covers Mesa
>> * dash16.kitware covers Mesa with VTK_OPENGL_HAS_OSMESA:BOOL=ON
>>
>>
>>
>> On Tue, Mar 31, 2009 at 4:01 AM, Rolf Anders Syvertsen 
>> <Rolf.Anders.Syvertsen at rikshospitalet.no> wrote:
>>>
>>> The code will not compile with Mesa enabled. The 
>>> Rendering/vtkMesa*.* files are old.  Where are the correct files? 
>>> Has the Mesa part been forgotten? Is there an other way to run 
>>> offscreen rendering on linux in the new versions?
>>> Did not work on linux on 5.2 by default with out mesa.
>>>
>>>
>>>
>>> Rolf Anders Syvertsen
>>> Software Developer
>>> IMI (Institute for Medical Informatics) Radiumhospitalet, Oslo 
>>> Universitetssykehus HF
>>> email: rolf.anders.syvertsen at rikshospitalet.no
>>>
>>> Denne meldingen inneholder ikke sensitiv informasjon som bryter med 
>>> Rikshospitalets krav til informasjonssikkerhet.
>>> (In compliance with the Security Policy of Rikshospitalet , the 
>>> content of this message (including any attachments) is of a 
>>> non-sensitive nature)
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> 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 
>> _______________________________________________
>> 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
>> _______________________________________________
>> 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 _______________________________________________
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



More information about the vtkusers mailing list