Hi Jack,
On Mon, 2003-10-27 at 16:20, Jack Gundrum wrote:
> In the action below what is dropVolume? I cannt seem to find it defined
> anywhere?
>
> Action::ResultE drawVolume(CNodePtr& node, Action *action)
> {
> RenderAction *a = dynamic_cast<RenderAction *>(action);
>
> dropVolume(a, NodePtr(node), Color3f(0,1,0));
> }
it's defined in OSGVolumeDraw.h. It's purpose is to add some code to the
RenderAction that draws the given volume using the given color. It's a
relatively new addition, so if you're using 1.2 it's won't be there.
The reasoning behind all this is that you don't want you poor single
client to render the whole thing, like the servers do, as that would
slow everything down to the level of performance of the single client
machine.
Instead it tries to only draw the bounding volumes on the client, which
is usually good enough to see where you are but is much faster. If your
client machine is fast enough you don't have to use it, just remove the
callback method and the registration with the seond RenderAction.
Hope it helps
Dirk
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users