[yt-dev] GridsSource in vr refactor

Matthew Turk matthewturk at gmail.com
Sat Jun 6 20:10:40 PDT 2015


Hey Sam,

It certainly changed something!

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

I did find one interesting thing.  I backed out the grey_opacity
argument and then changed the code for the GridsSource to include:

colors[:, 3] = alpha
colors[:, :3] *= alpha

Now with alpha = 0.0001 I get:

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

What this suggests to me, which might be wrong, is that the absolute
color values are saturating way past all the other color values.  By
cutting those down, I'm getting grid lines that don't overpower the
image normalization.  Does that make sense?

I guess now the question is, how do we implement that without the
finicky process of "guess and check" I went through.  Any ideas?

-Matt

On Sat, Jun 6, 2015 at 7:56 PM, Sam Skillman <samskillman at gmail.com> wrote:
> Hey Matt, can you try specifying grey_opacity=True in your custom
> ColorTransferFunction? I don't have any test data at this particular moment
> but I think that might be the culprit...
>
> On Fri, Jun 5, 2015 at 3:04 PM Matthew Turk <matthewturk at gmail.com> wrote:
>>
>> Thanks -- I will check it out.  Rotation seems to destroy a bunch of
>> stuff too, which looks to me more like an issue with the ray
>> traversal.
>>
>> http://i.imgur.com/qMazCaK.png
>>
>> On Fri, Jun 5, 2015 at 5:00 PM, Cameron Hummels <chummels at gmail.com>
>> wrote:
>> > It's probably just a problem in the z scale, which caused some issues in
>> > the
>> > initial overlay of points as well.
>> >
>> > You could pdb into it and see what the z values the grid vertices have.
>> > I
>> > think they go from inf in the back to 0 in the front, but I'd have to
>> > check.
>> >
>> > On Fri, Jun 5, 2015 at 2:50 PM, Matthew Turk <matthewturk at gmail.com>
>> > wrote:
>> >>
>> >> Hi all,
>> >>
>> >> Anybody here know why with the scene refactor, no matter how low I set
>> >> the opacity of the grids, they (villainously) blot out the sun?
>> >> Here's a script:
>> >>
>> >> http://paste.yt-project.org/show/5608/
>> >>
>> >> Here's the output of new_tf_clip.png:
>> >>
>> >> http://i.imgur.com/ZRTz4kR.png
>> >>
>> >> and now, what the script calls grids_overlay.png:
>> >>
>> >> http://i.imgur.com/fPvVDdP.png
>> >>
>> >> I mean, I *must* be missing something, right?
>> >>
>> >> -Matt
>> >> _______________________________________________
>> >> yt-dev mailing list
>> >> yt-dev at lists.spacepope.org
>> >> http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org
>> >
>> >
>> >
>> >
>> > --
>> > Cameron Hummels
>> > Postdoctoral Researcher
>> > Steward Observatory
>> > University of Arizona
>> > http://chummels.org
>> >
>> > _______________________________________________
>> > yt-dev mailing list
>> > yt-dev at lists.spacepope.org
>> > http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org
>> >
>> _______________________________________________
>> yt-dev mailing list
>> yt-dev at lists.spacepope.org
>> http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org
>
>
> _______________________________________________
> yt-dev mailing list
> yt-dev at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org
>



More information about the yt-dev mailing list