<div dir="ltr">The 3D texture support is a bit limited/low level in VTK. Rendering/OpenGL2/vtkTextureObject supports 3D textures but it is a bit lower level. That is the class we use within VTK for 3D texture operations.  You can though, create a TextureObject and assign it to a vtkOpenGLTexture which you then assign to an actor but the texture coordinates are by default 2D so you would need some custom shader code to handle it.<div><br></div><div>Thanks</div><div>Ken</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Aug 9, 2016 at 4:27 AM, Haichao Miao <span dir="ltr"><<a href="mailto:miao@cg.tuwien.ac.at" target="_blank">miao@cg.tuwien.ac.at</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I am using VTK7 with OpenGL2, is there a way for me to do 3D texture mapping?<br>
<br>
Basically, I have two vtkImageData, a data image and a mask image. From the mask I extracted polydata using marching cubes. Now I want to use the data image as texture and map it on the polydata. Unfortunately, I saw that the vtkTexture is not supporting 3D texture.<br>
<br>
It is necessary, that I use texture mapping, as I need the texture coordinates for later computations.<br>
<br>
Would there be a elegant way to do this? Alternatively, I could switch to an older version.<br>
<br>
Cheers,<br>
Hai<br>
<br>
<br>
______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensou<wbr>rce/opensource.html</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtk-developers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>vtk-developers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtk-developers" rel="noreferrer" target="_blank">http://public.kitware.com/mail<wbr>man/listinfo/vtk-developers</a><br>
<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Ken Martin PhD<div>Chairman & CFO<br>Kitware Inc.<br>28 Corporate Drive<br>Clifton Park NY 12065<br>518 371 3971<div><br></div><div><span style="font-size:10pt;font-family:Tahoma,sans-serif">This communication,
including all attachments, contains confidential and legally privileged
information, and it is intended only for the use of the addressee.  Access to this email by anyone else is
unauthorized. If you are not the intended recipient, any disclosure, copying,
distribution or any action taken in reliance on it is prohibited and may be
unlawful. If you received this communication in error please notify us
immediately and destroy the original message. 
Thank you.</span></div></div></div>
</div>