Dr M Price <marc.price@xxxxxxxxxxxx> writes:
> I'm modifying an inventor-based renderer we have, which uses glut.
> I have tried loading an inventor scene (eg windmill.iv) with
> engines, but the animations don't work. I think that the engine
> outputs aren't being propagated when the SoGLRenderAction is
> applied. Is there some other action that needs to be applied to
> force this propagation?
This probably happens because you are not processing the sensor
queues.
I have also written a small example that shows how to use GLUT with
the Inventor API, see <URL:http://www.coin3d.org/glutiv.cpp>. This
example contains some animated entities in the scene.
Note that the sensor queue handling is not perfect, though. To get it
completely right, you should really take a look at the source code of
either SGI's InventorXt, or one of our SoQt/SoWin/SoXt/SoGtk
libraries. (See URL in my signature.) And be aware that it is not
entirely trivial to get right.
Regards,
Morten
--
<URL:http://www.coin3d.org>
|