[vtkusers] RenderWindow capture works with VolumeRayCastMapper but not VolumeTextureMapper3D?

Mark Wyszomierski markww at gmail.com
Fri Aug 19 08:41:40 EDT 2005


Hi Lisa,

Thanks for the info, I also tried the window to image class but that
also suffers from the same problem. What I ended up doing was calling
GetRGBACharPixelData() from my win32 opengl render window class,
passing 0 for the 'front' parameter, and stored the data in a
vtkUnsignedChar array. This works fine and I can finally get the
texture mapped volume into an image,

Thanks,
Mark

On 8/18/05, Lisa Avila <lisa.avila at kitware.com> wrote:
> 
> The 3D texture mapper uses OpenGL extensions which are probably not
> supported in the offscreen (memory) rendering context.
> 
> Lisa
> 
> 
> At 12:14 PM 8/18/2005, Mark Wyszomierski wrote:
> >Hi all,
> >
> >I have been volume rendering with the VolumeTextureMapper3D class and
> >the VolumeRayCastMapper class as well.
> >
> >When it comes to printing, and I'm using the VolumeRayCastMapper, I
> >can capture from my render window the volume and printing is fine.
> >
> >If I am rendering using the VolumeTextureMapper3D however, the volume
> >is never captured although all my other actors in the scene do appear
> >in the print out. Is there anything special that needs to be done when
> >using VolumeTextureMapper3D? I capture like this:
> >
> >void OnPrint(CDC *pDC)
> >{
> >     RenderWindow->SetupMemoryRendering(200,200, pDC->GetSafeHdc());
> >     RenderWindow->Render();
> >     HDC hdcMem = RenderWindow->GetMemoryDC();
> >     StretchBlt(pDC->GetSafeHdc(),0,0,400,400,hdcMem,0,0,200,200,SRCCOPY);
> >     RenderWindow->ResumeScreenRendering();
> >}
> >
> >Normal user interaction is fine for both methods, just when it comes
> >to this print operation the texture mapper doesnt want to be captured!
> >
> >Thanks,
> >Mark
> >_______________________________________________
> >This is the private VTK discussion list.
> >Please keep messages on-topic. Check the 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