Run two simple programs of equalizer

Source: Internet
Author: User

Equalizer is an excellent OpenGL middleware. It is an open-source software and can be used commercially.

The best way for beginners to get started or understand is to run a simple program and check its effect. However, it is not easy to understand the concept. Here, I will explain that you can run two small examples step by step.

First, install the installation package in Windows

I. Three single-host windows

1. The configuration file uses an existing configuration file and does not need to be modified.

2. In the bin directory of the installation directory,

Create File runserver. bat

File Content

Eqserver.exe "C: \ Program Files \ equalizer 0.9.3 \ share \ equalizer \ configs \ test. EQC"

Create File runapp. bat

File Content

Eqhello.exe-M rockerarm. ply

3. Run batch files in sequence

Runserver. bat

Runapp. bat

You can see


 

2. Two machines and two windows

1. The configuration file uses 2-node.eqc

File Content:

# Equalizer 1.1 ASCII
# Two-node software-framelocked config

Global
{
Eq_window_iattr_hint_fullscreen on
}

Server
{
Connection {hostname "192.168.0.2" tcpip_port 4141}
Config
{
Appnode
{
Connection {hostname "192.168.0.2" tcpip_port 4242}
Pipe
{
Device 0
Window
{
Viewport [. 25. 25. 5. 5]
Channel {name "channel1 "}
}
}
}
Node
{
Connection {hostname "192.168.0.1" tcpip_port 4343}
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 {}
}
}
}
}

2. In the bin directory

Create a new file runclient1.bat

File Content:

Eqply.exe -- eq-Listen 192.168.0.2: 4343 -- eq-server 192.168.0.1: 4141 -- eq-Client

Create a file runserver2.bat

File Content:

Eqserver.exe .. \ 2-node.eqc

Create File runapp3.bat

File Content:

Eqply.exe -- eq-server 192.168.0.1: 4141 -- eq-Listen 192.168.0.1: 4242

3. Put the above files in the bin directory of the two machines at the same time

Run runclient1.bat on 192.168.0.2

Run runserver2.bat on 192.168.0.1 and run runapp3.bat on 192.168.0.1

The program running result is displayed.

Complete!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.