OpenModel and OpenAlias Notes

API Additions

There have been no method or class additions to the API between V8.0 and V8.1.

Note:

To run Alias V8.0 under a debugger, the following environment variable must be set:

from a c-shell: setenv AW_DEBUGGING "yes"

from a k-shell: export AW_DEBUGGING=yes

from a Bourne shell: AW_DEBUGGING=yes; export AW_DEBUGGING

This environment variable is now set automatically when the Alias script is executed.

Note:

Plug-in DSOs are not unloaded when Alias exits. As a result, static destructors are not called when Alias exits. Static destructors will be called if the plug-in is unloaded manually through the Plug-in Manager window.

The plugin_exit() function will still be called when Alias exits. Any saving of state required by a plug-in can be performed in the plugin_exit() routine.


Limitation:

Note:

It is possible to have more than one blind data packet on an object with the same user_type. This is generally not a good thing, and the order in which these packets will be returned by the blindData() methods is undefined.


Limitation:

Note:

NURBS curves and surfaces are not parameterized from 0 to 1. You must retrieve the knot vector for any geometry and use the min and max knot values as the limits of the parameterization for the geometry.


Limitation:

Note:

If you're writing a plug-in, and want it to run under both IRIX 5.3 and IRIX 6.2, then you must compile and link it on a machine running IRIX 5.3. Compiling and linking the plug-in under IRIX 6.2 may introduce symbols that are not present in the IRIX 5.3 libraries.

Note:

If you are using the 7.1 compilers under IRIX 6.2 and you are having link errors with OpenModel applications, try using the -old_ld link option to the linker.


Limitation:The AlContinuousFunction::setPrompt() does not display the prompt right away.

Solution:Use AlPrintf(kPrompt,...) to output the prompt string (without formatting) in the "init" callback of the continuous function. To exclude formatting, end the prompt string before the first % symbol.



Limitation:Plug-ins or OpenModel applications may have compile errors with the AlDagNode.h header file under IRIX 5.3 because of the nested AlCopyOptions class.

Solution:The SGI compiler on Irix 5.3 has problems with nested classes. The nested class problem has been fixed in patch 1599 for the IRIX 5.3 C++ compiler available from SGI. Note that patch 1599 replaces patch 1130. This problem does not occur under IRIX 6.2.



Limitation:Plug-ins with undefined symbols will load without an error on IRIX 6.2. Invoking the plug-in will cause a core dump.

Solution:A problem existed with the dlopen() system call in IRIX 6.2 which caused the core dump described in the limitation. SGI patch 1584 will fix this dlopen() problem. If there is an undefined symbol within the plug-in, the plug-in will fail to load and an error will be written to the prompt line.



Limitation:When programming plug-ins, try to avoid using the function AlFunctionHandle::removeFromMenu, since it may cause a fatal error under certain circumstances.

Solution:It is usually unnecessary since AlFunctionHandle::deleteObject() automatically performs this operation.



Limitation:Unloading an active continuous plug-in through the Plug-in Manager can cause a core dump under certain situations.

Solution:The solution to this problem is not allowing the plug-in to be unloaded if it is active. A global variable within the plug-in can be set to track its active state. Set this variable to TRUE in the init() function and FALSE in the cleanup() function. Within plugin_exit(), if the plug-in is active, return a 1 so that the unloading of the plug-in will fail. This test should be done before the deleteObject() methods are called in plugin_exit().



Limitation:When retrieving files the Universe's blind data may get obscured.

Solution:The problem is that two blind data packets with the same user type have been attached to the universe. To see anything but the first one it is necessary to remove the first one, and then the second one will be visible.



Limitation:The IK animation range is incorrect for writing SDL in OpenModel for animations with both IK and Particles.

If you are using AlUniverse::writeSDL() in OpenModel, and IK and Particles are both present, and the IK animation controls a particle emitter (or particle collision object), then IK animation will not be written for the particle runup period.

Solution:To determine the run up period, look at kFLD_SHADING_COMMON_PSYS_LIFESPAN_MAX and kFLD_SHADING_COMMON_PSYS_START_FRAME of AlShadingFields for each particle emitting light and shader.


General Limitations

Bugs Fixes





aliasdocs@aw.sgi.com
Copyright © 1997, Alias|Wavefront, a Silicon Graphics Company. All rights reserved.