I won&#39;t claim if I understood exactly what you are trying to do here but in my understanding you want to bind GL texture objects already in memory to VTK.  I don&#39;t know that you can do that without modifying VTK&#39;s vtkTexture or vtkOpenGLTexture classes. <div>
<br></div><div><br></div><div>Now if you are using shader, this make it easier as you can just pass the sampler id and if you know what object binds to what texture you can write a very simple shader to achieve what you are trying to do. </div>
<div><br></div><div>Hope this helps. </div><div><br><br><div class="gmail_quote">On Mon, Dec 20, 2010 at 7:19 AM, David McKinnon <span dir="ltr">&lt;<a href="mailto:mckinnondavid@gmail.com">mckinnondavid@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi,<br>  I have a project where I have a managed collection of OpenGL textures.  The textures all have unique identifiers (GLuint) and their various characteristics (GL_RGBA, width, height, etc) are stored in a set of classes.<br>

<br>Is there some way that I can wrap these texture objects that are already stored on the GPU <font face="verdana" size="2">within one of the vtk classes such as vtkTexture or vtkTextureObject so that I might be able to display them in a vtkRenderWindow?<br>

<br>If this is not possible is there some other example of binding OpenGL textures to a context so that they can be rendered within a window?<br><br>Best Regards,<br>David...<br> </font><div>
</div>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>| Aashish Chaudhary <br>| R&amp;D Engineer         <br>| Kitware Inc.            <br>| <a href="http://www.kitware.com">www.kitware.com</a>    <br>
</div>