Repository navigation
FLU: Implement backward compatibility mechanism - #3619
Conversation
|
The tests are passing locally, the Windows error seems not to be related to the PR. Keep in mind there are probably a lot of edge cases that are not covered. However, I will believe it will still significantly improve the user experience (see the examples in the original comment). |
omichel
left a comment
There was a problem hiding this comment.
Although, I didn't yet fully tested, it looks good to me.
There is a series of apparently unrelated files committed here however.
| mViewpoint->pick(currentMousePosition.x(), currentMousePosition.y(), mZEye), | ||
| mViewpoint->orientation()->value(), | ||
| mViewpoint->viewDistanceUnscaling(detachedHandlePosition) * 9); | ||
| mViewpoint->orientation()->value(), mViewDistanceUnscaling); |
There was a problem hiding this comment.
This doesn't seem related with this PR.
There was a problem hiding this comment.
It fixes the new object rotation, I can make a separate PR (it was just convenient to discover and implement small UX improvements).
There was a problem hiding this comment.
OK, no need to make a separate PR, that's fine.
| WrViewport *viewport = wr_scene_get_viewport(wr_scene_get_instance()); | ||
| const float width = wr_viewport_get_width(viewport), height = wr_viewport_get_height(viewport), | ||
| maxDimension = height > width ? height : width, arrowScaleFactor = arrowScale * 2.0f / maxDimension; | ||
| maxDimension = height > width ? height : width, arrowScaleFactor = (arrowScale * 2.0f / maxDimension) * 10.0f; |
There was a problem hiding this comment.
This doesn't seem to be related with this PR.
There was a problem hiding this comment.
Also related to the object rotation
omichel
left a comment
There was a problem hiding this comment.
The conversions are not always perfect, but it would be probably very difficult to achieve better results. In any case, it is better than nothing, even if it doesn't provide 100% backwards compatibility support.
To avoid breaking worlds and PROTOs we add a mechanism to handle the backward compatibility by adding Transform nodes and rotation Transform descendants.
Tasks
World example
Before the backwards compatibility fix
After the backwards compatibility fix