info-inventor-dev
[Top] [All Lists]

Re: use of engines with glut

To: info-inventor-dev@xxxxxxxxxxx
Subject: Re: use of engines with glut
From: Morten Eriksen <mortene@xxxxxx>
Date: 14 Nov 2002 20:54:24 +0100
In-reply-to: Dr M Price's message of "Thu, 14 Nov 2002 16:59:47 +0000"
Organization: Systems in Motion
References: <3DD3D683.67639F3@rd.bbc.co.uk>
Sender: info-inventor-dev-bounce@xxxxxxxxxxx
User-agent: Gnus/5.070098 (Pterodactyl Gnus v0.98) Emacs/20.4
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>

<Prev in Thread] Current Thread [Next in Thread>