[Plib-users] passing more than one value to psl scripts
Brought to you by:
sjbaker
From: Gerald F. <gf...@tu...> - 2004-11-25 10:32:01
|
Dear plib community, I am currently evaluating several scripting engines on their suitability for controlling simple animations in our VR framework ( http://velib.kyb.mpg.de ), and psl seems to be a promising candidate due to its small footprint and support of massive quasi-parallelly running scripts. For our purposes it is necessary to pass each frame a larger number of variable values (e.g., 6 float values containing an object's position or orientation or 16 values of a transformation matrix) to the scripts. I succeeded in accessing these data individually by writing access functions that return just one specific ordinate, but I could not find a mechanism to pass a complete array. It seems pretty cumbersome and like a lot of overhead to need 6 or even 16 function calls for such an initialization. Since psl as part seems to be designed for 3D applications, I am just wondering whether there is a more efficient mechanism for doing that. Can I somehow pass an array? If not, I've found that there is a class pslVariable which already has the ability to handle more than one value. If extension functions could return such an object, this would seem to me like a more flexible solution. Thanks for any idea or comment Gerald |