[yt-dev] Fwd: [yt_analysis/yt] Grey opacity for volume rendering (pull request #231)

Matthew Turk matthewturk at gmail.com
Wed Aug 1 07:49:15 PDT 2012


Hi all,

This PR is something Sam and I went over in IRC the other day.
Basically, the current method that supports opaque rendering doesn't
always give the same results one usually wants for "onion peel" volume
rendering.  This PR restores that functionality but provides a
conditional for when you want to insert opaque surfaces.  I think this
should go in for 2.4.  Sam, at your leisure could you take a look at
this?

-Matt

PS I came upon this while creating an example IPython notebook for
2.4.  I'm going to mail it out later and ask for feedback, but I think
it's a pretty neat way of showing features!


---------- Forwarded message ----------
From: Matthew Turk <pullrequests-noreply at bitbucket.org>
Date: Wed, Aug 1, 2012 at 10:47 AM
Subject: [yt_analysis/yt] Grey opacity for volume rendering (pull request #231)
To: yt at enzotools.org


A new pull request has been opened by Matthew Turk.

MatthewTurk/yt has changes to be pulled into yt_analysis/yt.

https://bitbucket.org/yt_analysis/yt/pull-request/231/grey-opacity-for-volume-rendering

Title: Grey opacity for volume rendering

Adding a grey_opacity option to the ColorTransferFunction object.
Here's an example script demonstrating it:

http://paste.yt-project.org/show/2605/

When set the False (the default) images look very similar to the
old-style VR, before the refactor:

http://i.imgur.com/CXkIE.png

When set to True, the inner layers get attenuated:

http://i.imgur.com/TRy2q.png

This is set to non-grey by default, to preserve old behavior.

Changes to be pulled:



--
This is an issue notification from bitbucket.org.
You are receiving this either because you are the participating
in a pull request, or you are following it.



More information about the yt-dev mailing list