<div dir="ltr">I think this is a good idea.</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 3, 2016 at 3:07 PM, Matthew Turk <span dir="ltr"><<a href="mailto:matthewturk@gmail.com" target="_blank">matthewturk@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Nathan,<br>
<br>
Seems like the best way forward.  I think we're far past being able to<br>
do things like "mandate a unitary coordinate system for the scene" and<br>
so I think this is a good way forward.  The only time it would really<br>
break is multi-DS scenes, which I think right now aren't allowed.<br>
Although, that would be nice.  :)<br>
<br>
+1<br>
<br>
-Matt<br>
<div><div class="h5"><br>
On Thu, Mar 3, 2016 at 2:04 PM, Nathan Goldbaum <<a href="mailto:nathan12343@gmail.com">nathan12343@gmail.com</a>> wrote:<br>
> Hi all,<br>
><br>
> Right now I'm trying to resolve the issues the new VR interface has when you<br>
> try to specify a volume rendering scene using data that has units attached.<br>
><br>
> Right now, the scene and camera object don't have any knowledge about the<br>
> units of the data being rendered. At the same time, there are places where<br>
> the camera, lens and scene assume things like the "width" and "position"<br>
> *do* have units, which can break in annoying ways.<br>
><br>
> Unfortunately, the way the VR infrastructure is set up right now, it's very<br>
> difficult for the scene, RenderSource, camera, and lens to all have a<br>
> consistent unit system. \<br>
><br>
> I *could* just attach a unit registry to the scene object, but then since<br>
> all of these different objects get created independently, it doesn't help to<br>
> have a unit system defined as part of the scene object, since I can't access<br>
> the scene from the camera object.<br>
><br>
> What I'd like to do to fix this is to alter the VR API. Instead of being<br>
> able to do something like:<br>
><br>
> sc = Scene()<br>
> cam = Camera()<br>
> sc.camera = cam<br>
><br>
> I'd like to make it so you need to do:<br>
><br>
> sc = Scene()<br>
> sc.add_camera()<br>
><br>
> This way I can ensure that the camera object always has a reference to the<br>
> Scene object it's attached to, and thus I'll always be able to refer to a<br>
> consistent unit system.<br>
><br>
> Does anyone have any objections to this?<br>
><br>
> -Nathan<br>
><br>
</div></div>> _______________________________________________<br>
> yt-dev mailing list<br>
> <a href="mailto:yt-dev@lists.spacepope.org">yt-dev@lists.spacepope.org</a><br>
> <a href="http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org" rel="noreferrer" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org</a><br>
><br>
_______________________________________________<br>
yt-dev mailing list<br>
<a href="mailto:yt-dev@lists.spacepope.org">yt-dev@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org" rel="noreferrer" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div>Michael Zingale</div><div>Associate Professor</div><div><br></div><div>Dept. of Physics & Astronomy • Stony Brook University • Stony Brook, NY 11794-3800</div><div><i>phone</i>:  631-632-8225</div><div><i>e-mail</i>: <a href="mailto:Michael.Zingale@stonybrook.edu" target="_blank">Michael.Zingale@stonybrook.edu</a></div><div><i>web</i>: <a href="http://www.astro.sunysb.edu/mzingale" target="_blank">http://www.astro.sunysb.edu/mzingale</a></div><div>github: <a href="http://github.com/zingale" target="_blank">http://github.com/zingale</a></div><div><br></div></div></div></div>
</div>