Changeset 20882
- Timestamp:
- 10/21/07 11:44:33 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
juggler/trunk/modules/vrjuggler/doc/getting.started.guide/getting.started.guide.xml
r20756 r20882 638 638 <para>UNIX/Linux systems use these environment variables to 639 639 find dynamically loaded libraries, such as 640 <filename>libvrj- 2_2.so</filename>. Unless you are building640 <filename>libvrj-3_0.so</filename>. Unless you are building 641 641 everything with static libraries, you will need to set these 642 642 to include the VR Juggler library directory. An example of … … 735 735 <listitem> 736 736 <para>The environment variable <envar>VJ_BASE_DIR</envar> 737 plays identifiers where VR Juggler is installed. This738 i nformation is used for the following purposes:</para>737 identifies where VR Juggler is installed. This information 738 is used for the following purposes:</para> 739 739 740 740 <itemizedlist> … … 756 756 <envar>VJ_BASE_DIR</envar> has been diminished 757 757 greatly. The remainder of the description of 758 <envar>V j_BASE_DIR</envar> explains when it may need758 <envar>VJ_BASE_DIR</envar> explains when it may need 759 759 to be set and when the default will be more than 760 760 sufficient.</para> … … 776 776 <para>On <productname 777 777 class="registered">Windows</productname>, the Juggler DLLs 778 (<filename>vpr-2_ 0.dll</filename>,779 <filename>jccl-1_ 2.dll</filename>,780 <filename>vrj- 2_2.dll</filename>, etc.) determine on their778 (<filename>vpr-2_2.dll</filename>, 779 <filename>jccl-1_4.dll</filename>, 780 <filename>vrj-3_0.dll</filename>, etc.) determine on their 781 781 own where they are installed when they are attached to the 782 782 application process. As such, the <productname … … 803 803 must be set to the base directory of the installed Juggler 804 804 Suite. For example, if you downloaded a UNIX version of VR 805 Juggler 2.2and extracted it to the directory805 Juggler 3.0 and extracted it to the directory 806 806 <filename>/home/software</filename>, you would set 807 807 <envar>VJ_BASE_DIR</envar> with this command:</para> 808 808 809 <screen>% VJ_BASE_DIR = /home/software/vrjuggler- 2.2</screen>809 <screen>% VJ_BASE_DIR = /home/software/vrjuggler-3.0</screen> 810 810 811 811 <para>The last component of the path depends on the … … 818 818 819 819 <screen>% VJ_BASE_DIR = $HOME/juggler/my_build_dir/instlinks</screen> 820 821 <important> 822 <para>When working from withing the build tree and using 823 <filename>instlinks</filename>, 824 <envar>VJ_BASE_DIR</envar> is 825 <emphasis>required</emphasis>.</para> 826 </important> 820 </listitem> 821 </varlistentry> 822 823 <varlistentry> 824 <term>VJ_DATA_DIR</term> 825 826 <listitem> 827 <para>On non-<productname 828 class="registered">Windows</productname> platforms, VR 829 Juggler 2.2 and beyond used versioned directories to allow 830 for parallel installations of different versions of VR 831 Juggler. The directories that are versioned are those 832 containing the header files (needed for compiling VR Juggler 833 applications), those containing plug-ins, and those 834 containing data files (needed for running VR Juggler 835 applications) and sample programs. For example, we will 836 refer later to the MPApp sample application. Its source code 837 can be found in 838 <filename>$VJ_BASE_DIR/share/vrjuggler-3.0/samples/OGL/simple/MPApp</filename>. 839 The value of <envar>VJ_DATA_DIR</envar> for VR Juggler 3.0 840 ought to be 841 <filename>$VJ_BASE_DIR/share/vrjuggler-3.0</filename>. In VR 842 Juggler configuration files, there is sometimes a need to 843 refer to files in the VR Juggler data directories. In order 844 to allow a configuration to be used with multiple VR Juggler 845 versions (which may or may not be possible depending on the 846 config elements in use) or between <productname 847 class="registered">Windows</productname> and 848 non-<productname class="registered">Windows</productname> 849 platforms, users can reference the 850 <envar>VJ_DATA_DIR</envar> environment variable.</para> 851 852 <para>This environment variable was introduced in VR Juggler 853 2.2.1. If the environment variable is not set when an 854 application is launched, it will be set automatically 855 relative to the value of <envar>VJ_BASE_DIR</envar>. In 856 general, users should not set <envar>VJ_DATA_DIR</envar> 857 unless they know that the default value is 858 inappropriate.</para> 827 859 </listitem> 828 860 </varlistentry> … … 893 925 be set on all of these platforms. If not set, the default 894 926 search path for configuration files is 895 <filename>$VJ_ BASE_DIR/share/vrjuggler/data/configFiles</filename>.</para>927 <filename>$VJ_DATA_DIR/data/configFiles</filename>.</para> 896 928 897 929 <note> … … 920 952 921 953 <para>The default search path for configuration files is 922 always 923 <filename>$VJ_BASE_DIR/share/vrjuggler/data/definitions</filename>. 954 always <filename>$VJ_DATA_DIR/data/definitions</filename>. 924 955 Setting the environment variable 925 956 <envar>JCCL_DEFINITION_PATH</envar> appends directories to … … 1078 1109 <para>Some sample applications designed for getting started with VR 1079 1110 Juggler are found in 1080 <filename>$VJ_ BASE_DIR/share/vrjuggler/samples/OGL/simple</filename>.1081 All of these applications were designed to be used as part of courses1082 teaching people how to write VR Juggler applications using OpenGL.1083 They contain clear comments explaining what the code is doing, and1084 theyare intended to be as simple as possible. These tutorials are as1111 <filename>$VJ_DATA_DIR/samples/OGL/simple</filename>. All of these 1112 applications were designed to be used as part of courses teaching 1113 people how to write VR Juggler applications using OpenGL. They 1114 contain clear comments explaining what the code is doing, and they 1115 are intended to be as simple as possible. These tutorials are as 1085 1116 follows:</para> 1086 1117 … … 1134 1165 1135 1166 <para>Examples of OpenGL Performer applications can be found in 1136 <filename>$VJ_ BASE_DIR/share/vrjuggler/samples/Pf/advanced</filename>.1137 These are for more advanced developers who are familiar with1138 Performer and some of the more complicated aspects of VR Juggler.1139 There are two mainprograms to be found there:</para>1167 <filename>$VJ_DATA_DIR/samples/Pf/advanced</filename>. These are for 1168 more advanced developers who are familiar with Performer and some of 1169 the more complicated aspects of VR Juggler. There are two main 1170 programs to be found there:</para> 1140 1171 1141 1172 <itemizedlist> … … 1168 1199 and that is the whole point, right? This chapter explains how to compile 1169 1200 the applications provided in the directory 1170 <filename>$VJ_ BASE_DIR/share/vrjuggler/samples/OGL/simple</filename>.</para>1201 <filename>$VJ_DATA_DIR/samples/OGL/simple</filename>.</para> 1171 1202 1172 1203 <section> … … 1200 1231 1201 1232 <para>All the sample programs in 1202 <filename>$VJ_BASE_DIR/share/vrjuggler/samples</filename> use the 1203 same basic steps to compile unless otherwise noted. Always refer 1204 to the top of the sample application's 1205 <filename>Makefile</filename> for information that may be specific 1206 to building that application. In general, though, all 1207 applications' makefiles require the GNU version of the 1233 <filename>$VJ_DATA_DIR/samples</filename> use the same basic steps 1234 to compile unless otherwise noted. Always refer to the top of the 1235 sample application's <filename>Makefile</filename> for information 1236 that may be specific to building that application. In general, 1237 though, all applications' makefiles require the GNU version of the 1208 1238 <command>make</command>(1) utility, sometimes installed as 1209 1239 <command>gmake</command>.</para> … … 1211 1241 <para>The example used here will be the MPApp tutorial application 1212 1242 found in 1213 <filename>$VJ_ BASE_DIR/share/vrjuggler/samples/OGL/simple/MPApp</filename>.1214 It isan OpenGL-based application that will compile and run on all1243 <filename>$VJ_DATA_DIR/samples/OGL/simple/MPApp</filename>. It is 1244 an OpenGL-based application that will compile and run on all 1215 1245 platforms supported by VR Juggler. Begin by changing into the 1216 1246 directory 1217 <filename>$VJ_ BASE_DIR/share/vrjuggler/samples/OGL/simple/MPApp</filename>1218 in acommand shell.</para>1247 <filename>$VJ_DATA_DIR/samples/OGL/simple/MPApp</filename> in a 1248 command shell.</para> 1219 1249 1220 1250 <para>To compile MPApp, simply enter the following:</para> … … 1348 1378 modifications. What does change is the configuration files used when 1349 1379 starting the program. In 1350 <filename>$VJ_BASE_DIR/share/vrjuggler/data/configFiles</filename>, you 1351 can find many basic configuration files including those for running in 1352 simulator using a mouse and keyboard to simulate VR input devices and 1353 some example files based on those used for the VRAC C4 system. In the 1354 directory, you will see some files with names containing 1355 <quote>mixin</quote>. These are special files that provide a specific 1356 capability not necessarily needed by all applications. They can be mixed 1357 in (hence the name) with other configuration files as needed. The 1358 configuration files found in the <filename>configFiles</filename> 1359 directory will be referenced in the examples provided, so be sure you 1360 know where they are.</para> 1380 <filename>$VJ_DATA_DIR/data/configFiles</filename>, you can find many 1381 basic configuration files including those for running in simulator using 1382 a mouse and keyboard to simulate VR input devices and some example files 1383 based on those used for the VRAC C4 system. In the directory, you will 1384 see some files with names containing <quote>mixin</quote>. These are 1385 special files that provide a specific capability not necessarily needed 1386 by all applications. They can be mixed in (hence the name) with other 1387 configuration files as needed. The configuration files found in the 1388 <filename>configFiles</filename> directory will be referenced in the 1389 examples provided, so be sure you know where they are.</para> 1361 1390 1362 1391 <section id="section.required.reading"> … … 1519 1548 <filename>$VJ_BASE_DIR\share\vrjuggler\data\configFiles</filename> 1520 1549 on Windows or 1521 <filename>$VJ_BASE_DIR/share/vrjuggler- 2.2/data/configFiles</filename>1550 <filename>$VJ_BASE_DIR/share/vrjuggler-3.0/data/configFiles</filename> 1522 1551 on all other platforms. Beginning users will typically want to 1523 1552 reference the example configuration files in that directory. As … … 1657 1686 Windows</title> 1658 1687 1659 <para>In VR juggler 2.2, Cocoa support has been added for Mac1660 OS Xusage. This gives much better results than the previous1688 <para>In VR juggler 2.2, Cocoa support was added for Mac OS X 1689 usage. This gives much better results than the previous 1661 1690 reliance upon the X Window System. The interface for VR Juggler 1662 1691 applications on Mac OS X is noticeably different than other … … 1682 1711 scope of this document, but Apple has extensive documentation 1683 1712 available for perusal. For typical VR Juggler applications, the 1684 bundle data files that come with VR Juggler 2.2will suffice.1713 bundle data files that come with VR Juggler 3.0 will suffice. 1685 1714 The application bundle is constructed automatically using these 1686 1715 files when the <literal>bundle</literal> target is built for 1687 1716 any VR Juggler application whose build is based on Doozer 2.1.4 1688 1717 and newer. For builds that are not using Doozer, see the files 1689 in 1690 <filename>$VJ_BASE_DIR/share/vrjuggler-2.2/data/bundle</filename> 1691 for a starting point.</para> 1718 in <filename>$VJ_DATA_DIR/data/bundle</filename> for a starting 1719 point.</para> 1692 1720 1693 1721 <para>The use of application bundles offers several different … … 1730 1758 This is done as follows:</para> 1731 1759 1732 <screen>% open -a MPApp.app $VJ_BASE_DIR/share/vrjuggler- 2.2/data/configFiles/standalone.jconf</screen>1760 <screen>% open -a MPApp.app $VJ_BASE_DIR/share/vrjuggler-3.0/data/configFiles/standalone.jconf</screen> 1733 1761 1734 1762 <para>Note that the paths given to the application bundle and … … 2235 2263 <quote>training file</quote> for the simulated glove device. The 2236 2264 default training file is 2237 <filename>$VJ_ BASE_DIR/share/vrjuggler/data/gesture/simpleSimGestures.dat</filename>.</para>2265 <filename>$VJ_DATA_DIR/data/gesture/simpleSimGestures.dat</filename>.</para> 2238 2266 </section> 2239 2267 … … 2353 2381 2354 2382 <para>The example configuration files in the directory 2355 <filename>$VJ_ BASE_DIR/share/vrjuggler/data/configFiles</filename>2356 modeled afterthose used for VRAC's Onyx-powered C4 system are as2383 <filename>$VJ_DATA_DIR/data/configFiles</filename> modeled after 2384 those used for VRAC's Onyx-powered C4 system are as 2357 2385 follows:</para> 2358 2386
