[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [2790] trunk/py/scripts/addons/ io_scene_x3d/export_x3d.py: add missing route command for H3D export, I wasnt able to get this working but I think it _should_ work, needs further investigation.
Campbell Barton
ideasman42 at gmail.com
Mon Dec 19 08:53:31 CET 2011
Revision: 2790
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=2790
Author: campbellbarton
Date: 2011-12-19 07:53:20 +0000 (Mon, 19 Dec 2011)
Log Message:
-----------
add missing route command for H3D export, I wasnt able to get this working but I think it _should_ work, needs further investigation.
Modified Paths:
--------------
trunk/py/scripts/addons/io_scene_x3d/export_x3d.py
Modified: trunk/py/scripts/addons/io_scene_x3d/export_x3d.py
===================================================================
--- trunk/py/scripts/addons/io_scene_x3d/export_x3d.py 2011-12-19 00:13:15 UTC (rev 2789)
+++ trunk/py/scripts/addons/io_scene_x3d/export_x3d.py 2011-12-19 07:53:20 UTC (rev 2790)
@@ -1155,8 +1155,12 @@
# must be updated dynamically
# TODO, write out 'viewpointMatrices.py'
value = ' '.join(['%.6f' % f for v in mathutils.Matrix() for f in v])
- field_descr = " <!--- Object View Matrix '%s' -->" % obj.name
+ field_descr = " <!--- Object View Matrix Inverse '%s' -->" % obj.name
fw('%s<field name="%s" type="SFMatrix4f" accessType="inputOutput" value="%s" />%s\n' % (ident, uniform['varname'], value, field_descr))
+
+ h3d_material_route.append(
+ '<ROUTE fromNode="%s" fromField="glModelViewMatrixInverse" toNode=%s toField="%s" />%s' %
+ (H3D_TOP_LEVEL, material_id, uniform['varname'], field_descr))
else:
assert(0)
More information about the Bf-extensions-cvs
mailing list