Skip to content

TypeError with cuda_spectral Transformations in Mitsuba: Seeking Guidance on translate() Function Usage #1212

Closed Answered by rtabbara
Manvir05 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @Manvir05,

Just to add to what @merlinND said, if you've pulled from the latest master then there has been a breaking change relative to past releases.

Specifically, with respect to transforms, the operations translate, scale, rotate etc. are now instance methods rather than static methods. i.e. You will have to call

T().translate(...)

The reason for this change was that historically, users would try something like

origin = params['PerspectiveCamera.to_world']

# Previously, this was still a static method call
rotation = origin.rotate([0.0, 1.0, 0.0], theta)

and then be confused as to why the rotation was not applied to the original transform. Anyway, I hope that's issue but otherwise …

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@merlinND
Comment options

Answer selected by merlinND
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants