Dad72 Posted January 1, 2017 Share Posted January 1, 2017 Hello, I would like for the realization of a mini map, create a viewport of round shape rather than square or rectangle. I guess you have to use the Layers, but I do not know how to do it. I have to prepare a PG of the mini map: http://www.babylonjs-playground.com/#UCFKM#10 Does someone have an idea. Thank you in advance. Quote Link to comment Share on other sites More sharing options...
Dad72 Posted January 1, 2017 Author Share Posted January 1, 2017 I try to do this, but both viewport are round. I would like to make that only the viewport of the minimap is round and not the primary viewport. An idea ? http://www.babylonjs-playground.com/#UCFKM#11 Brijesh 1 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#12 Dad72, Wingnut, jerome and 3 others 6 Quote Link to comment Share on other sites More sharing options...
Dad72 Posted January 2, 2017 Author Share Posted January 2, 2017 Thank you Adam. I was almost successful when I looked at what you did. Thanks again. Quote Link to comment Share on other sites More sharing options...
2x4b Posted November 10, 2017 Share Posted November 10, 2017 interestingly, if camera2 is set to orthographic, this doesn't work. Quote Link to comment Share on other sites More sharing options...
Brijesh Posted January 11, 2018 Share Posted January 11, 2018 Hi @Dad72 and @adam , I face the same problem as @Dad72 had, Above information is very useful for me. But i face one issue , how can i set the position of layer to sets the layer or roundmask image around my some predefined round shape area ? can i change the position of layer ?? Quote Link to comment Share on other sites More sharing options...
Wingnut Posted January 11, 2018 Share Posted January 11, 2018 Hiya B! https://www.babylonjs-playground.com/#UCFKM#96 The first 2 numbers in line 12... allow you to adjust the X/Y of the lower left corner of the viewport position. Viewports are like textures... 0,0 in lower left corner. (thx Dad72) I did a little animating in lines 44-48. Should do the trick for ya. Party on! GameMonetize 1 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.