VgObject removal with special effects

New Message Reply Date view Thread view Subject view Author view

Wear, Mark (mark.wear++at++lmco.com)
Thu, 23 Sep 1999 13:06:09 -0600


Hey,

I'm having trouble deleting vgObjects with attached special effects. When
attempting to do so, Vega sporadically aborts with no error message. Using
the debugger, I was able to determine that the abort occurs within Vega
during the function vgDispList::drawElem(). This is not something that is
explicitly called by my application.

The vgObjects are created by cloning a model template, which happens to be
an OpenFlight model defined within the ADF. When an entity has gone
out-of-scope, it is removed from the scene and deleted. The logic works
something like this:

        1. Check for an attached special effect.
        2. If an effect exists:
                Remove the effect from the object.
              Remove the effect from the scene.
              Delete the effect.
        3. Check for a non-NULL vgObject.
        4. If the object exists:
                Remove the effect from the scene.
                 Delete the object.

Is this the correct procedure for removing a vgObject and vgFX from the
scene and deleting them? Are there any known problems associated with using
special effects with cloned objects? Any suggestions?

Thanks,
Mark

Mark E. Wear
Senior Electronic Systems Engineer:
Real-Time Simulation
Lockheed Martin Missiles and Fire Control
(972) 603-2758
mark.wear++at++lmco.com


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Thu Sep 23 1999 - 12:08:04 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.