Skip to content
This repository was archived by the owner on Mar 27, 2026. It is now read-only.

Fixed wrong positioning of a VideoNode#217

Merged
ThomasGorisse merged 2 commits intomasterfrom
fix/video_node_positioning
Dec 6, 2021
Merged

Fixed wrong positioning of a VideoNode#217
ThomasGorisse merged 2 commits intomasterfrom
fix/video_node_positioning

Conversation

@RGregat
Copy link
Copy Markdown
Contributor

@RGregat RGregat commented Nov 29, 2021

  • The VideoNode is now centered and above a ParentNode.

* The VideoNode is now centered and above a ParentNode.
* With the function call `setRotateAlwaysToCamera(boolean
rotateAlwaysToCamera)`, the VideoNode will always look to the Camera
(the user).
* The best effect can be achieved with a Video shown on a Plane. It is
not very practical with ChromaKey Videos.
@RGregat
Copy link
Copy Markdown
Contributor Author

RGregat commented Dec 4, 2021

The issue was inside of the Plane creation in the VideoNode class. And only for the "not restricted" VideoNode. The Vertical subclass had already the correct implementation. The AugmentedImage Sample was not affected because it doesn't use a VideoNode.
I added a small flag for the VideoNode to activate a point to camera rotation videoNode.setRotateAlwaysToCamera(true);. I think that is in certain situations quite handy.

@ThomasGorisse ThomasGorisse merged commit 2386c77 into master Dec 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant