<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p style="margin-top:0;margin-bottom:0">You rock.</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">I will give it a try. Not sure how I missed it.</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">BTW, Google is my friend, but I kept finding this link whatever search terms I gave google.</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0"><a href="http://vtk.1045678.n5.nabble.com/Using-multile-texture-files-in-vtkOBJImporter-td5744430.html" class="OWAAutoLink" id="LPlnk946983" previewremoved="true">http://vtk.1045678.n5.nabble.com/Using-multile-texture-files-in-vtkOBJImporter-td5744430.html</a><br>
<br>
</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0"></p>
<div dir="ltr" style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px;">
"It is possible to have multiple texture maps applied to a single surface where the texture maps are blended together using a blending function. That is the part we do not support. "</div>
<div dir="ltr" style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px;">
<br>
</div>
<div dir="ltr" style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px;">
<br>
</div>
<div dir="ltr" style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px;">
I wasn't sure what to make of that comment! :-)</div>
<div dir="ltr" style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px;">
<br>
</div>
<div dir="ltr" style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px;">
<div dir="ltr" style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px;">
Many other places in archives also state that only one texture and one texture coordinate is supported...</div>
<div><br>
</div>
<br>
</div>
<div dir="ltr" style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px;">
<br>
</div>
<div dir="ltr" style="font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px;">
<br>
</div>
<p></p>
<div id="Signature">
<div id="divtagdefaultwrapper" dir="ltr" style="font-size: 12pt; color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;">
<p></p>
</div>
</div>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Ken Martin <ken.martin@kitware.com><br>
<b>Sent:</b> October 30, 2018 3:16:10 PM<br>
<b>To:</b> Patrick Bergeron<br>
<b>Cc:</b> vtk-developers@public.kitware.com<br>
<b>Subject:</b> Re: [vtk-developers] Multiple textures</font>
<div> </div>
</div>
<meta content="text/html; charset=utf-8">
<div>
<div dir="ltr">
<div dir="ltr">I responded yesterday so maybe check your spam folder etc. Here is the link
<div><br>
</div>
<div><a href="https://markmail.org/thread/7gtvznk7jql7uv74">https://markmail.org/thread/7gtvznk7jql7uv74</a><br>
</div>
<div><br>
</div>
<div><br>
</div>
</div>
</div>
<div class="x_gmail_extra"><br>
<div class="x_gmail_quote">On Tue, Oct 30, 2018 at 3:10 PM, Patrick Bergeron <span dir="ltr">
<<a href="mailto:pbergeron@spiria.com" target="_blank">pbergeron@spiria.com</a>></span> wrote:<br>
<blockquote class="x_gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div dir="ltr">
<div id="x_m_-6038442304282550059divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:rgb(0,0,0); font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
<p style="margin-top:0; margin-bottom:0">Hi folks. I sent this a while back on vtk-users but got no response.</p>
<p style="margin-top:0; margin-bottom:0"><br>
</p>
<p style="margin-top:0; margin-bottom:0"><br>
</p>
<p style="margin-top:0; margin-bottom:0">I am sending this to vtk-developers because if the features isn't implemented, I will implement it.</p>
<p style="margin-top:0; margin-bottom:0"><br>
</p>
<p style="margin-top:0; margin-bottom:0">I am trying to pass multiple texture buffers to a fragment shader.</p>
<p style="margin-top:0; margin-bottom:0"><br>
</p>
<p style="margin-top:0; margin-bottom:0">I saw I can do:</p>
<p style="margin-top:0; margin-bottom:0"><br>
</p>
<p style="margin-top:0; margin-bottom:0">1) actor->SetTexture(<wbr>vtkTexture*) takes only a single vtkTexture</p>
<p style="margin-top:0; margin-bottom:0"><br>
</p>
<p style="margin-top:0; margin-bottom:0">2) actor->GetProperty()-><wbr>SetTexture(int unit, vtkTexture*) takes a texture that I can associate to a texture unit, but those functions are deprecated.</p>
<p style="margin-top:0; margin-bottom:0"><br>
</p>
<p style="margin-top:0; margin-bottom:0">In fact, I think that (2) doesn't even work anymore with the OpenGL2 backend, at least my shader code doesn't seem to be getting them, maybe I am doing something wrong. In any case, I get a vtk warning saying I should
not do that.</p>
<p style="margin-top:0; margin-bottom:0"><br>
</p>
<p style="margin-top:0; margin-bottom:0"><br>
</p>
<p style="margin-top:0; margin-bottom:0">Some folks have said I should combine multiple images into a single image before sending as a texture image. But I can't do this, because I need to send texture images as well as multiple data (non-image) buffers to
the shader as well.</p>
<p style="margin-top:0; margin-bottom:0"><br>
</p>
<p style="margin-top:0; margin-bottom:0">How can I attach multiple image buffers to the actor and/or ogl mapper?</p>
<p style="margin-top:0; margin-bottom:0"><br>
</p>
<p style="margin-top:0; margin-bottom:0"></p>
<p style="margin-top:0; margin-bottom:0"><br>
</p>
<p style="margin-top:0; margin-bottom:0"></p>
<div id="x_m_-6038442304282550059Signature">
<div id="x_m_-6038442304282550059divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:rgb(0,0,0); font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
<p></p>
</div>
</div>
</div>
</div>
<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/<wbr>opensource/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="https://public.kitware.com/mailman/listinfo/vtk-developers" rel="noreferrer" target="_blank">https://public.kitware.com/<wbr>mailman/listinfo/vtk-<wbr>developers</a><br>
<br>
<br>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
<div class="x_gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr">
<div>Ken Martin PhD
<div>Distinguished Engineer<br>
<span style="font-size:12.8px">Kitware Inc.</span><br>
</div>
<div>101 East Weaver Street<br>
Carrboro, North Carolina<br>
27510 USA<br>
<br>
<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>
</div>
</div>
</div>
</div>
</div>
</body>
</html>