Hi,

Long time I am trying to use lua scripting plugin without success. 
This is all my lua code :

"
function test (string, double,matrix )
        print(string)
        print(double)
        print(matrix)
      return osg.Matrixd
    end

"

It's very simple, but output is still "Lua error : attempt to call a string 
value". I think that in script is missing some require or somethig that tell 
Lua about OSG . I add as input parameter 
inputParameters.push_back(new osg::MatrixfValueObject("matrix",osg::Matrixf()));

I thik lua doesn't know something about OSG, and I got errors in console. 
Can you tell me what is wrong ? 
I have idea about generating some glue with Swig generator , and build it with 
OSG (as simple DLL file), and use with require in lua script. But it doesn't 
work. Application crashed. Can you public simple lua test script with one 
funcion, which is used with [Examples osgprezentation] project ? On web there 
are no examples about lua scripting in OSG. Or can you tell me how to do some 
magic with osg and lua. I am using OSG for 3 years but scripting is very 
difficult for me, I need som explanation how it works together . 
 
Thank you!

Cheers,
Martin

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=62720#62720





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to