Hi Cory,<br><br>I'd love to take a look at your FBO classes too. If you could send them off the list to me, it'd be perfect.<br><br>Thanks<br>-karthik<br><br><div><span class="gmail_quote">On 2/7/07, <b class="gmail_sendername">
Cory Quammen</b> <<a href="mailto:cquammen@cs.unc.edu">cquammen@cs.unc.edu</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
 > In short, painters might help you implement a multi-pass algorithm, but<br>> they probably won't get you all the way.  Surely there must be a better<br>> mechanism for setting up multi-pass algorithms, but I have not thought
<br>> of one.<br>><br>> -Ken<br>><br><br>My solution for accessing framebuffer objects from VTK involves two<br>classes, vtkFBORenderer, a subclass of vtkOpenGLRenderer and<br>vtkFBOTexture, a subclass of vtkOpenGLTexture. To use these classes,
<br>you first pass a vtkFBOTexture to the vtkFBORenderer. Then, you drop<br>the vtkFBORenderer in wherever you previously had a vtkRenderer.<br><br>Prior to rendering, the vtkFBORenderer invokes methods in<br>vtkFBOTexture to enable the FBO as the target framebuffer. After
<br>rendering, another vtkFBOTexture method is called to set the target<br>framebuffer to the default one.<br><br>You can use the vtkFBOTexture just as you would any other vtkTexture.<br>To set up a multipass rendering algorithm, you could in principle use
<br>several vtkFBOTextures that you pass in to your vtkFBORenderer at<br>various passes.<br><br>I've successfully used these classes in an application, both as simply<br>a replacement for the standard vtkOpenGLRenderer and for getting
<br>access to floating-point blending.<br><br>Please let me know if you'd like to know more. I'd be happy to<br>contribute these as VTK classes.<br><br>Hope that helps,<br>Cory<br><br>--<br>Cory Quammen<br>Department of Computer Science
<br>University of North Carolina at Chapel Hill<br><a href="http://www.cs.unc.edu/~cquammen">http://www.cs.unc.edu/~cquammen</a><br>_______________________________________________<br>vtk-developers mailing list<br><a href="mailto:vtk-developers@vtk.org">
vtk-developers@vtk.org</a><br><a href="http://www.vtk.org/mailman/listinfo/vtk-developers">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br></blockquote></div><br><br clear="all"><br>