[yt-svn] commit/yt: ngoldbaum: Merged in ngoldbaum/yt (pull request #2521)
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Thu Feb 23 07:40:56 PST 2017
1 new commit in yt:
https://bitbucket.org/yt_analysis/yt/commits/0150f2960194/
Changeset: 0150f2960194
Branch: yt
User: ngoldbaum
Date: 2017-02-23 15:40:47+00:00
Summary: Merged in ngoldbaum/yt (pull request #2521)
Ensure transparent volume rendering sources can be composited. Closes #1322
Approved-by: Matt Turk
Approved-by: Kacper Kowalik
Affected #: 2 files
diff -r ba64011e4b064b5d13a3a12e4fb64293ea5dfdab -r 0150f2960194e9f105f4ff8063cc6735d35f9431 yt/visualization/volume_rendering/scene.py
--- a/yt/visualization/volume_rendering/scene.py
+++ b/yt/visualization/volume_rendering/scene.py
@@ -501,6 +501,7 @@
for k, source in self.transparent_sources:
im = source.render(camera, zbuffer=opaque)
+ opaque.rgba = im
return im
diff -r ba64011e4b064b5d13a3a12e4fb64293ea5dfdab -r 0150f2960194e9f105f4ff8063cc6735d35f9431 yt/visualization/volume_rendering/tests/test_vr_orientation.py
--- a/yt/visualization/volume_rendering/tests/test_vr_orientation.py
+++ b/yt/visualization/volume_rendering/tests/test_vr_orientation.py
@@ -31,6 +31,7 @@
sc = Scene()
vol = VolumeSource(ds, field=('gas', 'density'))
+ sc.add_source(vol)
tf = vol.transfer_function
tf = ColorTransferFunction((0.1, 1.0))
@@ -53,7 +54,6 @@
north_vector=[0., 0., 1.])
cam.set_width(ds.domain_width*2.)
- sc.add_source(vol)
yield VRImageComparisonTest(
sc, ds, '%s_%04d' % (lens_type, frame), decimals)
Repository URL: https://bitbucket.org/yt_analysis/yt/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
More information about the yt-svn
mailing list