Carlo Orru wrote:
Hello Carlo,
> Well, what I'm trying to do is to make server-side modifications to a
> scene sent
> by the client. Such scene can be hardcoded inside the client or read
>>from a file
> specified by the user. The basic idea is that the server does all the
> animation
> stuff using the data received from the client as a starting point.
> For example: the client reads from a user-specified file the info about
> the basic
> scene to animate and the key-frames, and then sends all the stuff to the
> server
> which "builds" the animation interpolating the key-frames.
> So, since the server needs to gain access to every node in the graph, I
> have defined
> my own RenderAction method via RenderAction::registerEnterFunction(),
> which gets
> called everytime a node containing a Geometry Core is accessed. In this
> way, I'm able
> to modify the node's parent's Transform Core by recomputing all the
> Transform Matrices
> every frame and applying them to the proper Transform Cores, thus making
> the animation
> run. My problem is that, after the first transformations occur, the
> server loses
> (overwrites) all the information about the initial state of the
> Geometry, (and the
> client sends such info only once in the beginning) while I want the
> server to be able
> to get it whenever it wishes without messing too much with the code,
> which is to be
> kept as simple as possible.
>
> I hope to have clarified my purpose...
> So, any suggestions ?
Not yet ;)
I still don't quite understand why you want to handle the animation on
the server side instead of doing it on the client and distribute its
_result_ over the cluster. The main problem I see with your approach is
that you can not just stop receiving data from the client after the
initial scene is transmitted. For example you still want updated camera
and light beacons.
This means you'd have to merge some changes from the client back into
your "pristine" state, which seems rather difficult. Since you said you
want to keep it simple, I guess my question is: why do you believe that
your approach is the most simple one, that gives you what you want ?
Thanks,
Carsten
-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users