How to call glMultMatrix passing an instance of KFbxXMatrix?

Mark Laff <[email protected]>
Newsgroups gmane.comp.python.opengl.user
Message-ID <[email protected]>
Newb to both Python and OpenGL, so this may be a trivial question.

I have C sample code which looks like:

    void GlDrawCrossHair(KFbxXMatrix& pGlobalPosition)
    {
         glColor3f(1.0, 1.0, 1.0);
         glLineWidth(1.0);

         glPushMatrix();
         glMultMatrixd((double*) pGlobalPosition);
    ...

but when I try to write, in Python:


    def DrawCrosshair(pGlobalPosition):
         glColor3f(1.0,1.0,1.0)
         glLineWidth(1.0)

         glPushMatrix()
         glMultMatrixd(pGlobalPosition)



I get:

    ...
    File "C:/Users/Mark/Documents/Projects/MICA/MicaPython/Mica.py",
    line 141, in DrawCrosshair
         glMultMatrixd(pGlobalPosition)
       File "C:\Python26\lib\site-packages\OpenGL\latebind.py", line 45,
    in __call__
         return self._finalCall( *args, **named )
       File "C:\Python26\lib\site-packages\OpenGL\wrapper.py", line 569,
    in wrapperCall
         pyArgs = tuple( calculate_pyArgs( args ))
       File "C:\Python26\lib\site-packages\OpenGL\wrapper.py", line 354,
    in calculate_pyArgs
         yield converter(args[index], self, args)
       File
    "C:\Python26\lib\site-packages\OpenGL\arrays\arrayhelpers.py", line
    110, in asArraySize
         handler = typ.getHandler( incoming )
       File
    "C:\Python26\lib\site-packages\OpenGL\arrays\arraydatatype.py", line
    52, in __call__
         typ, repr(value)[:50]
    TypeError: ("No array-type handler for type <class
    'fbx.KFbxXMatrix'> (value: <fbx.KFbxXMatrix object at
    0x0000000003AE01C8>) registered", <function asArraySize at
    0x00000000035C5CF8>)
    GLUT Display callback <function display at 0x0000000003954CF8> with
    (),{} failed: returning None ("No array-type handler for type <class
    'fbx.KFbxXMatrix'> (value: <fbx.KFbxXMatrix object at
    0x0000000003AE01C8>) registered", <function asArraySize at
    0x00000000035C5CF8>)


This must be a simple operation but I cannot find any examples to go by.

I'm running on Windows Vista, Python 2.6.6, and PyOpenGl 3.0.1.


Thanks in advance,


Mark

------------------------------------------------------------------------------
Doing More with Less: The Next Generation Virtual Desktop 
What are the key obstacles that have prevented many mid-market businesses
from deploying virtual desktops?   How do next-generation virtual desktops
provide companies an easier-to-deploy, easier-to-manage and more affordable
virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/

_______________________________________________
PyOpenGL Homepage
http://pyopengl.sourceforge.net
_______________________________________________
PyOpenGL-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyopengl-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.