[vtkusers] custom renderer in vtkRenderView

Stephane PLOIX stephane.ploix at edf.fr
Mon Oct 19 10:27:52 EDT 2009


Hi David,

If you look in the VTK CVS, there is a possibility to override the 
renderer calls, by giving it a "vtkRenderPass" in which you can do 
whatever you like.
Look for vtkRenderPass in the subdirectory "Rendering", and have a look at 
the tests in VTK/Rendering/Testing/Cxx/TestBlurAndSobelPass.cxx and 
TestShadowMapPss.cxx for examples.

Stephane




jeff.baumes at kitware.com 
Envoyé par : vtkusers-bounces at vtk.org
19/10/2009 16:17

A
dfeng at cs.unc.edu
cc
vtkusers at vtk.org
Objet
Re: [vtkusers] custom renderer in vtkRenderView






No, not currently. I'd suggest either making the subclass from vtkView
itself, or possibly subclass vtkRenderView but in the constructor you
could remove the default renderer and replace it with your own.

Jeff

On Wed, Oct 14, 2009 at 9:51 AM, David Feng <dfeng at cs.unc.edu> wrote:
> I'd like to write a view that uses a custom renderer, but right now it's 
not
> clear that there's a way to override the renderer created by default for 
a
> vtkRenderView.  The custom renderer redirects the rendering into a frame
> buffer object and draws the output onto screen-filling quad.
> Is there a way to plug this renderer into vtkRenderView?
>
> Thanks,
> David
> _______________________________________________
> 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
>



-- 
Jeff Baumes, Ph.D.
R&D Engineer, Kitware Inc.
(518) 881-4932
jeff.baumes at kitware.com
_______________________________________________
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




Ce message et toutes les pièces jointes (ci-après le 'Message') sont établis à l'intention exclusive des destinataires et les informations qui y figurent sont strictement confidentielles. Toute utilisation de ce Message non conforme à sa destination, toute diffusion ou toute publication totale ou partielle, est interdite sauf autorisation expresse.

Si vous n'êtes pas le destinataire de ce Message, il vous est interdit de le copier, de le faire suivre, de le divulguer ou d'en utiliser tout ou partie. Si vous avez reçu ce Message par erreur, merci de le supprimer de votre système, ainsi que toutes ses copies, et de n'en garder aucune trace sur quelque support que ce soit. Nous vous remercions également d'en avertir immédiatement l'expéditeur par retour du message.

Il est impossible de garantir que les communications par messagerie électronique arrivent en temps utile, sont sécurisées ou dénuées de toute erreur ou virus.
____________________________________________________

This message and any attachments (the 'Message') are intended solely for the addressees. The information contained in this Message is confidential. Any use of information contained in this Message not in accord with its purpose, any dissemination or disclosure, either whole or partial, is prohibited except formal approval.

If you are not the addressee, you may not copy, forward, disclose or use any part of it. If you have received this message in error, please delete it and all copies from your system and notify the sender immediately by return message.

E-mail communication cannot be guaranteed to be timely secure, error or virus-free.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20091019/037d08d1/attachment.htm>


More information about the vtkusers mailing list