<div dir="ltr">Hi all,<div><br></div><div>Right now I'm trying to resolve the issues the new VR interface has when you try to specify a volume rendering scene using data that has units attached.</div><div><br></div><div>Right now, the scene and camera object don't have any knowledge about the units of the data being rendered. At the same time, there are places where the camera, lens and scene assume things like the "width" and "position" *do* have units, which can break in annoying ways.</div><div><br></div><div>Unfortunately, the way the VR infrastructure is set up right now, it's very difficult for the scene, RenderSource, camera, and lens to all have a consistent unit system. \</div><div><br></div><div>I *could* just attach a unit registry to the scene object, but then since all of these different objects get created independently, it doesn't help to have a unit system defined as part of the scene object, since I can't access the scene from the camera object.</div><div><br></div><div>What I'd like to do to fix this is to alter the VR API. Instead of being able to do something like:</div><div><br></div><div>sc = Scene()<br></div><div>cam = Camera()<br></div><div>sc.camera = cam<br></div><div><br></div><div>I'd like to make it so you need to do:</div><div><br></div><div>sc = Scene()<br></div><div>sc.add_camera()</div><div><br></div><div>This way I can ensure that the camera object always has a reference to the Scene object it's attached to, and thus I'll always be able to refer to a consistent unit system.</div><div><br></div><div>Does anyone have any objections to this?</div><div><br></div><div>-Nathan</div></div>