I am struggling with a rather simple patch: I am trying to model the reflection of a ray of sun on a mirror ( I guess a 3d planar symmetry on the Normal of the mirror ? ).
I haven t used transforms for years and my brain seem to just snap on this, any help would be greatly appreciated !
Thank you sooooo muuuuuccccchhhh <3 !!
I was starting to look into the formula and patching, but your implementation saved me a lot of headache :) Thanks !! Will keep you posted on the outcome, trying to make a solar projector !
The solar projector prototype is slowly taking shape, even if it’s a lot more challenging than I expected…
I’m now trying to reverse @tonfilm calculation and solve the mirror angle from the reflection and sun vectors, and my brain still can’t figure out the right function (my projections are drifting slowly with the sun’s position) :/ Any help would be amazing :)
Je sais pas si j’ai bien compris ton problème de rotation, mais je pense qu’ avec rotate et inverse, tu peux trouver facilement la rotation de ton quad.
Thanks a lot for looking @lecloneur !
It’s not quite there unfortunately, the orientation should match the reference mirror (top left in the patch; in blue).
I re-uploaded a clearer patch that better explains the challenge.
I have sun and reflection vectors, and I’m trying to figure out the mirror orientation.
Here’s a better patch that explains what I’m after, with the solution (C) to double check.
it becomes much simpler if you think in directions instead of rotations.
then you have the direction from the mirror to the sun and to the destination. the normal vector of the mirror is then simply the average, or center, between them: