Jump to content

[SOLVED]multiple canvas on one page


mecanicus
 Share

Recommended Posts

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

Capture.PNG

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...