Hi,
I searched the forum and was enspired by the following Topic:
http://www.mail-archive.com/osg-us...@openscenegraph.net/msg08183.html
I tried to create separate thread which will run from main function and run
LoadNodefile.
Code:
class MyThread : public OpenThreads::Thread
{
public:
On Feb 14, 2010, at 14:15, Danny Lesnik danny...@walla.co.il wrote:
The value of node is null. I'm a newbie in Threading Programming,
but I need to find a way to work it out.
Your problem lies in C, Danny, not in threading. You passed a pointer
into your thread class by value. Your thread
Sorry, sent too early. Anyway, OSG has a potential solution to this -
ref ptrs. If you pass and hold ref ptrs, then you will have two
objects pointing to the same thing. Specifically, you would pass a
pointer to your ref ptr.
Having said that, I'm new to OSG - there's probably a better
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Danny Lesnik wrote:
Hi,
snip
Try this:
class MyThread : public OpenThreads::Thread
{
public:
MyThread(osg::Node** node) :
_node(node) {}
virtual ~MyThread() {}
virtual void run() {
*_node
Hi,
I'm interested as well ;)
Thank you!
Cheers,
Torben
--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=24115#24115
___
osg-users mailing list
osg-users@lists.openscenegraph.org
Hi,
Can anybody help me how can I run osgDB::ReadNodeFile in separate Thread? I'm
loading huge 3ds model and I don't want to keep my window frozen till the model
is opened.
Thank you!
Cheers,
Danny
--
Read this topic online here:
Hi Danny,
On Fri, Feb 12, 2010 at 10:30 AM, Danny Lesnik danny...@walla.co.il wrote:
Can anybody help me how can I run osgDB::ReadNodeFile in separate Thread? I'm
loading huge 3ds model and I don't want to keep my window frozen till the
model is opened.
The OSG has in inbuilt DatabasePager
Hi Robert,
Thank you for your response, I have my OSG libraries already compiled with curl
(http+https) and zip ( plugin which unzips models directly to memory) and I'm
downloading zip models from URL. Can I still use Proxynode under these
circumstances?
I googled internet for any ProxyNode
8 matches
Mail list logo