Re: [osg-users] Volume Rendering and Depth Buffer

2019-04-16 Thread Chris Hanson
Yeah, I wouldn't totally expect it would, but you can probably do that intersection test yourself if needed. I think it'll be faster and more accurate than the Z-buffer. I did a tool that relied on the Z-buffer once. It was a bad choice... On Tue, Apr 16, 2019 at 1:05 PM Anna Osvin wrote: > If

Re: [osg-users] Volume Rendering and Depth Buffer

2019-04-16 Thread Anna Osvin
If you mean osgViewer::View::computeIntersections, then we tried it. For some reason it does not check intersections with volume model. Here is raycast intersection check code: Code: bool pickPolygonalSceneIntersection( osgViewer::View& view, const osg::Vec2& point2d, osg::Vec3& pickedPoint )

Re: [osg-users] Volume Rendering and Depth Buffer

2019-04-15 Thread Chris Hanson
Instead of reading Z depth values, can you simply run an intersection of the click ray-vector against the model data (polygonal and volumetric) when they click to place markdown points? On Mon, Apr 15, 2019 at 2:34 PM Anna Osvin wrote: > We are working on medical software for Dentists. We need

Re: [osg-users] Volume Rendering and Depth Buffer

2019-04-15 Thread Anna Osvin
We are working on medical software for Dentists. We need to render CBCT and give user possibility to place some markdown points on it, for future diagnostics. Also sometimes it's required to render polygonal jaw models alongside with CBCT. As I said earlier, we nailed down the rendering and

Re: [osg-users] Volume Rendering and Depth Buffer

2019-04-15 Thread Chris Hanson
Just out of curiousity, what are you volume rendering and what are your requirements? We did some interesting volume rendering work a few years ago for Iowa State University's Ames Lab. On Mon, Apr 15, 2019 at 1:08 PM Anna Osvin wrote: > Hi. In a project that I'm working on I have an