Sudoku Posted November 22, 2018 Share Posted November 22, 2018 Hi everyone, i have a setup with two cameras and i need to show some GUI elements in one viewport while showing other elements in the other one. But it seems like i can only set one layermask for all the GUI elements. Is there any workaround? PG example: In the example i would want to have the green box only rendered only with camera1 and the red box only with camera2 https://playground.babylonjs.com/#DEAE4L In the end i will use this for dropdown elements in the different viewport panels to individually change the settings of the cameras that are used for the rendering Quote Link to comment Share on other sites More sharing options...
Sebavan Posted November 22, 2018 Share Posted November 22, 2018 Here you go : https://playground.babylonjs.com/#DEAE4L -> https://playground.babylonjs.com/#DEAE4L#2 you would need to Gui Textures rendered only in the appropriate Ids. Quote Link to comment Share on other sites More sharing options...
Sudoku Posted November 22, 2018 Author Share Posted November 22, 2018 hi sebavan, thanks for your response! i guess you forgot to save the PG before sending the link? Quote Link to comment Share on other sites More sharing options...
Sebavan Posted November 22, 2018 Share Posted November 22, 2018 Indeeed ?https://playground.babylonjs.com/#DEAE4L#2 Sudoku 1 Quote Link to comment Share on other sites More sharing options...
Sudoku Posted November 22, 2018 Author Share Posted November 22, 2018 awesome! in the babylon GUI docs was written: https://doc.babylonjs.com/how_to/gui#advanceddynamictexture Please note that only one fullscreen mode GUI is allowed per scene i didn't even try than to create two advanceddynamictextures.. thanks! does someone know why the docs say so? Quote Link to comment Share on other sites More sharing options...
Sebavan Posted November 22, 2018 Share Posted November 22, 2018 Good question, might be true without layer 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.