Hi Torben,

The binary should be smaller than the ascii.  Are you findings before
or after compression?

As for merging cluster support, I'd have to know a bit more about what
form it would take.  There are a number of different approach to doing
clusters, each with their own strengths and weaknesses.  I don't know
much about how you are tackling it beyond that you're using the new
serialization support.

Robert.

On Fri, Feb 19, 2010 at 8:27 AM, Torben Dannhauer
<[email protected]> wrote:
> Hi,
>
> I have written a clsuter/network module to transport nodes over network
> (atm only nodes are serializable, not osg::objects).
>
> I have play a bit with the zlib compressor and the binary and ascii version.
>
> My result was a larger binary result as ASCII result of the identical node.
> I didn't expect this, I always thought ascii format is larger than binary..
>
> Do I miss something, or I just my binary cluster implementation buggy?
>
> My Processing-pipline is:
> - serialize node to std::stringstream
> - extracting string of stringstream and pass it as chr* to the socket.
>
>
> btw: At the end, when my code is robust and well factored, is there any 
> interest to add a cluster-node to OSG to allow highlevel UDP stream over 
> network? Something like:
>
> Code:
>
> osg::cluster mycluster = new osg:cluster();
> mycluster->init( <port>, <destination address>, <useCompressor>, <asAscii> );
> mycluster->sendNode( mynode);
> ..
> mynode = mycluster->readNode();
>
>
>
>
>
> Thank you!
>
> Cheers,
> Torben
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=24419#24419
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to