NxOgre + Caelum (Sky system)<-- [solved]

jams

29-09-2007 13:40:04

Hi, I'm using Caelum (http://www.ogre3d.org/phpBB2/viewtopic.php?t=24961&start=550 in my application but I have a probrem to make it work with NxOgre.

The problem is that I have a camera attached to a vehicle, and when the vehicle moves, indeed the camera moves too. But Caelum system uses the camera RealPosition at each preViewortUpdate. The result is that the sky system keeps oscillating between two (or more) camera positions when some physics works on the vehicle.

Well, even before posting this message I found a solution, which is to manually call Ogre::SceneNode::_update on nodes handled by NxOgre before Caelum system update.
I wonder if NxOgre souldn't do that itself automatically when needed :?:

betajaen

29-09-2007 14:44:14

Attached? As in the Camera Moveable object is attached to the node, or the Camera pose is updated every frame to the car's actor?

Either way it's not NxOgre's responsibility to make sure Caelum or any other library works with it like that. Your also using a Body which is begging to be sub-classed, which no serious programmer would use Body in their application but write their own.

You want an "_update", create your own Body class for your car.