You have to declare the 3D texture after creating the offcreen
rendering context. This is maybe the main problem, because I had it
before using pbuffers and 3D textures in openGL. So you have to create
first the offscreen rendering context and then you can create the 3D
texture<br><br><div><span class="gmail_quote">2005/10/19, Mark Wyszomierski <<a href="mailto:markww@gmail.com">markww@gmail.com</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>HI Lisa,</div>
<div> </div>
<div>I looked up what I had posted:</div>
<div> </div>
<div> <a href="http://public.kitware.com/pipermail/vtkusers/2005-August/081366.html" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://public.kitware.com/pipermail/vtkusers/2005-August/081366.html
</a></div>
<div> </div>
<div>you're right, it had nothing to do with the window to image filter, but something with </div>
<div>capturing an offscreen rendering context for a print operation. It was so long ago, </div>
<div>maybe this is more related to what you're trying to do though anyways Jesse, </div><span class="sg">
<div> </div>
<div>Mark<br><br> </div></span><div><span class="e" id="q_1070a066e2947d1f_2">
<div><span class="gmail_quote">On 10/19/05, <b class="gmail_sendername">Lisa Avila</b> <<a href="mailto:lisa.avila@kitware.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">lisa.avila@kitware.com
</a>> wrote:</span>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;">Mark,<br><br>vtkWindowToImageFilter
is not offscreen rendering so this is not the same problem unless the
render window you were using was offscreen. I am not sure why you
should have a problem with vtkWindowToImageFilter - you may need to
change whether you read from the front or back buffer depending on your
exact rendering parameters (and perhaps even your graphics driver) but
it should work....
<br><span><br>Lisa</span>
<div><span><br><br><br>At 02:15 PM 10/18/2005, Mark Wyszomierski wrote:<br>
<blockquote type="cite">I believe I ran into the a similar problem before, I wanted to<br>save what was currently being rendered to screen to an<br>image file using vtkWindowToimageFilter. This did not work
<br>with the 3d texture volume mapper, but it did for the rest of the<br>volume renderers. I had to write some code to extract the pixel data<br>left in the screen buffer, and this worked ok. Sorry I can't be <br>more specific, this was about 2 months ago, but I posted a
<br>better explanation of what I did to the mailing list at that point, <br>it should still be in the archives. Hopefully this can give you <br>some ideas if the general problems are the same,<br> <br>Mark<br><br> <br>On 10/18/05,
<b>Lisa Avila</b> <<a href="mailto:lisa.avila@kitware.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">lisa.avila@kitware.com</a> > wrote: <br>
<dl><br>
<dd>Hi Jesse,<br><br>
</dd><dd>The offscreen context probably does not support the extension necessary to<br>
</dd><dd>do the 3D texture mapping (this is typical). I am not sure if there is a <br>
</dd><dd>way around it - hopefully drivers will support it in the future.<br><br>
</dd><dd>Lisa<br><br><br><br>
</dd><dd>At 04:29 PM 10/11/2005, Jesse Corrington wrote:<br>
</dd><dd>>I just switched to using 3d texture mapping for volumes, and now i am<br>
</dd><dd>>unable to do offscreen rendering, but the onscreen works very well. Is it<br>
</dd><dd>>possible to have offscreen rendering using 3d texture mapping.<br>
</dd><dd>><br>
</dd><dd>>_________________________________________________________________ <br>
</dd><dd>>Is your PC infected? Get a FREE online computer virus scan from McAfee®<br>
</dd><dd>>Security. <a href="http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
</a>
<br>
</dd><dd>><br>
</dd><dd>>_______________________________________________<br>
</dd><dd>>This is the private VTK discussion list. Please keep messages on-topic.<br>
</dd><dd>>Check the FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.vtk.org/Wiki/VTK_FAQ </a><br>
</dd><dd>>Follow this link to subscribe/unsubscribe:<br>
</dd><dd>><a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"> http://www.vtk.org/mailman/listinfo/vtkusers</a><br><br><br>
</dd><dd>_______________________________________________ <br>
</dd><dd>This is the private VTK discussion list.<br>
</dd><dd>Please keep messages on-topic. Check the FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
</dd><dd>Follow this link to subscribe/unsubscribe:<br>
</dd><dd><a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.vtk.org/mailman/listinfo/vtkusers</a><br><br></dd>
</dl><br>_______________________________________________<br>This is the private VTK discussion list. <br>Please keep messages on-topic. Check the FAQ at:
<a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.vtk.org/Wiki/VTK_FAQ</a><br>Follow this link to subscribe/unsubscribe:<br><a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://www.vtk.org/mailman/listinfo/vtkusers</a></blockquote></span></div></blockquote></div><br>
</span></div><br>_______________________________________________<br>This is the private VTK discussion list.<br>Please keep messages on-topic. Check the FAQ at: <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">
http://www.vtk.org/Wiki/VTK_FAQ</a><br>Follow this link to subscribe/unsubscribe:<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers
</a><br><br><br></blockquote></div><br>