Hi
You need to do some changes in eqOSG to run in multiple node.
First thing in function InitData::parseCommandLine you need to remove
the condition which returns if the model file is not given so that you
can run eqOSG in client mode
Then the in InitData class you need to change the type of variable
mModelFileName to std::string
Now in function InitData::getInstanceData and applyInstanceData you need
to replace with the following
void InitData::getInstanceData( eq::net::DataOStream& stream )
{
int length = mModelFileName.length();
stream << mFrameDataID << mLoadModel << length;
for(int i = 0; i < length; i++)
{
stream<<mModelFileName[i];
}
}
void InitData::applyInstanceData( eq::net::DataIStream& stream )
{
int length;
stream >> mFrameDataID >> mLoadModel >> length;
for(int i = 0; i < length; i++)
{
char tmp;
stream>>tmp;
mModelFileName.push_back(tmp);
}
EQASSERT( mFrameDataID != EQ_ID_INVALID );
}
Now do following steps
1. run eqOSG application in client mode on client machines as follows
eqOSG -- --eq-client --eq-listen <ip>:<port>
2. run eqServer with config file
3. run eqOSG with model file. Put the file on both node at same relative
location.
Hope this will help you.
-- Santosh Gaikwad
mfuluat wrote:
> Hi there,
> Has anyone managed to run eqOsg example (thanks thomas btw :) on two winXp
> nodes? It works well for 1-node configurations but when I tried i with
> multiple nodes, in client node I got following errors;
>
> C:\>D:\Libs\eqOSG\Release\eqOSG.exe
> D:\Libs\OpenSceneGraph-2.7.8\OpenSceneGraph-
> Data-2.6.0\cow.osg -- --eq-client --eq-listen 10.0.0.8:4242
> 3316 3086432 ..\lib\client\wglEventHandler.cpp:135 Message arrived for
> unregiste
> red window
> 3316 3086432 ..\lib\client\wglEventHandler.cpp:135 Message arrived for
> unregiste
> red window
> 3316 3086432 ..\lib\client\wglEventHandler.cpp:135 Message arrived for
> unregiste
> red window
> 3316 3086432 ..\lib\client\wglEventHandler.cpp:135 Message arrived for
> unregiste
> red window
> 3316 3086432 ..\lib\client\wglEventHandler.cpp:135 Message arrived for
> unregiste
> red window
> 3316 3086432 ..\lib\client\wglEventHandler.cpp:135 Message arrived for
> unregiste
> red window
> 3316 3086432 ..\lib\client\wglEventHandler.cpp:135 Message arrived for
> unregiste
> red window
> 3316 3086432 ..\lib\net\session.cpp:334 Can't find master node for object id
> 169
> 30136
>
> Thanks in advance.
>
_______________________________________________
eq-dev mailing list
[email protected]
http://www.equalizergraphics.com/cgi-bin/mailman/listinfo/eq-dev
http://www.equalizergraphics.com