<div dir="ltr">Thanks, Nathan.<br><br>I'll keep the yt-developers list posted if I I solve the issue and think it can integrate back into yt.<br><br>-Scott<br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><br>Scott Feister, Ph.D.<br>Postdoctoral Researcher, Flash Center for Computational Science<br></div><div>University of Chicago, Department of Astronomy and Astrophysics<br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote">On Fri, Jan 27, 2017 at 2:39 PM, Nathan Goldbaum <span dir="ltr"><<a href="mailto:nathan12343@gmail.com" target="_blank">nathan12343@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi Scott,</div><div><br></div><div>Making it easier to do this has been a longstanding issue. If you'd be interested in doing code development along this front that would be very welcome.</div><div><br></div><div>Right now the best place to start would be the MultiVariateTransferFunction:</div><div><br></div><div><a href="https://bitbucket.org/yt_analysis/yt/src/23d0e83400c92b26416052a26d89444bdd1de9ed/yt/visualization/volume_rendering/transfer_functions.py?at=yt&fileviewer=file-view-default#transfer_functions.py-240" target="_blank">https://bitbucket.org/yt_<wbr>analysis/yt/src/<wbr>23d0e83400c92b26416052a26d8944<wbr>4bdd1de9ed/yt/visualization/<wbr>volume_rendering/transfer_<wbr>functions.py?at=yt&fileviewer=<wbr>file-view-default#transfer_<wbr>functions.py-240</a><br></div><div><br></div><div>Right now this is only directly exposed to users for "isocontour" volume renderings (see the ColoTransferFunction subclass), but in principle it could be generalized to do what you're looking for (e.g. the brightness coming from density but the color coming from temperature). I think John Wise even used it for exactly this a long time ago, but to my knowledge no one has ever used it for this sort of thing beyond experimental use cases. Having a user-visible API for setting this sort of thing up would be really nice.</div><div><br></div><div>Sorry that I don't have an immediately useful response, but I hope this proves helpful.</div><div><br></div><div>-Nathan</div><div><br><div class="gmail_quote"><div><div class="h5"><div>On Fri, Jan 27, 2017 at 2:23 PM Scott Feister <<a href="mailto:sfeister@gmail.com" target="_blank">sfeister@gmail.com</a>> wrote:<br></div></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div class="h5"><div class="m_41305421588503849gmail-m_-7213805282443007308gmail_msg"><div class="m_41305421588503849gmail-m_-7213805282443007308gmail_msg"><div class="m_41305421588503849gmail-m_-7213805282443007308gmail_msg"><div class="m_41305421588503849gmail-m_-7213805282443007308gmail_msg"><div class="m_41305421588503849gmail-m_-7213805282443007308gmail_msg">Hi everyone,<br class="m_41305421588503849gmail-m_-7213805282443007308gmail_msg"><br class="m_41305421588503849gmail-m_-7213805282443007308gmail_msg"></div>Is there a simple way to do a volume rendering of two variables simultaneously? For example, if I wanted to overplot both density and temperature into a single volume rendering. My naive method would be to define a new variable which is a weighted sum of the two variables, and sculpt the transfer function to have different colors over the range. I'm just asking if there's a better way built into YT.<br class="m_41305421588503849gmail-m_-7213805282443007308gmail_msg"><br class="m_41305421588503849gmail-m_-7213805282443007308gmail_msg">I've done a lot of searching through the documentation, but I can't find
 a clear answer as to whether this is a built-in feature. I've seen 
examples from a few years ago where both variables are rendered 
separately, and the PNG files are combined. This ends up with both 
variables being partially-transparent to the other variable; in my 
example, I'd prefer <i class="m_41305421588503849gmail-m_-7213805282443007308gmail_msg">not </i>to see through a particularly high-temperature region. I've also seen documentation on a "multi-variate transfer function", but that documentation is pretty incomplete.<br class="m_41305421588503849gmail-m_-7213805282443007308gmail_msg"><br class="m_41305421588503849gmail-m_-7213805282443007308gmail_msg"></div>Thanks in advance!<br class="m_41305421588503849gmail-m_-7213805282443007308gmail_msg"><br class="m_41305421588503849gmail-m_-7213805282443007308gmail_msg"></div>Best,<br class="m_41305421588503849gmail-m_-7213805282443007308gmail_msg"><br class="m_41305421588503849gmail-m_-7213805282443007308gmail_msg"></div>Scott<br class="m_41305421588503849gmail-m_-7213805282443007308gmail_msg" clear="all"><div class="m_41305421588503849gmail-m_-7213805282443007308gmail_msg"><div class="m_41305421588503849gmail-m_-7213805282443007308gmail_msg"><div class="m_41305421588503849gmail-m_-7213805282443007308gmail_msg"><div class="m_41305421588503849gmail-m_-7213805282443007308gmail_msg"><div class="m_41305421588503849gmail-m_-7213805282443007308gmail_msg"><div class="m_41305421588503849gmail-m_-7213805282443007308gmail_msg"><div class="m_41305421588503849gmail-m_-7213805282443007308m_6788056983324474523gmail_signature m_41305421588503849gmail-m_-7213805282443007308gmail_msg"><div class="m_41305421588503849gmail-m_-7213805282443007308gmail_msg"><div class="m_41305421588503849gmail-m_-7213805282443007308gmail_msg"><div class="m_41305421588503849gmail-m_-7213805282443007308gmail_msg"><div class="m_41305421588503849gmail-m_-7213805282443007308gmail_msg"><div class="m_41305421588503849gmail-m_-7213805282443007308gmail_msg"><div class="m_41305421588503849gmail-m_-7213805282443007308gmail_msg"><div class="m_41305421588503849gmail-m_-7213805282443007308gmail_msg"><div class="m_41305421588503849gmail-m_-7213805282443007308gmail_msg"><div class="m_41305421588503849gmail-m_-7213805282443007308gmail_msg"><div class="m_41305421588503849gmail-m_-7213805282443007308gmail_msg"><div class="m_41305421588503849gmail-m_-7213805282443007308gmail_msg"><div class="m_41305421588503849gmail-m_-7213805282443007308gmail_msg"><div class="m_41305421588503849gmail-m_-7213805282443007308gmail_msg"><br class="m_41305421588503849gmail-m_-7213805282443007308gmail_msg">Scott Feister, Ph.D.<br class="m_41305421588503849gmail-m_-7213805282443007308gmail_msg">Postdoctoral Researcher, Flash Center for Computational Science<br class="m_41305421588503849gmail-m_-7213805282443007308gmail_msg"></div><div class="m_41305421588503849gmail-m_-7213805282443007308gmail_msg">University of Chicago, Department of Astronomy and Astrophysics<br class="m_41305421588503849gmail-m_-7213805282443007308gmail_msg"></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
</div></div></div></div></div></div></div></div>
______________________________<wbr>_________________<br class="m_41305421588503849gmail-m_-7213805282443007308gmail_msg">
yt-users mailing list<br class="m_41305421588503849gmail-m_-7213805282443007308gmail_msg">
<a href="mailto:yt-users@lists.spacepope.org" class="m_41305421588503849gmail-m_-7213805282443007308gmail_msg" target="_blank">yt-users@lists.spacepope.org</a><br class="m_41305421588503849gmail-m_-7213805282443007308gmail_msg">
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" rel="noreferrer" class="m_41305421588503849gmail-m_-7213805282443007308gmail_msg" target="_blank">http://lists.spacepope.org/lis<wbr>tinfo.cgi/yt-users-spacepope.<wbr>org</a><br class="m_41305421588503849gmail-m_-7213805282443007308gmail_msg">
</blockquote></div></div></div>
<br>______________________________<wbr>_________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" rel="noreferrer" target="_blank">http://lists.spacepope.org/<wbr>listinfo.cgi/yt-users-<wbr>spacepope.org</a><br>
<br></blockquote></div><br></div>