source: nanoscale/trunk/renderservers.tcl.in @ 4584

Last change on this file since 4584 was 4527, checked in by ldelgass, 10 years ago

Merge r4525 from 1.3 branch

File size: 3.7 KB
Line 
1#
2# This file is read by nanoscale to determine which ports to listen
3# to and the how to start the associated render server.
4#
5# Render servers
6#
7#       Server                  Port            Usage
8#       ======                  ====            =====
9#       nanovis                 2000            production
10#       vtkvis                  2010            production
11#       geovis                  2015            testing
12#       vmdshow                 2018            testing
13#       pymol                   2020            production
14#
15# The syntax is
16#       register_server <name> <port> ?<flags>? {
17#           commands...
18#       } {
19#           variables...
20#       }
21#
22# Registers a server by <name> at port <port>.
23# When a connection is made to <port>, <command> is run.
24# Environment variables will be set before executing command. 
25#
26# Note: Don't set DISPLAY here. nanoscale itself sets the DISPLAY
27#       variable.
28#
29# Defaults:
30#   o Server reads from file descriptor 0.
31#   o Server writes to descriptor 1.
32#   o Server stdout and stderr are redirected to a log file. 
33#
34
35set exec_prefix "@exec_prefix@"
36set bindir "@bindir@"
37set libdir "@libdir@"
38
39# GeoVis server (port 2015) --
40#     Map renderer
41#
42register_server geovis 2015 \
43    -output 3 -logstdout no -logstderr no \
44{
45    ${bindir}/geovis -o 3
46} {
47    LD_LIBRARY_PATH ${libdir}
48    OSGEARTH_DEFAULT_FONT /usr/share/fonts/truetype/liberation/LiberationSans-Regular.ttf
49}
50
51# NanoVis --
52#       Server Type     Volume renderer
53#       Port            2000
54#       Threaded        yes
55# Notes:
56#       o Continue to use default options until we offically upgrade
57#         nanovis to the latest release.  We are currently using a 1.2
58#         version of nanovis.
59#       o Requires change to 1.2 nanovis.  Can't redirect stderr to log
60#         or X will complain about performing socket operation on non-socket
61#         descriptor.
62#
63register_server nanovis 2000 \
64    -logstdout no -logstderr no \
65{
66    ${bindir}/nanovis -p ${libdir}/shaders:${libdir}/resources
67} {
68    LD_LIBRARY_PATH ${libdir}
69}
70
71# VtkVis --
72#       Server type     3D drawings (scene graphs). Contour and surface graphs.
73#       Port            2010
74#       Threaded        yes
75# Notes:
76#       o Removed ${vtkdir} from LD_LIRBRARY_PATH. Not needed with VTK 6.
77#       o Using new features in nanoscale/vtkvis to use file descriptor 3
78#         for server output.  No automatic logging of stdout and stderr.
79#
80register_server vtkvis 2010 \
81    -output 3 -logstdout no -logstderr no \
82{
83    ${bindir}/vtkvis -o 3
84} {
85    LD_LIBRARY_PATH ${libdir}
86}
87
88# PymolProxy --
89#       Server type     Molecular layouts using Pymol viewer.
90#       Port            2020
91#       Threaded        yes
92# Notes:
93#       o Need PYMOL_SITE_PATH for parallelpiped box.py location.
94#       o Makes no sense to log stdout and stderr of the proxy.
95#       o Renamed to just pymolproxy and removed non-threaded entry.
96#
97register_server pymolproxy 2020 \
98    -logstdout no -logstderr no \
99{
100    ${bindir}/pymolproxy2 ${bindir}/pymol -p -q -i -x -X 0 -Y 0
101} {
102    PYMOL_SITE_PATH ${libdir}/pymol
103    LD_LIBRARY_PATH ${libdir}
104}
105
106# VmdShow --
107#       Server type     Molecular layouts using VMD viewer (for mdshowcase).
108#       Port            2018
109#       Threaded        no
110# Notes:
111#       o Commands are sent directly to the VMD process that uses custom
112#         TCL code to process.
113#       o Redirect input to descriptor 3: Otherwise VMD will get select hit.
114#       o Redirect output to descriptor 4: Lots of information written to
115#         stdout and stderr of VMD.  Captured in log file.
116#       o Executing binary without wrapper shell script. Requires VMDDIR set.
117#       o Meshing programs surf and msms require explicit environment variables.
118#       o __GL_SYNC_TO_VBLANK probably doesn't matter.
119#       o Client doesn't send data files to VMD, but file paths.  Unlikely
120#         client will block on a large write. 
121#       
122register_server vmdshow 2018 \
123    -input 3 -output 4 -combinelogs yes \
124{
125    ${libdir}/vmd/vmd_LINUXAMD64 -startup ${libdir}/vmd/vmdserver.tcl \
126        -args -stdio
127} {
128    VMDDIR ${libdir}/vmd
129    SURF_BIN ${libdir}/vmd/surf
130    MSMSSERVER ${libdir}/vmd/msms
131    STRIDE_BIN ${libdir}/vmd/stride
132    LD_LIBRARY_PATH ${libdir}
133    __GL_SYNC_TO_VBLANK 0
134}
Note: See TracBrowser for help on using the repository browser.