source: branches/1.3/packages/vizservers/nanoscale/renderservers.tcl.in @ 4517

Last change on this file since 4517 was 4517, checked in by gah, 7 years ago

bad renderserver.tcl.in (can't use -output with old vtkvis)

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