Updating scene graph Object in real time

Hi All,



How can I change (geometry, color adding or deleting object ) at run time?

My program listen to external event and I want my program to act according to the event.

Any ideas?



Thank U in advance

Eyal

Render/UpdateQue are my tip for this.

Thank u for your answer…but can u be more specific ?

there is a useful utility class that allows you to schedule tasks for the update or render methods so they will be gl thread safe…

they are



GameTaskQueueManager.getManager().update

GameTaskQueueManager.getManager().render



add a callable to each one to execute the desired operation…

Basically, you create a queue of actions (or updates) that need to be performed on the next render pass. Each render pass, you grab the updates off the queue that have accumulated since the last pass and execute them. The queue will need to be thread safe.

Basically, you create a queue of actions (or updates) that need to be performed on the next render pass


Where do I need to write the code for thaht? in update (e.g.  simpleUpdate ?)

Thank u

Eyal

Thank u very much