PyLuxCore DefineMesh transform
Posted: Sun May 27, 2018 12:48 am
The transform parameter does not have an effect in my tests. Would you please confirm that it is working and provide a work code snippet.
Show your work, get help, participate in development
http://forums.luxcorerender.org/
Code: Select all
# You could pass a transformation matrix here
transform = [0.7322617173194885, -0.01488767471164465, 0.6808605790138245, 0.0,
-0.1858304738998413, 0.9574531316757202, 0.22079527378082275, 0.0,
-0.6551792025566101, -0.2882045805454254, 0.6983397006988525, 0.0,
-0.18057727813720703, -0.6443891525268555, -1.2408249378204346, 1.0]
# You could pass UV coordinates, vertex colors and other stuff here, additionally
scene.DefineMesh(mesh_name, vertices, faces, None, None, None, None, transform)