Re: [osg-users] [forum] add/remove nodes when rendering

2015-04-14 Thread Robert Osfield
Hi Sophie, Are you simply looking to load databases in a background thread whilst the main thread and rendering threads get on with update, culling and rendering the scene? The OSG has an database paging class call osgDB::DatabasePager that is built into the osgViewer::Viewer/CompositeViewer

Re: [osg-users] [forum] add/remove nodes when rendering

2015-04-14 Thread Jan Ciger
Hello, On Tue, Apr 14, 2015 at 9:57 AM, Sophie Audonneau sophie.audonne...@etu.univ-lorraine.fr wrote: In my draw function I have to do the following : viewer_-setUpViewerAsEmbeddedInWindow(viewParams[0],viewParams[1],viewParams[2] ,viewParams[3]); viewer_-getCamera()-setProjectionMatrix(

[osg-users] [forum] add/remove nodes when rendering

2015-04-14 Thread Sophie Audonneau
Hi, I work on a project for witch I need to remove/add nodes while OpenSceneGraph is rendering. I created a rendering window with OpenScenegraph and then I would like to be able to load/unload objects in it. I make the calls for OSG frame() function inside a draw function and I use a singleton

[osg-users] Best practice for dynamic StateSets Geometry

2015-04-14 Thread Jannik Heller
Hi OSG friends, A common challenge for OSG users are the implications of the viewer threading model - by default the viewer.frame() will return before the draw dispatch is complete, meaning users (and the OSG) can start preparing the next frame before the current frame has completed. However,

Re: [osg-users] Noobie Problem of the Day - Cookbook Surface/Object Picking Not Working

2015-04-14 Thread Dave Sargrad
Sure enough the Pick System works just fine if I disable 2 of my monitors. At least I've isolated, I'll figure out exactly why later. For now I'll stick with a single monitor. Cheers, Dave -- Read this topic online here:

Re: [osg-users] [3rdparty] Qt Form integration

2015-04-14 Thread Christian Kunz
Hi, I´m also interested in this topic. Is there a way to use the forms editor of the qt creator to display and integrate a OSG Scene? Link seems to go on the same thread...? I already looked into the example osgviewerQt. Has anyone a link to deeper examples of Qt and OSG integration? ...

Re: Сell multiplication

2015-04-14 Thread Grigory Krivyakin
well, i trying to create the 3D model of crystal structure on atomic level, because the crystal structure is periodical i think it is right way to use one geode (which stores 3D model of elementary cell). But if i use the cycle for creating crystal lattice, the MatrixTransform's pointer

Re: [osg-users] OSG RECIPES Data

2015-04-14 Thread Wang Rui
Hi Dave, One of the purpose of the osgRecipes project is to provide all source code used in the book OpenSceneGraph 3.0 Cookbook, published by Packt Publishing. And what you found is just corresponding to the second example in Chapter 5. And it should be a mistake... The correct code snippet,

Re: [osg-users] RTT Camera does not render anything

2015-04-14 Thread Christian Buchner
Maybe you forgot to add the camera to the main scene graph? An addChild() into the scene graph root should do the trick. 2015-04-14 15:16 GMT+02:00 Andreas Schreiber a...@online.de: Hi I'm trying to generate a texture with a rtt-camera, so I can use this texture later in my main scene.

Сell multiplication

2015-04-14 Thread Grigory Krivyakin
Hello I try to create a simple crystal lattice and dont know how make it better. I create a original geode cell and use matrix translations: Code: osg::ref_ptrosg::Group root = new osg::Group; osg::ref_ptrosg::Geode cell = Cell(); osg::ref_ptrosg::MatrixTransform transform = new

Re: [osg-users] [forum] add/remove nodes when rendering

2015-04-14 Thread Sophie Audonneau
Thank you both for your answers ! Robert : Having databases in the background could be a good solution, I had not thought about it. However I have looked at the functioning of osgDB::DatabasePager but as I'm not very familiar with its use I can't see clearly how it could be incorporated in my

Re: [osg-users] Сell multiplication

2015-04-14 Thread Robert Osfield
Hi Grigory, Could you explain what you mean by Crystal Lattice. Knowing what you are actually trying to achieve help others guide you in the right direction. Robert. On 14 April 2015 at 07:38, Grigory Krivyakin grisha...@gmail.com wrote: Hello I try to create a simple crystal lattice and

[osg-users] OSG RECIPES Data

2015-04-14 Thread Dave Sargrad
Hi, I've found the osgRecipes (https://github.com/xarray/osgRecipes) to be quite useful. However most of the data is missing from these, and there is no proper reference to the location of the data. I stumbled on this (https://github.com/openscenegraph/osg-data) data. It seems to be a close

Re: [osg-users] Thoughts on Vulkan

2015-04-14 Thread Chris Hanson
I think OSG is a bad fit for Vulkan. OSG has so much code to support FFP dataflows that Vulkan doesn't have. I personally think a Vulkan scenegraph could be made from the components of OSG (OSG 4.x?) but bringing along all of OSG's legacy code into a Vulkan space would be counterproductive. ​ As

Re: [osg-users] Thoughts on Vulkan

2015-04-14 Thread David Glenn
Well Chris, I don't think that anyone has ruled out using Vulkan on OSG, it just that the verdict is out about adoption. Besides, as I have learned from my resent VR experience, sometimes early adoption is not the wise course of action. As for me, I will adopt Vulkan when I have a good

[osg-users] RTT Camera does not render anything

2015-04-14 Thread Andreas Schreiber
Hi I'm trying to generate a texture with a rtt-camera, so I can use this texture later in my main scene. To verify if the texture is correct I'm trying to put the texture on a quad in my main scene. I use the following method for the rtt-camera, the red clearColor I used to test what the

Re: [osg-users] [SOLVED] PNG Library Crashing - 32 vs 64 bit mismatch possible

2015-04-14 Thread Dave Sargrad
SMesserschmidt wrote: Hi Dave, C:/osg/OpenSceneGraph-3.2.2-rc2/3rdParty/x86/lib/libpng16.lib (found version 1.6.7) - you are linking the 32bit libraries .. Hi, I've been struggling to get the PNG plugin working. I've built it, but the cookbook_02_7 is crashing down inside