Re: [PyOpenGL-Users] How to call glMultMatrix passing an instance of KFbxXMatrix?
Brought to you by:
mcfletch
|
From: Alejandro S. <as...@gm...> - 2011-09-12 14:47:29
|
Hello Mark,
On Sun, Sep 11, 2011 at 8:49 PM, Mark Laff
<mar...@pe...>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
|