Hi,

thanks Carsten. THat's because I do not delete viewport 0, which displays
the scene;

See line 220, remove the comment, then the render node will show nothing

==========================
line220:
    beginEditCP(MDWndPtr);
    //MDWndPtr->subPort(ptrViewport);    // if we delete the viewport 0, the
render node will display nothing
    for(int i = 0; i < g_ndivx*g_ndivy; i++)
    {
        cout<<i<<endl;
        MDWndPtr->addPort(g_pptrViewport[i]); // I add new viewport to work
with camera decorator, but it fails to work
    }
    endEditCP(MDWndPtr);
===========================

2009/8/13 Carsten Neumann <[email protected]>

>        Hello Jie Liu,
>
> Jie Liu wrote:
> > I'v been trying to associate a TiledCameraDecorator with a
> > MultiDisplayWindow all the day.
> >
> > But the remote render node displays nothing
> >
> > Since I have to demo my progress to my advisor tomorrow, I must solve
> > this problem today.
> >
> > I have attached my code with this email, please help check the code.
> >
> > I have simplified the code, and highlighted the problem part; so you
> > don't need to check every thing. If correct, it will display a torus on
> > the screen of render node.
> >
> > To run my program,
> > 1) start a render server at local machine,
> > 2) type: [program_name] -m [server_name]
> >
> > actually, I have tested the TiledCameraDecorator in a normal OpenSG
> > program, it works perfectly.
> > Problem only occurs when I implement it in a cluster client program.
>
> I'm sorry, but I can't reproduce the problem with the code you sent
> (also looking over the code I did not spot anything obvious). Starting
> an instance of
> ./Tutorials/12ClusterServer -w Server0
> and your program with
> ./00JiuTiledClient -s Server0
>
> (I only changed the name, so that I can easily compile it as one of the
> tutorials, no code was changed).
> With this I get the normal empty navigation window for the client and
> the torus shows up in the server window.
> Do the 12ClusterServer together with 13ClusterClient (the server/client
> tutorial programs) programs work for you ?
>
>        Cheers,
>                Carsten
>
>
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus
> on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Opensg-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/opensg-users
>



-- 
Jie Liu
Visualization Research Group
Center for Information Science, School of EECS,
Room 2104, Science Building No.2,
Peking University, Beijing 100871, China
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to