Windows: Rendering on 2 nodes

classic Classic list List threaded Threaded
15 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Windows: Rendering on 2 nodes

lokida
This post has NOT been accepted by the mailing list yet.
Hello,

I am trying to use osgScaleViewer and eqPly on two machines using Windows XP.
The documentation lacks of information about nodes rendering using networks I am quite lost.

So here What I have done:

First, I start the server on PC 1, then the application on pc1 and then the application on pc2.

Computer with IP 192.168.0.1

-> eqserver.exe .\configs\2-node_test.eqc
-> eqPly.exe --eq-config .\configs\2-node_test.eqc --eq-listen 192.168.0.1:4242

The eqserver seems to wait and nothing is displayed in the command line.

Second Computer with IP 192.168.0.2
-> eqPly.exe --eq-config .\configs\2-node_test.eqc --eq-client --eq-listen 192.168.0.1:4242

Nothing happened.

I have also tried on pc 1:
-> eqPly.exe --eq-config .\configs\2-node_test.eqc
-> eqPly.exe

and on pc 2
-> eqPly.exe --eq-listen 192.168.0.1:4242


Nothing happend on the pc 2. On th e pc 1 I have the client that display the square but I don't know if it uses the server or not.

More over, sometimes I have message a error from pc2 with osgScaleViewer:


c:\osgScaleViewer>.\osgScaleViewer.exe --model .\data\morphing.o
sg --eq-config .\configs\2-node_test.eqc --eq-listen 192.168.0.1
2724 Main ..\..\..\libs\collage\socketConnection.cpp:597 219 Could not bind sock
et 1700:  (0) to 192.168.0.1:0 AF 2
2724 Main ..\..\..\libs\collage\localNode.cpp:161 225 Can't create listener conn
ection: RP<connection
{
    type          TCPIP
    hostname      "192.168.34.210"
    filename      "default"
    bandwidth     102400
}
2724 Main ..\..\..\libs\collage\localNode.cpp:161 225 >
2724 Main ..\..\..\libs\collage\localNode.cpp:136 238 Can't setup listener(s) on
node 4ef221f7f9c1f728:becaeca8f58e7e41 closed, TCPIP#102400#192.168.34.210##0#d
efault#
2724 Main ..\..\..\examples\osgScaleViewer\main.cpp:61 246 Can't init client


Here's my config file:


#Equalizer 1.1 ascii
# two-node software-framelocked config

global
{
    EQ_WINDOW_IATTR_HINT_FULLSCREEN ON
}

server
{
    connection { hostname "192.168.0.1" TCPIP_port 4242 }
    config
    {
        appNode
        {
            connection { hostname "192.168.0.1" TCPIP_port 4242 }
            pipe
            {
                device 0
                window
                {
                    viewport [ .25 .25 .5 .5 ]
                    channel { name "channel1" }
                }
            }
        }
        node
        {
            connection { hostname "192.168.0.2" TCPIP_port 4242}
            pipe
            {
                device 0
                window
                {
                    viewport [ .25 .25 .5 .5 ]
                    channel { name "channel2" }
                }
            }
        }

        layout { view { }}
        canvas
        {
            layout 0
            wall
            {
                bottom_left  [ -1.6 -.5 -1 ]
                bottom_right [  1.6 -.5 -1 ]
                top_left     [ -1.6  .5 -1 ]
            }

            segment { viewport [ 0  0 .5 1 ] channel "channel1" }
            segment { viewport [ .5 0 .5 1 ] channel "channel2" }
        }

        compound
        {
            compound
            {
                channel ( view 0 segment 0 )
                swapbarrier {}
            }
            compound
            {
                channel ( view 0 segment 1 )
                swapbarrier {}
            }
        }
    }    
}


If someone can tell me how ti use equalizer under windows XP that would be great.

Thank you.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Windows: Rendering on 2 nodes

Stefan Eilemann

On 11. Aug 2011, at 14:48, lokida [via Software] wrote:

> First, I start the server on PC 1, then the application on pc1 and then the application on pc2.

If you use pre-launched render clients (pc2), you have to start them before the application so they are found during initialization.

> I have also tried on pc 1:
> -> eqPly.exe --eq-config .\configs\2-node_test.eqc
> -> eqPly.exe
>
> and on pc 2
> -> eqPly.exe --eq-listen 192.168.0.1:4242

This should also work, though in the reverse order. And you should not start a second process on pc1 as it is an appNode, i.e., the application process is also the render client.


HTH,

Stefan.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Windows: Rendering on 2 nodes

lokida
OK.

I think I have badly explain the test I have done.
When I have written:
> I have also tried on pc 1:
> -> eqPly.exe --eq-config .\configs\2-node_test.eqc
> -> eqPly.exe

I haven't launched the 2 applications at the same time. I have juste tried different arguments.

So what I have done is :

-First test:
PC1:
-> First to be start:     eqserver.exe .\configs\2-node_test.eqc
-> Second to be start :eqPly.exe --eq-config .\configs\2-node_test.eqc --eq-listen 192.168.0.1:4242
PC2:
-> Third to be start: eqPly.exe --eq-config .\configs\2-node_test.eqc --eq-client --eq-listen 192.168.0.1:4242

Second test:
PC1:
-> First to be start: eqserver.exe .\configs\2-node_test.eqc
-> Second to be start eqPly.exe --eq-config .\configs\2-node_test.eqc --eq-listen 192.168.0.1:4242
PC2:
-> Third to be start:  eqPly.exe --eq-config .\configs\2-node_test.eqc

Third Test:
PC1:
-> First to be start: eqserver.exe .\configs\2-node_test.eqc
-> Second to be start: eqPly.exe --eq-config .\configs\2-node_test.eqc --eq-listen 192.168.0.1:4242
PC2:
-> Third to be start:  eqPly.exe

So what is the good way ?
Is-it to start PC2 first and then eqPly on pc 1 and then the server ?

And, what do you mean by pre-launched render clients ? Is there something dealing with this in the programmer guide ?

Thank you.

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Windows: Rendering on 2 nodes

Stefan Eilemann

On 11. Aug 2011, at 15:31, lokida [via Software] wrote:

> Is-it to start PC2 first and then eqPly on pc 1 and then the server ?

server
PC2 (aka the render clients)
PC1

OR

PC2
PC1 using --eq-config

> And, what do you mean by pre-launched render clients ? Is there something dealing with this in the programmer guide ?

Yes. When launched with --eq-client, an Equalizer application becomes a render client. It's prelaunched since you're not using the server (ssh) launch mechanism.


HTH,

Stefan.

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Windows: Rendering on 2 nodes

lokida
It should be so simple but still does not work.

So, I am still using the config file describe above.

1 - On PC1 (192.168.0.1), I start the server: eqserver.exe --eq-config .\configs\2-node_test.eqc

2- Then, On PC2  (192.168.0.2), I start the render client: eqPly.exe --eq-client --eq-listen 192.168.0.1:4242

3 - Finally On PC1, I start eqply : eqply.exe --eq-config .\configs\2-node_test.eqc


I have an error message on PC2:


E:\osgScaleViewer>eqPly.exe --eq-client --eq-listen 192.168.0.1:4242
3352 Main ..\..\..\libs\collage\socketConnection.cpp:597 174 Could not bind sock
et 1716: successful operation. (0) to 192.168.0.1:4242 AF 2
3352 Main ..\..\..\libs\collage\localNode.cpp:161 180 Can't create listener conn
ection: RP<connection
{
    type          TCPIP
    hostname      "192.168.0.1"
    port          4242
    filename      "default"
    bandwidth     102400
}
3352 Main ..\..\..\libs\collage\localNode.cpp:161 180 >
3352 Main ..\..\..\libs\collage\localNode.cpp:136 195 Can't setup listener(s) on
node f2e010694e42b309:91716fe1df2c13cd closed, TCPIP#102400#192.168.0.1##424
2#default#
3352 Main ..\..\..\examples\eqPly\main.cpp:78 203 Can't init client


On PC1, I have the scene (square) that is displayed (the left part of the scene) and I have this error message:


E:\osgScaleViewer>eqPly.exe --eq-config .\configs\2-node_MRA.eqc
6024 class eq::s ..\..\..\libs\collage\base\launcher.cpp:84 1001 CreateProcess f
ailed: The specified file was not found. (2)
6024 class eq::s ..\..\..\libs\server\node.cpp:258 1003 Could not launch node us
ing 'ssh -n 192.168.0.2 "E:/osgScaleViewer/eqPly.exe" -- --eq-client "bff8324
34f476d79:cf5ab8dbf09018b9#1#TCPIP#102400#192.168.0.2##4242#default#E:/osgSca
leViewer#17f69f4807dc6cf5:200e6023ddf97295#1#TCPIP#102400#192.168.0.1##4242#d
efault#"'
6024 class eq::s ..\..\..\libs\server\node.cpp:237 1008 Connection to bff832434f
476d79:cf5ab8dbf09018b9 failed
6024 Rcv class e ..\..\..\libs\collage\namedPipeConnection.cpp:353 6132 Read com
plete failed: (109), closing connection
6024 Rcv class e ..\..\..\libs\collage\namedPipeConnection.cpp:338 6151 Invalid
read handle


I have seen some ssh call but I have no ssh installed on my two windows machine. Should I have ssh installed ?  And, which one ?

What are the good arguments lines for eqserver and eqPly for PC1 and PC2. Because, I think  that it can comes from this.

Thank you.


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Windows: Rendering on 2 nodes

Stefan Eilemann




On 11.08.2011, at 17:53, "lokida [via Software]" <[hidden email]> wrote:

> 2- Then, On PC2  (192.168.0.2), I start the render client: eqPly.exe --eq-client --eq-listen 192.168.0.1:4242

You can't listen on ip .0.1 on machine .0.2


Hth,

Stefan.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Windows: Rendering on 2 nodes

lokida
But why I can't listen  0.1 on 0.2.  machine 0.1 has the server and has the appnode. That's why I want to listen 0.1. But I should be wrong or I have not well read the programmer guide.

So, what are the default command lines to test Equalizer on two pc ? :)

Thank you for your help.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Windows: Rendering on 2 nodes

lokida
Hello,

I continued to test (using the Programmer's Guide), but impossible to run eqPly on one machine with eqServer on an other machine.
I have tested with just a single node.

So if there is a simple tutorial that explains how to use (with good explanations) with 1 or 2 clients and a server that would be really great.

Thank you.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Windows: Rendering on 2 nodes

Stefan Eilemann
Hi,

On 16. Aug 2011, at 16:26, lokida wrote:

> So if there is a simple tutorial that explains how to use (with good
> explanations) with 1 or 2 clients and a server that would be really great.

My time for free support is limited. I told you were your mistake is.

A basic knowledge of networking is assumed on this list, otherwise you're free to purchase commercial support where we'll be happy to explain it in as much detail as needed. Otherwise I suggest reading up on the basics of TCP sockets. Other people on this list have figured it out with much less support, maybe you're lucky and someone has more time at their hands.


Cheers,

Stefan.


_______________________________________________
eq-dev mailing list
[hidden email]
http://www.equalizergraphics.com/cgi-bin/mailman/listinfo/eq-dev
http://www.equalizergraphics.com
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Windows: Rendering on 2 nodes

lokida
Hello,

I had seen my error about the bas listenning and I have knowleged about networking.

I'm just pointing out that the documentation on the use (not the development documentation that seems very complete) Equalizer examples  is very light.
If there was a well documented tutorial (a starter guide) on using, for example, eqPly rendering a given file with 2 nodes, using eqServer, know the arguement that can be used (--eq-client, --eq-listen, --eq-config) I will not make you waste your time.

May be this docuementation exists and I have not find it (I have downloaded the EqualizerGuide, the programmation guide and Equalizer pdf).

I would really like to use Equalizer examples  in order to see if it could be used for our project but it 's not so obvious.

Thank you for your attention and sorry for the inconvenience.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Windows: Rendering on 2 nodes

lantian318
This post has NOT been accepted by the mailing list yet.
I have the same problem!
Have you solved it?
and how?
thank you!
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Windows: Rendering on 2 nodes

lokida
Hi,
Here's what I have done. I hope it is well done.

I use the 2-nodes.eqc file and I have modified it.
For the server: type TCPIP port 4141 hostname "192.168.0.1"
For the AppNode: type TCPIP port 4242 hostname "192.168.0.1"
For the Node: type TCPIP port 4343 hostname "192.168.0.2"

Then here the order of my execution:

1/ On 192.168.0.2 Computer:
> eqPly.exe --eq-listen 192.168.0.2:4343 --eq-server 192.168.0.1:4141 --eq-client

1: On 192.168.0.1
> eqServer.exe ..\2-nodes.eqc

3: On 192.168.0.1
> eqPly.exe --eq-server 192.168.0.1:4141 --eq-listen 192.168.0.1:4242

Then applications starts. Hope it could help.

But, I don't know how to use a ply file and if the ply file should be on both computers.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Windows: Rendering on 2 nodes

lokida
A precision, The server and the appNode run on 192.168.0.1 computer and the other application (node) run on 192.168.0.2 computer
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Windows: Rendering on 2 nodes

Stefan Eilemann
In reply to this post by lokida


On 26.08.2011, at 11:02, "lokida [via Software]"<[hidden email]> wrote:

> But, I don't know how to use a ply file and if the ply file should be on both computers.

The command line option is -m. The ply file only needs to be on the application node.


Cheers,

Stefan.

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Windows: Rendering on 2 nodes

lantian318
In reply to this post by lokida
Thank you very much!

This problem has been solved.

Good Luck!

frankz
Loading...