Mitsuba doesn't like ScalarPoint3d being passed into ScalarTransform4d #1502
-
Hello! Whenever I try to create a scalar transform like this: point = mi.ScalarPoint3d([6.187859, 5.546123, 5.089371])
print(type(point))
translation = mi.ScalarTransform4d.translate(point)
print(type(translation)) I get an error telling me that it only supports
I've verified that the types are correct. I'm also experiencing this issue with Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Huh, oddly enough, o3-mini helped me fix it. This is weird because I certainly wasn't having this issue before. This is basically what it said: You're calling an instance method as if it were static. Instead of: translation = mi.ScalarTransform4d.translate(point) do: translation = mi.ScalarTransform4d().translate(point) This ensures that the method’s first argument (self) is a valid transform. |
Beta Was this translation helpful? Give feedback.
Huh, oddly enough, o3-mini helped me fix it. This is weird because I certainly wasn't having this issue before.
This is basically what it said:
You're calling an instance method as if it were static. Instead of:
do:
This ensures that the method’s first argument (self) is a valid transform.