| 823 | | |
|---|
| 824 | | <important> |
|---|
| 825 | | <para>When working from withing the build tree and using |
|---|
| 826 | | <filename>instlinks</filename>, |
|---|
| 827 | | <envar>VJ_BASE_DIR</envar> is |
|---|
| 828 | | <emphasis>required</emphasis>.</para> |
|---|
| 829 | | </important> |
|---|
| | 823 | </listitem> |
|---|
| | 824 | </varlistentry> |
|---|
| | 825 | |
|---|
| | 826 | <varlistentry> |
|---|
| | 827 | <term>VJ_DATA_DIR</term> |
|---|
| | 828 | |
|---|
| | 829 | <listitem> |
|---|
| | 830 | <para>On non-<productname |
|---|
| | 831 | class="registered">Windows</productname> platforms, VR |
|---|
| | 832 | Juggler 2.2 and beyond used versioned directories to allow |
|---|
| | 833 | for parallel installations of different versions of VR |
|---|
| | 834 | Juggler. The directories that are versioned are those |
|---|
| | 835 | containing the header files (needed for compiling VR Juggler |
|---|
| | 836 | applications), those containing plug-ins, and those |
|---|
| | 837 | containing data files (needed for running VR Juggler |
|---|
| | 838 | applications) and sample programs. For example, we will |
|---|
| | 839 | refer later to the MPApp sample application. Its source code |
|---|
| | 840 | can be found in |
|---|
| | 841 | <filename>$VJ_BASE_DIR/share/vrjuggler-2.2/samples/OGL/simple/MPApp</filename>. |
|---|
| | 842 | The value of <envar>VJ_DATA_DIR</envar> for VR Juggler 2.2 |
|---|
| | 843 | ought to be |
|---|
| | 844 | <filename>$VJ_BASE_DIR/share/vrjuggler-2.2</filename>. In VR |
|---|
| | 845 | Juggler configuration files, there is sometimes a need to |
|---|
| | 846 | refer to files in the VR Juggler data directories. In order |
|---|
| | 847 | to allow a configuration to be used with multiple VR Juggler |
|---|
| | 848 | versions (which may or may not be possible depending on the |
|---|
| | 849 | config elements in use) or between <productname |
|---|
| | 850 | class="registered">Windows</productname> and |
|---|
| | 851 | non-<productname class="registered">Windows</productname> |
|---|
| | 852 | platforms, users can reference the |
|---|
| | 853 | <envar>VJ_DATA_DIR</envar> environment variable.</para> |
|---|
| | 854 | |
|---|
| | 855 | <para>This environment variable is new in VR Juggler 2.2.1. |
|---|
| | 856 | If the environment variable is not set when an application |
|---|
| | 857 | is launched, it will be set automatically relative to the |
|---|
| | 858 | value of <envar>VJ_BASE_DIR</envar>. In general, users |
|---|
| | 859 | should not set <envar>VJ_DATA_DIR</envar> unless they know |
|---|
| | 860 | that the default value is inappropriate.</para> |
|---|
| 1142 | | <filename>$VJ_BASE_DIR/share/vrjuggler/samples/OGL/simple</filename>. |
|---|
| 1143 | | All of these applications were designed to be used as part of courses |
|---|
| 1144 | | teaching people how to write VR Juggler applications using OpenGL. |
|---|
| 1145 | | They contain clear comments explaining what the code is doing, and |
|---|
| 1146 | | they are intended to be as simple as possible. These tutorials are as |
|---|
| | 1172 | <filename>$VJ_DATA_DIR/samples/OGL/simple</filename>. All of these |
|---|
| | 1173 | applications were designed to be used as part of courses teaching |
|---|
| | 1174 | people how to write VR Juggler applications using OpenGL. They |
|---|
| | 1175 | contain clear comments explaining what the code is doing, and they |
|---|
| | 1176 | are intended to be as simple as possible. These tutorials are as |
|---|
| 1198 | | <filename>$VJ_BASE_DIR/share/vrjuggler/samples/Pf/advanced</filename>. |
|---|
| 1199 | | These are for more advanced developers who are familiar with |
|---|
| 1200 | | Performer and some of the more complicated aspects of VR Juggler. |
|---|
| 1201 | | There are two main programs to be found there:</para> |
|---|
| | 1228 | <filename>$VJ_DATA_DIR/samples/Pf/advanced</filename>. These are for |
|---|
| | 1229 | more advanced developers who are familiar with Performer and some of |
|---|
| | 1230 | the more complicated aspects of VR Juggler. There are two main |
|---|
| | 1231 | programs to be found there:</para> |
|---|
| 1264 | | <filename>$VJ_BASE_DIR/share/vrjuggler/samples</filename> use the |
|---|
| 1265 | | same basic steps to compile unless otherwise noted. Always refer |
|---|
| 1266 | | to the top of the sample application's |
|---|
| 1267 | | <filename>Makefile</filename> for information that may be specific |
|---|
| 1268 | | to building that application. In general, though, all |
|---|
| 1269 | | applications' makefiles require the GNU version of the |
|---|
| | 1294 | <filename>$VJ_DATA_DIR/samples</filename> use the same basic steps |
|---|
| | 1295 | to compile unless otherwise noted. Always refer to the top of the |
|---|
| | 1296 | sample application's <filename>Makefile</filename> for information |
|---|
| | 1297 | that may be specific to building that application. In general, |
|---|
| | 1298 | though, all applications' makefiles require the GNU version of the |
|---|
| 1412 | | <filename>$VJ_BASE_DIR/share/vrjuggler/data/configFiles</filename>, you |
|---|
| 1413 | | can find many basic configuration files including those for running in |
|---|
| 1414 | | simulator using a mouse and keyboard to simulate VR input devices and |
|---|
| 1415 | | some example files based on those used for the VRAC C4 system. In the |
|---|
| 1416 | | directory, you will see some files with names containing |
|---|
| 1417 | | <quote>mixin</quote>. These are special files that provide a specific |
|---|
| 1418 | | capability not necessarily needed by all applications. They can be mixed |
|---|
| 1419 | | in (hence the name) with other configuration files as needed. The |
|---|
| 1420 | | configuration files found in the <filename>configFiles</filename> |
|---|
| 1421 | | directory will be referenced in the examples provided, so be sure you |
|---|
| 1422 | | know where they are.</para> |
|---|
| | 1441 | <filename>$VJ_DATA_DIR/data/configFiles</filename>, you can find many |
|---|
| | 1442 | basic configuration files including those for running in simulator using |
|---|
| | 1443 | a mouse and keyboard to simulate VR input devices and some example files |
|---|
| | 1444 | based on those used for the VRAC C4 system. In the directory, you will |
|---|
| | 1445 | see some files with names containing <quote>mixin</quote>. These are |
|---|
| | 1446 | special files that provide a specific capability not necessarily needed |
|---|
| | 1447 | by all applications. They can be mixed in (hence the name) with other |
|---|
| | 1448 | configuration files as needed. The configuration files found in the |
|---|
| | 1449 | <filename>configFiles</filename> directory will be referenced in the |
|---|
| | 1450 | examples provided, so be sure you know where they are.</para> |
|---|