Hi Olivier,
On Mon, 2005-07-25 at 16:38 +0200, Olivier CHENU wrote:
> Hi,
>
> I'm working with Michael that asked you a question on the possibility to
> display an object on only one server.
> Thanks for your answers.
>
> We tried to use masks so.
> But RenderAction seems to forget it.
>
> So, we forced the value before rendering, but no more result :????
>
> heres's the "forced" code
>
> RenderAction *ract;
> ...
> ract->setTravMask(1);
> server->render(ract);
>
> But all objets are displayed (the ones with mask value of 2 too) and, if
> we ask for ract->getTravMask() now, the value is 2e32-1 (the default mask).
> Please note that the nodes we want to treat have the good mask values :
> we tried with mask 0 and object never appear ; so, the problem certainly
> comes from the RenderAction which seems to change itself the defined mask.
>
> Any idea ?
Yup. The mask in the RenderAction is overwritten by the mask in the
Viewport. If you set it in the Viewport it should just work. That's also
the way to set it so that it's different on both servers, you just need
different viewports for each.
Hope it helps
Dirk
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users