Jump to content

Issue with DynamicTexture and canvas


3Dlove
 Share

Recommended Posts

Hello guys,

 

My example : http://www.babylonjs-playground.com/#1C4GCW#2

 

I have a little issue using a canvas in a texture :

 

1- why the transparency isn't applicated for the background color of my canvas ?

context1.fillStyle="rgba(240,240,240,0.5)";

alpha is 50%

 

2- why is show a grey part at right and bottom ?

yet, I used the good dimensions :

{width:rectSize.width, height:rectSize.height}

 

Thanks for your help :-)

Link to comment
Share on other sites

Thank you :-)

 

Ok for 2^x size of canvas.

 

So, it's not possible to draw a text with a transparent background and an emissive texture, tell me if I'm wrong.

 

How to write a pure red text (strong red like in emissive) with a diffuse Texture ? (if a want a transparent background)

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