Re: How to call glMultMatrix passing an instance of KFbxXMatrix?

Alejandro Segovia <[email protected]>
Newsgroups gmane.comp.python.opengl.user
Message-ID <CAAXrc9PFYGpuODYU6hi4gsR8R2DOyybFJMdZuHA=+9szisU7og@mail.gmail.com>
Hello Mark,

On Sun, Sep 11, 2011 at 8:49 PM, Mark Laff
<[email protected]>wrote:

> **
>
> def DrawCrosshair(pGlobalPosition):
>     glColor3f(1.0,1.0,1.0)
>     glLineWidth(1.0)
>
>     glPushMatrix()
>     glMultMatrixd(pGlobalPosition)
>
> 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>)
>
>
The error message leads me to believe the problem is related to the type of
the pGlobalPosition variable. Is there any easy way you could convert a
"fbx.KFbxXMatrix" instance to a numpy array or a Python list?

Best,
Alejandro.-

-- 
http://alejandrosegovia.net

------------------------------------------------------------------------------
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.