mitsuba-renderer / mitsuba3

Mitsuba 3: A Retargetable Forward and Inverse Renderer
https://www.mitsuba-renderer.org/
Other
2.1k stars 246 forks source link

problem with lastest mitsuba version #1291

Closed andyyankai closed 2 months ago

andyyankai commented 2 months ago

I tried a simple example on mitsuba lastest commit, here is the error

trafo_obj = mi.Transform4f.rotate(mi.Point3f([0, 1, 0]), mi.Float(30))

Error:

    trafo_obj = mi.Transform4f.rotate(mi.Point3f([0, 1, 0]), mi.Float(30))
TypeError: rotate(): incompatible function arguments. The following argument types are supported:
    1. rotate(self, axis: mitsuba.Point3f, angle: drjit.cuda.ad.Float) -> mitsuba.Transform4f

Invoked with types: mitsuba.Point3f, drjit.cuda.ad.Float
andyyankai commented 2 months ago

mi.Transform4f().rotate