Difference between revisions of "OldOgreInstallNotes"

From SfzWiki
Jump to: navigation, search
(Linux)
(ogre 1.2 note)
Line 60: Line 60:
 
./SkyBox
 
./SkyBox
 
</pre>
 
</pre>
 +
 +
 +
[http://www.ogre3d.org/index.php?option=com_remository&Itemid=74&func=fileinfo&filecatid=44&parent=category Ogre 1.2 Source] also works good, but you need to
 +
make sh bootstrap first and then ./configure && make && make install. Without bootstrap make install caused errors.
 +
The OgreApi changed a bit, so you also need to replace the line with getSceneManager in client.cpp with the following
 +
mSceneMgr = mRoot->createSceneManager(ST_GENERIC,"main");
  
  
 
[[more notes]]
 
[[more notes]]

Revision as of 12:42, 15 March 2006

Commandline Parameters

  • -n : disable sound (sound engine currently crashes on exit)
  • -h 7777 : host (and participate) a game on port 7777
  • -d 7777 : start a dedicated server
  • -j localhost:7777  : connect to a game running on "localhost" on port 7777

when using none of the -h,-d and -j switches, a local game is started.

Controls

  • w : accelerate forward (main thrust)
  • s : accelerate backwards (reverse thrust)
  • a : accelerate left (strafe)
  • d : accelerate right (strafe)
  • mouseclick : fire instant-kill weapon (no graphic feedback yet, target simply disappears on hit)
  • mouseclick : respawn
  • q : debug : reset ship position and rotation to start
  • e : debug : set speed to zero

Linux

  • you need ogre3d (see below) (Version 1.0.5 (Azathoth))
  • so far only svn access to the source, no direct download
  • SVN path: svn://zwischenwelt.org/sfz

OGRE

here is what worked for me, (knoppix 4.0.2 debian installation, with 2.6.13 kernel)

# get Cg from http://developer.nvidia.com/cg, unpack to root "/" to install
cd /
tar xfz Cg-1.4.0-3_x86.tar.gz

# get zziplib source from http://zziplib.sourceforge.net
cd /usr/src
tar xfj zziplib-0.12.83.tar.bz2
cd zziplib-0.12.83
./configure
make && make check && make install

# get DevIL source from http://openil.sourceforge.net/
cd /usr/src
tar xfz DevIL-1.6.7.tar.gz
cd DevIL-1.6.7
./configure
make && make install

# install sdl with apt-get
apt-get install libsdl1.2-dev

# get ogre source from http://ogre3d.org
cd ogrenew
aclocal
./bootstrap
./configure
make
make install
# add a line "/usr/local/lib" to /etc/ld.so.conf
/sbin/ldconfig
cd Samples/Common/bin/
./SkyBox


Ogre 1.2 Source also works good, but you need to make sh bootstrap first and then ./configure && make && make install. Without bootstrap make install caused errors. The OgreApi changed a bit, so you also need to replace the line with getSceneManager in client.cpp with the following

mSceneMgr = mRoot->createSceneManager(ST_GENERIC,"main");


more notes