Hi,
After a long time I came to this task.
Now I am able to run this in 32 bit machines. If I run it on 64 bit machines
then some times the application crashes.
My development environment is Windos - XP 32 bit with SP3.
I think we can run 32 bit applications on 64 bit machines with out any errors.
I am using only ".OSG" files.
Here I am giving what I did
//GLOBLES
Code:
struct ModelObj
{
Model *obj;
int id;
};
HANDLE T[NUM_OF_MODELS];
CWinThread *pThread[NUM_OF_MODELS];
UINT ThreadProc1(LPVOID lpvoid)
{
ModelObj *temp = (ModelObj*)lpvoid;
temp->obj->mtForMarker[temp->id] = new osg::MatrixTransform;
temp->obj->modelSwitch->addChild(temp->obj->mtForMarker[temp->id].get());
temp->obj->modelForMarker[temp->id] =
osgDB::readNodeFile(temp->obj->fileNames[temp->id]);
if(temp->obj->modelForMarker[temp->id])
{
temp->obj->mtForMarker[temp->id]->addChild(temp->obj->modelForMarker[temp->id].get());
temp->obj->mtForMarker[temp->id]->addChild(temp->obj->sound_root.get());
temp->obj->mtForMarker[temp->id]->setUpdateCallback(
temp->obj->soundCB.get() );
}
return 0;
}
...
Thank you!
Cheers,
Koduri
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=50169#50169
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org