File: cs_40.html

package info (click to toggle)
crystalspace 0.94-20020412-3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 62,276 kB
  • ctags: 52,843
  • sloc: cpp: 274,783; ansic: 6,608; perl: 6,276; objc: 3,952; asm: 2,942; python: 2,354; php: 542; pascal: 530; sh: 430; makefile: 370; awk: 193
file content (152 lines) | stat: -rw-r--r-- 6,962 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!-- Created by texi2html 1.64 -->
<!-- 
Written by: Lionel Cons <Lionel.Cons@cern.ch> (original author)
            Karl Berry  <karl@freefriends.org>
            Olaf Bachmann <obachman@mathematik.uni-kl.de>
            and many others.
Maintained by: Olaf Bachmann <obachman@mathematik.uni-kl.de>
Send bugs and suggestions to <texi2html@mathematik.uni-kl.de>
 
-->
<HTML>
<HEAD>
<TITLE>Crystal Space: BeOS Running</TITLE>

<META NAME="description" CONTENT="Crystal Space: BeOS Running">
<META NAME="keywords" CONTENT="Crystal Space: BeOS Running">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">
<META NAME="Generator" CONTENT="texi2html 1.64">

</HEAD>

<BODY LANG="" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#800080" ALINK="#FF0000">

<A NAME="SEC109"></A>
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="cs_39.html#SEC108"> &lt; </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="cs_41.html#SEC110"> &gt; </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> &nbsp; <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="cs_37.html#SEC105"> &lt;&lt; </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="cs_38.html#SEC107"> Up </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="cs_42.html#SEC111"> &gt;&gt; </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> &nbsp; <TD VALIGN="MIDDLE" ALIGN="LEFT"> &nbsp; <TD VALIGN="MIDDLE" ALIGN="LEFT"> &nbsp; <TD VALIGN="MIDDLE" ALIGN="LEFT"> &nbsp; <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="index.html#SEC_Top">Top</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="cs_toc.html#SEC_Contents">Contents</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="cs_285.html#SEC711">Index</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="cs_abt.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<HR SIZE=1>
<H4> 2.4.6.2 Running the Applications </H4>
<!--docid::SEC109::-->
<P>

The standard library archive, `<TT>standard.zip</TT>', is included with
the Crystal Space package within the `<TT>CS/data</TT>' directory.  If it is
missing, however, you may download it from the Crystal Space site
(see section <A HREF="cs_7.html#SEC7">1.6 Where to Get Crystal Space</A>) and place it in `<TT>CS/data</TT>' manually.  This file
contains resources which are used by several Crystal Space demonstration
programs.  Do not unpack this file; Crystal Space uses it as is.
</P><P>

The standard texture archive, `<TT>stdtex.zip</TT>', contains textures which are
required by many of the example Crystal Space map files.  You should download
this file and place it in the `<TT>CS/data</TT>' directory.  As with
`<TT>standard.zip</TT>', do not unpack this file.  `<TT>stdtex.zip</TT>' can be
downloaded from the following location:
</P><P>

<A HREF="ftp://ftp.linuxgames.com/crystal/levels/stdtex.zip">ftp://ftp.linuxgames.com/crystal/levels/stdtex.zip</A>
</P><P>

You will also need to have at least one <EM>map</EM> file in order to use the
Crystal Space demonstration program, WalkTest.  Typically map files should be
placed within the `<TT>CS/data</TT>' directory.  As with other Crystal Space
resources, map files are actually compressed archives which are used directly
by the engine, thus you should not unpack these archives.
</P><P>

The most commonly used map file is `<TT>flarge.zip</TT>' since it demonstrates many
of the special features of the engine rather than focusing on merely one or two
areas.  You can download `<TT>flarge.zip</TT>', as well as several other example
map files from the following location:
</P><P>

<A HREF="ftp://ftp.linuxgames.com/crystal/levels/">ftp://ftp.linuxgames.com/crystal/levels/</A>
</P><P>

To launch WalkTest you can either double-click on its icon or, from the command
line, you can type:
</P><P>

<TABLE><tr><td>&nbsp;</td><td class=example><pre>walktest
</pre></td></tr></table></P><P>

This will run the WalkTest with the settings from the
`<TT>CS/data/config/walktest.cfg</TT>' file (usually using software renderer,
though you can change this).  Alternately you can choose the video driver by
specifying the `<SAMP>--video</SAMP>' option on the command-line:
</P><P>

<TABLE><tr><td>&nbsp;</td><td class=example><pre>walktest --video=software  # Runs in software mode
walktest --video=opengl    # Runs in OpenGL mode
</pre></td></tr></table></P><P>

If you are using the OpenGL renderer, then invoking <KBD><KBD>ALT</KBD>-f</KBD> will
switch in and out of full screen mode.
</P><P>

To use a particular map file, mention it on the command line when invoking the
WalkTest application.  For example:
</P><P>

<TABLE><tr><td>&nbsp;</td><td class=example><pre>walktest flarge
</pre></td></tr></table></P><P>

If you wish this map to be used by default whenever you launch WalkTest without
otherwise explicitly mentioning a map file, you may want to change the
`<SAMP>WorldFile</SAMP>' option in WalkTest's configuration file
`<TT>CS/data/config/walktest.cfg</TT>'.
</P><P>

<TABLE><tr><td>&nbsp;</td><td class=example><pre>Walktest.Settings.WorldFile=flarge
</pre></td></tr></table></P><P>

The rest of the settings are mostly self evident and can often be overridden
on the command line.
</P><P>

You may have to adjust the `<SAMP>Engine.Lighting.Ambient.White</SAMP>' level in
`<TT>engine.cfg</TT>' if the maps appear too dark.  After adjusting the ambient
level, specify `<SAMP>--relight</SAMP>' on the command-line to instruct Crystal Space
to recalculate the lighting information.  For example:
</P><P>

<TABLE><tr><td>&nbsp;</td><td class=example><pre>walktest --relight flarge
</pre></td></tr></table></P><P>

Other interesting example applications which you can run are `<TT>blocks</TT>',
`<TT>metademo</TT>', and `<TT>mazed</TT>'.
</P><P>

<A NAME="BeOS Notes"></A>
<HR SIZE=1>
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="cs_39.html#SEC108"> &lt; </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="cs_41.html#SEC110"> &gt; </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> &nbsp; <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="cs_37.html#SEC105"> &lt;&lt; </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="cs_38.html#SEC107"> Up </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="cs_42.html#SEC111"> &gt;&gt; </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> &nbsp; <TD VALIGN="MIDDLE" ALIGN="LEFT"> &nbsp; <TD VALIGN="MIDDLE" ALIGN="LEFT"> &nbsp; <TD VALIGN="MIDDLE" ALIGN="LEFT"> &nbsp; <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="index.html#SEC_Top">Top</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="cs_toc.html#SEC_Contents">Contents</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="cs_285.html#SEC711">Index</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="cs_abt.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<BR>  
<FONT SIZE="-1">
This document was generated

using <A HREF="http://www.mathematik.uni-kl.de/~obachman/Texi2html
"><I>texi2html</I></A>

</BODY>
</HTML>