game states / ODE / freeflight / XML io all-in-one demo

Post those lines of code you feel like sharing or find what you require for your project here; or simply use them as tutorials.
randomMesh
Posts: 1186
Joined: Fri Dec 29, 2006 12:04 am

game states / ODE / freeflight / XML io all-in-one demo

Post by randomMesh »

Overview
New: Windows binary!

I just released a first peek on my Irrlicht demo application.
It basically is a mixture of all the useful code found here in the forums.

The demo currently shows how to use
- oop
- xml io
- sound (irrKlang)
- freeflight (WASD / mouse look)
- a compass
- particle systems
- grass
- fog
- game states
- ode (physics and collison detection)

Planned features are:
- networking

Where to get
Linux
You can get the demo (binary with sources) here. (9.9 MB)

To build the binary yourself, you may use the provided Makefile.

Windows
Thanks to MasterGod there is now a Windows binary of the demo.
You can get it here. (4.6 MB)
Note that this is an older version of the demo without sources.

Known bugs and issues
Saving the config.xml by applying changes either in the options menu or the player setup, lags badly. Don't know why this happens, because the writing to file itself is done in a second. (messed up event receiver?)

Changelog
There is another new version. A lot of changes have been made

- improved documentation
- cleaned up code
- added goodies

Credits
A lot of code provided by vitek and arras made it into this demo.
Thanks a lot guys. Last but not least i want to thank bitplane for his wonderful GrassSceneNode.

Bleeding edge screenhots
These screenshot show the current development. The provided packages are older!
Image
Image
Image

comments please :D
Last edited by randomMesh on Wed Mar 12, 2008 1:40 am, edited 30 times in total.
CuteAlien
Admin
Posts: 9634
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Post by CuteAlien »

Runs fine on my debian derivate :-).

Nice code and very useful - I don't think we had good examples for freeflight so far!

The only minor bug I noticed was that it takes very long after saving options (username) until you can again do something (like 15 seconds).
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Tr3nT
Posts: 65
Joined: Thu Nov 29, 2007 5:19 pm

Post by Tr3nT »

is possible that the win exe doesn't run?????

and another question...the linux source code is the same of the win coe or i have to change something to make it run??????
monkeycracks
Posts: 1029
Joined: Thu Apr 06, 2006 12:45 am
Location: Tennesee, USA
Contact:

Post by monkeycracks »

Tr3nT wrote:is possible that the win exe doesn't run?????

and another question...the linux source code is the same of the win coe or i have to change something to make it run??????
One question mark would suffice I think ;)
I did have the same problem though, something about the application configuration incorrect. I always have that problem when I try to redistribute something made with msvc.
randomMesh
Posts: 1186
Joined: Fri Dec 29, 2006 12:04 am

Post by randomMesh »

Tr3nT wrote:is possible that the win exe doesn't run?
Sorry, i don't know. The Windows executable is not from me, i don't own Windows. (and don't want to).
Tr3nT wrote:and another question...the linux source code is the same of the win coe or i have to change something to make it run?
No, it's not different. All used libraries are cross-platform. Just compile.
Lekane
Posts: 31
Joined: Thu Jun 01, 2006 7:07 pm

Post by Lekane »

win version works here
Steel Style
Posts: 168
Joined: Sun Feb 04, 2007 3:30 pm
Location: France

Post by Steel Style »

Win version won't work there :'( was looking cool.
shadowslair
Posts: 758
Joined: Mon Mar 31, 2008 3:32 pm
Location: Bulgaria

Post by shadowslair »

It`s working for me, although when I collide with Sydney or the terrain it give s me this error:

Image

It`s nice as a whole :wink:
"Although we walk on the ground and step in the mud... our dreams and endeavors reach the immense skies..."
MasterGod
Posts: 2061
Joined: Fri May 25, 2007 8:06 pm
Location: Israel
Contact:

Post by MasterGod »

shadowslair wrote:It`s working for me, although when I collide with Sydney or the terrain it give s me this error:

Image

It`s nice as a whole :wink:
I think it's a known bug he hasn't fixed..
Image
Dev State: Abandoned (For now..)
Requirements Analysis Doc: ~87%
UML: ~0.5%
switch_case
Posts: 34
Joined: Sat Mar 08, 2008 12:46 pm
Location: Germany, FFM
Contact:

Post by switch_case »

it didn't work for me on windows, it says the installconfig was not right and i need to reinstall it :/
but looks interesting all in all ;)
if life could only be written in C++...
so much features, money++, remove_childs(), choose parents, life = new life, and no more <IDIOT> templates !
if you're looking for an nerdy coding language: http://lolcode.com/
doqkhanh
Posts: 158
Joined: Sat Mar 01, 2008 3:14 am
Location: Tokyo, Japan
Contact:

Post by doqkhanh »

switch_case wrote:it didn't work for me on windows, it says the installconfig was not right and i need to reinstall it :/
but looks interesting all in all ;)
I think you are currently using Windows Vista?? Irrlicht haven't got any problem with Windows Vista. You can try to execute the game exe file only.
doqkhanh
Posts: 158
Joined: Sat Mar 01, 2008 3:14 am
Location: Tokyo, Japan
Contact:

Excuse me, may I reuse your source code

Post by doqkhanh »

Credits
A lot of code provided by vitek and arras made it into this demo.
Thanks a lot guys. Last but not least i want to thank bitplane for his wonderful GrassSceneNode.
Excuse me, may I reuse your source code in my program. It's a open source Irrrlicht game project.

Edited for: correct spelling
randomMesh
Posts: 1186
Joined: Fri Dec 29, 2006 12:04 am

Re: Excuse me, may I reuse your source code

Post by randomMesh »

doqkhanh wrote:
Credits
A lot of code provided by vitek and arras made it into this demo.
Thanks a lot guys. Last but not least i want to thank bitplane for his wonderful GrassSceneNode.
Excuse me, may I reuse your source code in my program. It's a open source Irrrlicht game project.
As for my part it is ok, that's why i posted it here.
doqkhanh
Posts: 158
Joined: Sat Mar 01, 2008 3:14 am
Location: Tokyo, Japan
Contact:

Post by doqkhanh »

To randomMesh: Thank you very much.

Edited: delete 1 require to mastergod
Last edited by doqkhanh on Fri May 16, 2008 6:53 pm, edited 1 time in total.
doqkhanh
Posts: 158
Joined: Sat Mar 01, 2008 3:14 am
Location: Tokyo, Japan
Contact:

Post by doqkhanh »

Hi there, I make a little cut/paste to your code and created a simpler sample with 1 state:

http://doqkhanh.googlepages.com/DemoD4G ... estate.rar
Post Reply