[osg-users] Changing minFilter/magFilter of texture in osgVolume::RayTracedTechnique

2019-04-16 Thread Sailesh Sidhwani
I have RayTracedTechnique putting graphics on the screen, but things aren't rendering correctly. The culprit is the 'osg::Texture3D::LINEAR' choice that is used by default as the min/mag filter for the Texture3D object created by RayTracedTechnique. I'd like to change to NEAREST as I'm working

Re: [osg-users] Image capture in memory

2019-04-16 Thread sam
https://github.com/openscenegraph/OpenSceneGraph/blob/master/examples/osgposter/osgposter.cpp On Tue, Apr 16, 2019 at 12:22 PM Catalin Flower wrote: > Hi, > > What is the canonical way to capture an image of a view to memory with > different resolutions? > > Thank you! > > -- >

Re: [osg-users] Removing objects with shared GL state from scene graph

2019-04-16 Thread Chris Djali
Hi, The following basically simulates the use case that's causing problems. Code: #include #include #include #include #include #include #include /** A representation of something that gets edited. * Pretend it's actually more complicated than this so that reference counting the

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] Image capture in memory

2019-04-16 Thread Alberto Luaces
"Catalin Flower" writes: > Hi, > > What is the canonical way to capture an image of a view to memory with > different resolutions? Hi, I think that examples/osgposter/osgposter.cpp might be what you are looking for. -- Alberto ___ osg-users mailing

[osg-users] Missing features with GL Core profile

2019-04-16 Thread Hugo Laloge
Hi, I use OpenSceneGraph and I want to use some features of OpenGL 3.3 and the Core profile. I compiled OpenSceneGraph with the option -DOPENGL_PROFILE=GL3. I got the features I wanted, however, some features of OSG do not work anymore, as lighting with osg::Light, osg::LineWidth,

[osg-users] Image capture in memory

2019-04-16 Thread Catalin Flower
Hi, What is the canonical way to capture an image of a view to memory with different resolutions? Thank you! -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=75830#75830 ___ osg-users mailing list

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 )