source: nanoscale/tags/1.0.2/renderservers.tcl.in @ 6716

Last change on this file since 6716 was 6289, checked in by ldelgass, 6 years ago

merge from nanoscale trunk

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