Dad72 Posted January 2, 2017 Share Posted January 2, 2017 When resizing the browser, the viewport of the second camera is no longer correct. (Sorry if this is not a bug, and in this case, how to make the camera window 2 remains at a fixed size or does not distort it.) http://www.babylonjs-playground.com/#UCFKM#12 Quote Link to comment Share on other sites More sharing options...
adam Posted January 2, 2017 Share Posted January 2, 2017 http://www.babylonjs-playground.com/#UCFKM#13 I updated the PG so that the viewport resizes correctly if it gets too small: http://www.babylonjs-playground.com/#UCFKM#16 Quote Link to comment Share on other sites More sharing options...
Dad72 Posted January 2, 2017 Author Share Posted January 2, 2017 Thanks Adam. But It does not work with my scene. If I resize the browser then the viewport no longer corresponds to the border of the mini map (Which is an html layer on the canvas) I would like the window to remain fixed in size and position. I do not want the minimap to resize. I'm looking for an absolute layer position. Quote Link to comment Share on other sites More sharing options...
Dad72 Posted January 3, 2017 Author Share Posted January 3, 2017 I made a more complete PG to better see the problem when resizing the window. The layer is no longer in place, it does not stay where it is, its dimension changes and should not. I think there is either a bug or something missing to fixed it or it is (like the absolute position of the border image at the top.) http://www.babylonjs-playground.com/#UCFKM#20 Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted January 4, 2017 Share Posted January 4, 2017 Hello what are you expecting? The layer scales with the viewport. Can you explain what you are trying to achieve? For isntance, in this case what are you expecting to see? Quote Link to comment Share on other sites More sharing options...
Dad72 Posted January 4, 2017 Author Share Posted January 4, 2017 Hello, I want it to stay that way, even when I resize. In fact I would like the layer does not change shape. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted January 4, 2017 Share Posted January 4, 2017 then you also have to update the viewport to scale it to the size you want. Something along these lines: http://www.babylonjs-playground.com/#UCFKM#21 adam and Dad72 2 Quote Link to comment Share on other sites More sharing options...
Dad72 Posted January 4, 2017 Author Share Posted January 4, 2017 Ah, ok, thank you Deltakosh Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.