U
ufomorace
Mon, Aug 24, 2015 11:08 AM
Hum it seems i can't get an email on the list form my IP address due to a
previous bounce error.
I have written a parser for unity3d2scad matrices, the result looks like
this:
http://forum.openscad.org/file/n13597/matrixunityscad.jpg
i don't know what is wrong with the exported unity3d
object.localToWorldMatrix; resulting matrix:
textarray = [[[-1.490116E-08],[-2.598076],[0.5000001],[-1.299038],
[0],[-1.5],[-0.8660253],[0.7499998],
[1],[0],[-1.490116E-08],[7.74287E-08],
[0],[0],[0],[1]],
[[0],[-2.819077],[0.3420202],[-4.007615],
[0],[-1.026061],[-0.9396925],[-0.5130306],
[1],[0],[0],[7.578211E-08],
[0],[0],[0],[1]],
[[-2.980232E-08],[-2.954423],[0.1736483],[-6.894365],
[0],[-0.520945],[-0.9848077],[-1.286533],
[1],[0],[-2.980232E-08],[7.578211E-08],
[0],[0],[0],[1]],
[[-1.41561E-07],[1.928363],[0.7660443],[-7.407394],
[5.960464E-08],[-2.298133],[0.6427878],[-2.696073],
[1],[1.788139E-07],[-1.41561E-07],[1.485413E-07],
[0],[0],[0],[1]]];
for anyone one who wants it: UNITY3d JAVASCRIPT CODE for making an array of
matrices from any array of objects, vertices of mesh, and so on:
--
View this message in context: http://forum.openscad.org/Using-transformation-matrices-from-other-programs-tp13596p13597.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
Hum it seems i can't get an email on the list form my IP address due to a
previous bounce error.
I have written a parser for unity3d2scad matrices, the result looks like
this:
<http://forum.openscad.org/file/n13597/matrixunityscad.jpg>
i don't know what is wrong with the exported unity3d
object.localToWorldMatrix; resulting matrix:
textarray = [[[-1.490116E-08],[-2.598076],[0.5000001],[-1.299038],
[0],[-1.5],[-0.8660253],[0.7499998],
[1],[0],[-1.490116E-08],[7.74287E-08],
[0],[0],[0],[1]],
[[0],[-2.819077],[0.3420202],[-4.007615],
[0],[-1.026061],[-0.9396925],[-0.5130306],
[1],[0],[0],[7.578211E-08],
[0],[0],[0],[1]],
[[-2.980232E-08],[-2.954423],[0.1736483],[-6.894365],
[0],[-0.520945],[-0.9848077],[-1.286533],
[1],[0],[-2.980232E-08],[7.578211E-08],
[0],[0],[0],[1]],
[[-1.41561E-07],[1.928363],[0.7660443],[-7.407394],
[5.960464E-08],[-2.298133],[0.6427878],[-2.696073],
[1],[1.788139E-07],[-1.41561E-07],[1.485413E-07],
[0],[0],[0],[1]]];
for anyone one who wants it: UNITY3d JAVASCRIPT CODE for making an array of
matrices from any array of objects, vertices of mesh, and so on:
--
View this message in context: http://forum.openscad.org/Using-transformation-matrices-from-other-programs-tp13596p13597.html
Sent from the OpenSCAD mailing list archive at Nabble.com.