Hi !
I'ld like to show you my progress on combining Newton with Ogre and my NetworkingLib:
If you want to try it, you can download it from http://rochel.s83.deinprovider.de/wip/wip.7z
Known Issues:
Problems I'm aware of:
- Probably the system gets out of sync if tried in
Multiplayer mode. This is hard for me to try right now
because I have only 1 pc where Ogre an Newton run
correctly on.
- Gun 1 needs some tweaking, especially sometimes some
cubes don't react if you try to pull them. Moving a
bit around and trying it again makes it work.
Problems related to Ogre:
- Some cubes are flickering. I have no idea of the reason why.
- When switching the guns, their models stay fixed at
the position where you switched them in world space.
I don't know why. I define an overlay for each gun
and show and hide them according to the selected gun,
but instead of hiding the gun attached to the overlay,
it seems like it just disconnects the model from the
overlay somehow.
- Dynamical creation of Particle Systems are pretty slow,
at least the way I do it. If you take the second gun and
shoot, the framerate drops drastically on impact of the
projectile, exactly when a new Particle System gets
created. If I don't creat a Particle System then,
there is no slowdown.
Right now, my code to create a Particle System dynamically
looks like this and the first line is the one that takes
much time:
psys = ParticleSystemManager::getSingleton().createSystem(s, "Particles/Explosion");
vis = visualization->mSceneMgr->getRootSceneNode()->createChildSceneNode();
vis->attachObject(psys);
Problems related to Newton:
- The cubes sink into each other when you try to stack them.
I probably have to tweak the properties of the bodies
somehow.
If you have some tipps how to deal with these problems I'ld like to here about it.
If someone has some nicer models than I have and is willing to contribute them,
that'ld be cool
-
Marc