mmonem / blender2ogre

Automatically exported from code.google.com/p/blender2ogre
GNU Lesser General Public License v2.1
0 stars 0 forks source link

Ongoing Blender SVN mathutils.Matrix changes ? (ogre forum issue reported by racoon » Thu Jan 20, 2011 4:01 pm) #6

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Extracts from our Ogre 3D forum topic "Blender25 Ogre Exporter + extended 
.scene format" :
http://www.ogre3d.org/forums/viewtopic.php?f=4&t=61485&start=50

---------------------------------------------------

by racoon » Thu Jan 20, 2011 4:01 pm

Hi,

I reported it to the Blender dev community and the error is fixed in the 
current svn version.

The script crashes now giveing following error message:
line 4610, in get_parent_matrix
if not ob.parent: return mathutils.Matrix([1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0
,0,1])
TypeError: mathutils.Matrix(): expects no args or 2-4 numeric sequences

It seems they have changed something in mathutils.Matrix.
Does anybody know a fix for this ??
As far as I understand [1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1] are 4 numeric 
sequences, or not?

Cheers

raccon

---------------------------------------------------

by racoon » Thu Jan 20, 2011 4:35 pm

Hi Whyte

changing it to
CODE: SELECT ALL
mathutils.Matrix(((1,0,0,0),(0,1,0,0),(0,0,1,0),(0,0,0,1))) 
worked.

---------------------------------------------------

I did not try to reproduce this myself, so not sure of what is really required 
here : need to be tested against regression on the current blender 2.56 
download !

Original issue reported on code.google.com by sebastie...@gmail.com on 18 Mar 2011 at 10:21

Attachments:

GoogleCodeExporter commented 8 years ago
Not simple, because then  we have this post :

---------------------------------------------------

Re: Blender25 Ogre Exporter + extended .scene format
by iridium77Ir » Thu Feb 10, 2011 4:11 pm

I had the same error. I attached a quick fix to the python script.

---------------------------------------------------

The fix is :
((1,0,0,0),(0,1,0,0),(0,0,1,0),(0,0,0,1))
replaced by :
(1,0,0,0),(0,1,0,0),(0,0,1,0),(0,0,0,1)

This may be a compatibility issue between Blender 2.56 beta download and 
current svn

Original comment by sebastie...@gmail.com on 18 Mar 2011 at 10:25

GoogleCodeExporter commented 8 years ago
This have been addressed by the new BlenderSVN branch 
http://code.google.com/p/blender2ogre/source/browse/?r=BlenderSVN where you can 
get at any moment the latest addon for latest Blender SVN 
(http://blender2ogre.googlecode.com/hg/addon_ogreDotScene.py?r=BlenderSVN)

I've also uploaded a "addon_ogreDotScene-0.3.1-BlenderSVN.zip" compatible with 
current r35672 Blender SVN

Original comment by sebastie...@gmail.com on 22 Mar 2011 at 8:51