Jump to content

How to move a GUI text block without lose opacity ?


AnnaBruel
 Share

Recommended Posts

When the text isn't in center on transparent plane, we can't see the text. I would like the same opacity between the two texts. Have you some idea, please ? 

https://playground.babylonjs.com/#8WC0U7

-I tried to put a light on the side, it doesn't work

-I tried to raise the altitude of the text, but the text will be very far from the plane 

 

Link to comment
Share on other sites

Hello!

As a general note, I suggest to try to keep the minimum amount of GUI texture for performance sake

Regarding your question, the problem comes from the fact that all three planes are transparent and thus ordered based on their distance to the camera which is slightly the same so there is no good ordering

You can fix it by changing the alpha Index of your planes:

https://playground.babylonjs.com/#8WC0U7#3

OR you can also use the GUI integrated alignment mechanism:

https://playground.babylonjs.com/#8WC0U7#2

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...