You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In case user switches between two render trees from A to B there is a possiblity that A tree won't display corrent image. It happens every time user changes window size when using B render tree - in such case A render tree doesn't get informed about change and when swtiching back to A the image is scaled.
What is the best way to update custom renderTree so it takes into account changes in window size?
The text was updated successfully, but these errors were encountered:
Arsakes
changed the title
Custom render tree doesn't update with window resize
Render tree doesn't update with window resize
Mar 16, 2016
I think right now we don't resize the buffers individually. Internally if the canvas changes size we just rebuild the entire RenderTree from scratch, so that would be the easiest thing to do in your case too.
You'd have to be careful to avoid race conditions because the RenderInterface may not be updated with the new canvas size until the next frame is drawn after a resize. Best bet would be to store a flag like needsResize in both RenderTrees and then recreate A the next time you switch from B to A. B should be recreated automatically by XML3D so long as it was the active tree when the resize happened.
In case user switches between two render trees from A to B there is a possiblity that A tree won't display corrent image. It happens every time user changes window size when using B render tree - in such case A render tree doesn't get informed about change and when swtiching back to A the image is scaled.
What is the best way to update custom renderTree so it takes into account changes in window size?
The text was updated successfully, but these errors were encountered: