牵着老婆满街逛

严以律己,宽以待人. 三思而后行.
GMail/GTalk: yanglinbo#google.com;
MSN/Email: tx7do#yahoo.com.cn;
QQ: 3 0 3 3 9 6 9 2 0 .

Ogre 开源游戏项目:Lashkar

来源:http://www.ogre3d.org/phpBB2/viewtopic.php?t=13389

Basically this is a Apache like game which you can fly along with AI based apaches and shoot them down.

ScreenShots
Day Time

Evening Time, missile fired

Night Time


This demo is related to thread
http://www.ogre3d.org/phpBB2/viewtopic.php?t=12929

Download
You can download a playable demo from release files
https://developer.berlios.de/projects/lashkar/
You need to download all 3 files. Binary and dependency zip contains exe and dlls.

Installation:
The download is in 3 files because I don�t have a good net connection.
Most of you already know how to do this, otherwise you need to download 3 zip files at least, lash-binary.zip, lash-media.zip, lash-dependencies. Put all the dll files in the binary's folder so that final structure will look like this
Lashkar/ (contains exe, cfg & dll files)
Lashkar/Media ( from lash-media.zip )

Sorry for inconvinience I cannot upload big files due to net problems.

License: The code is unlicensed and free, except the hoverCraftModel.h/cpp files which are under GPL The code is no good example of how you can use Opensteer with some physics engine. Its cluttered but some might like to get peek on it. The Apache model came with Monster's OgreOde.

Extended Features:
-OpenSteer based steering
-Playstation2 controller support without feedback
-Day&Night cycle using Kencho's Caelum
-First and 3rd person and other view modes
-Simple radar system
-Simple target viewing system
-A helicopter physics model
-Integrating physics engine (Gangsta) with OpenSteer

Key shortcuts are explained in the demo's screen.
Hope you will like it, sorry for lack of sound&music.

Random words and expressions

Ok this is how it all started. I had no intention on making this from start. I went on testing open steer in ogre using gangsta. Because of its coolness I decided to extend the demo into some kind of playable prototype of Lashkar but realized there is no structure or proper code base (I started on gangsta demo)and in haste the resultant code was bloated and unstructured. I also had to use, apply & test different techniques but I came to a point where adding new stuff is just a waste of time. So I decided to stop working and release this half-baked prototype. In the start the code was good but...

The prototype initializes with ~100 apaches doing pathfollowing, you can change their behavior.

By default your Apache will also spawn with Ai controller, Apply the key&mouse or playstation2 controller to control it.

Don�t forget to try out the FirstPerson View Mode. I have experienced that you need to keep a few feet away from monitor in FPS mode�., because the camera rolls at high angles. There is also a missile follow and investigator mode views.

If you have a Ps2 controller and a USB plug for it then you can use it too. But for first time calibrate it from control panel.

I tested various techniques for maintaining height both in chopper physics and making a terrain obstacle for open steer vehicles. I also used different methods for them. But all have some trade offs. Finally I put the height maintaining functionality in the chopper physics.

There are 3 types of height maintaining modes for all the apaches flying. 1-None, 2-MininumHeight(default), 3-FixedHeight. FixedHeight method is not compatible with opensteer. But MinimumHeight method is acceptable.

When OgreOde came out I implemented chopper physics by inspiring from GTA:ViceCity's chopper controls. But after playing Novalogic's Comanche 4, I decided to replicate(chopper physics) it. My implementation is not exact and has some inherited design flaws because of some known and unknown reasons. I will rework on it in future� But lets see, if it looks fine then its fine.

My machine is P4, 512 SDram, Gf4mx. I get around 70-100 fps. Some of the physics related code is frame rate depended. So if you are getting fps way far from mine, you may get different behavior. Hint: Use Vsync to lock fps.


posted on 2007-11-14 15:44 杨粼波 阅读(2609) 评论(0)  编辑 收藏 引用


只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理