mecanicus Posted June 29, 2017 Share Posted June 29, 2017 I wish to show several canvas.For it I insert attributes data in canvas beacons to call then a function "affiche3D" with the following parameters: the name of the file babylon, id of the canvas and parameters of the camera.I obtain well the display of two canvas but it is lacking on the first one canvas elements advancedtexture.I looked for which variable was the cause unsuccessfully.Thank you for your help roulBilleGui3Zoom.html.back Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted June 29, 2017 Share Posted June 29, 2017 Are you creating the AdvancedTexture with a reference to the scene? (it is one of the constructor parameter) Quote Link to comment Share on other sites More sharing options...
Wingnut Posted June 30, 2017 Share Posted June 30, 2017 Damn, @Deltakosh... how do you remember all this knowledge? Phew. Mecanicus is using .createFullscreenUI() constructor... and as DK says, it allows optional SCENE parameter. Mec... perhaps change your call to... var advancedTexture = BABYLON.GUI.AdvancedDynamicTexture.CreateFullScreenUI("UI", true, Scene); // check capital 'S' on Scene. I think that is correct for your code, Mec. Boolean true in 2nd parameter... is foreground/not-foreground flag, as you can see in above link. Ok, sorry for butting-in. More than likely, Deltakosh didn't even look-at ANY code. I bet he "predicted" the solution. sigh. Amazing. Someday, I'll be THAT good. (no, probably not) heh GameMonetize and mecanicus 2 Quote Link to comment Share on other sites More sharing options...
mecanicus Posted June 30, 2017 Author Share Posted June 30, 2017 That works very well, thank you very much 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.