Re: [osg-users] osg::observer_ptr and osg::ref_ptr

2018-10-24 Thread Kristofer Krus
Hi Robert, Thanks. I'm having the problem that an observer_ptr that is assigned a pointer to an object that hasn't yet been assigned to a ref_ptr looks like it is invalid when I try to lock it (but not when I call the get method, so there is a discrepancy between observer_ptr::lock and observer

Re: [osg-users] osg::observer_ptr and osg::ref_ptr

2018-10-23 Thread Kristofer Krus
Hi Robert, Ah, that's clever. So the observer_ptr basically acts like ref_ptr when it comes to the ObserverSet object and deletes that object when the last observer_ptr object is destructed? :D Cheers! Kristofer -- Read this topic online here: http://forum.openscenegraph.org/

Re: [osg-users] osg::observer_ptr and osg::ref_ptr

2018-10-18 Thread Kristofer Krus
Seems handy! So how can nodeObs become NULL when the Node object is deleted? Does the latter store a list of the observer_ptr objects that it is observed by, and set them all to NULL when it is destructed? Or how does it work? Cheers, Kristofer -- Read this topic online here: h

Re: [osg-users] Draw two translucent geometries in specific order

2018-05-21 Thread Kristofer Krus
Hi Robert, Thanks for your reply. The problem was that setRenderingHint(osg::StateSet::TRANSPARENT_BIN) was called after I called setRenderBinDetails. While I checked that setRenderBinDetails was not called anywhere else in the code, I didn't know that you could also choose render bin through

Re: [osg-users] List render bins

2018-05-21 Thread Kristofer Krus
Hi, I'm trying to gain a greater understanding of render bins, and I was thinking both, basically. I.e. both what render bins OSG created when the application started, and what render bins are created by the application I'm working with. This snippet of code was helpful, though, thanks. I didn

Re: [osg-users] Draw two translucent geometries in specific order

2018-05-21 Thread Kristofer Krus
Hi again robertosfield, I took a look at the code you posted at this thread (http://forum.openscenegraph.org/viewtopic.php?t=17289), and it gave me some further questions. According to this code, there seems like there are six default rendering bins, and I don't see that any numbers are associa

Re: [osg-users] Draw two translucent geometries in specific order

2018-05-21 Thread Kristofer Krus
Chris Hanson wrote: > You might also look at OSGTransparencyToolkit.  > http://alphapixel.com/project/osg-transparency-toolkit/ > (http://alphapixel.com/project/osg-transparency-toolkit/) > > There are several Order Independent Transparency implementation out there > that let you not worry abou

[osg-users] List renderbins

2018-05-21 Thread Kristofer Krus
Hi, Is there some way in which I can list all existing render bins and print details about them, i.e. number, name and mode (the details given to setRenderBinDetails (http://public.vrac.iastate.edu/vancegroup/docs/OpenSceneGraphReferenceDocs-3.0/a00762.html#a498095c3811e00b2fc6123a24ef5ec81))?

Re: [osg-users] Draw two translucent geometries in specific order

2018-05-18 Thread Kristofer Krus
Hi, Thanks for the reply Robert! I think the concept of render bin sounds logical, but I'm slightly confused about how RenderBins work in OSG (OpenSceneGraph). I’ve tried to find information about what RenderBins are and how to use them, but what I’ve been able to find so far has been limited,

[osg-users] Draw two translucent geometries in specific order

2018-05-18 Thread Kristofer Krus
Hi, I have two geometries, A and B, that are both translucent, of which A should always be rendered before B because it is farther from the camera fragment-wise. However, OpenSceneGraph sometimes renders A first and sometimes renders B first, depending on the viewing angle, which, when B is ren

Re: [osg-users] [build] "INSTALL.vcxproj" -- FAILED

2018-05-04 Thread Kristofer Krus
ceranco wrote: > I have no Cmake knowledge, so I didn't change the Cmake script, but rather > manually changed the project configurations for all of the examples in visual > studio. Right click on the project, select properties. Go to Linker -> > Debugging and change the Generate Program Databa