Hi,
I try to implement projection mapping in the Maya plugin. I place everything into one "world" assembly and transform it to match Appleseed and Maya units.
By default this is a factor of 0.01 for centimeters to meter. This looks like this in pseudocode:
scene
assembly "world"
geometry
osl shaders
lights..
assembly instance of "world"
transform 0.01
I have a placement matrix for a projection node which is located in the osl shaders of the assembly. It seems that the matrices are calculated not relative to the assembly but to the scene element what leads to a matrix scaling which is 100 times to large. Or this is the result of a wrong space I use in the shader. This is the code I use for the placement node:
https://github.com/haggi/appleseed-maya/blob/master/module/shaders/src/maya/place3dTexture.oslMaybe anyone has an idea what's wrong.