I think i have reached a point at which the basic infrastructure in the code base is relatively stable. I now manage the code in a local SVN repository and here's a first snapshot of the code base. Things you will need to build this
- Ogre 1.4
- OIS 1.0RC
- CEGUI 0.5
- libconfig http://www.hyperrealm.com/main.php?s=libconfig
- State Threads 1.8 http://state-threads.sourceforge.net/
How to run the program
----------------------------------
- make
- ./TerrainRenderer
- Right click on the terrain to create cubes. camera movement using keyboard keys
shift+up/down to lookup and down, shift+left/right to strafe.
- Hit ESC to get rid of the main menu which doesnt do anything right now anyway:p
- create around 50-100 cubes and just watch them kill/clone and commit suicide.
- They output a lot of text to stdout which i use for debugging for now you can probably /dev/null it.
Known bugs:)
--------------------
- sometimes clicking on the terrain doesnt create a cube, this is due to the way I am doing raycasting to figure out if the click lands on a terrain. I am in the process of fixing it this usually happens if the camera is beyond the dimensions of the terrain.
- cubes dont follow terrain strictly , this is due to me adding +3 to the cube's y position and i think some LOD issues.
- GUI buttons don't do anything yet:p
NOW the code: Download file
