Re: [osg-users] osg::ProxyNode and osg::ComputeBoundsVisitor

2011-07-25 Thread Sebastian Messerschmidt
Am 25.07.2011 17:15, schrieb Oren Fromberg: Hey Sebastian! Thanks for the interesting reply. So, I guess that explains why the dimensions of my bounding box are tending to infinity! I have some questions though: 1) what do you mean by "load the proxy node at least once"? does that mean to add

Re: [osg-users] osg::ProxyNode and osg::ComputeBoundsVisitor

2011-07-25 Thread Oren Fromberg
Hey Sebastian! Thanks for the interesting reply. So, I guess that explains why the dimensions of my bounding box are tending to infinity! I have some questions though: 1) what do you mean by "load the proxy node at least once"? does that mean to add the proxy node as a child in the scene or jus

Re: [osg-users] osg::ProxyNode and osg::ComputeBoundsVisitor

2011-07-24 Thread Sebastian Messerschmidt
Hello Oren, It seems that the node isn't loaded at all. As I do something similar in my database compiler, I think you will have to actually load the proxy node at least once to calculate the correct bounds for it: You code is correct, but as you defer loading of the real model, the ComputeBou

[osg-users] osg::ProxyNode and osg::ComputeBoundsVisitor

2011-07-20 Thread Oren Fromberg
Howdy friends, I'm loading a model using an osg::ProxyNode like this: Code: std::map > model_db_map; ... if (model_db_map[name] == NULL) { osg::ref_ptr pn = new osg::ProxyNode; pn->setLoadingExternalReferenceMode (osg::ProxyNode::DEFER_LOADING_TO_DATABASE_PAGER); pn->setFileName (0, name + ".

Re: [osg-users] osg proxynode

2009-03-29 Thread Ulrich Hertlein
Hi Christian, On 30/3/09 12:33 PM, Christian Sam wrote: could someone tell me in a few sentences what a proxynode (or is it just proxy?) in osg is, and what it is used for? It's a node that references external model files. The files will be loaded asynchronously via DatabasePager once the

[osg-users] osg proxynode

2009-03-29 Thread Christian Sam
Hi, could someone tell me in a few sentences what a proxynode (or is it just proxy?) in osg is, and what it is used for? thanks in advance, christian -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=9434#9434 _