Canvas texture with text and transparent background
17 February 2017 14:13
Hello everybody!
I'm tying to customize a mesh in a Blend4Web exported scene, but I'm having some issues with a transparent background canvas.
Following the code snippets I was able to set the texture of a mesh as a canvas. Everything works well for opaque textures.
Now, I should add some custom text to a mesh. For this reason I duplicated some faces a moved them away a little bit from the original mesh, to avoid z-fighting issues.
The problem is that when I set the canvas texture with a transparent canvas with some text on it, the mesh show only a black surface. If I add a background to the canvas, I see the texture, correctly mapped, but I loose the effect that I need: add a text to a surface.
Do you have any advice? I tried also to set a double material on the mesh, the material shared with the original mesh and one with the canvas texture…without success. The result is the same: black surface.
I'm new to this field and maybe I'm loosing something obvious…
I'm tying to customize a mesh in a Blend4Web exported scene, but I'm having some issues with a transparent background canvas.
Following the code snippets I was able to set the texture of a mesh as a canvas. Everything works well for opaque textures.
Now, I should add some custom text to a mesh. For this reason I duplicated some faces a moved them away a little bit from the original mesh, to avoid z-fighting issues.
The problem is that when I set the canvas texture with a transparent canvas with some text on it, the mesh show only a black surface. If I add a background to the canvas, I see the texture, correctly mapped, but I loose the effect that I need: add a text to a surface.
Do you have any advice? I tried also to set a double material on the mesh, the material shared with the original mesh and one with the canvas texture…without success. The result is the same: black surface.
I'm new to this field and maybe I'm loosing something obvious…
17 February 2017 16:19