renderToTexture - Transparent Background

renderToTexture - Transparent Background

von Christoph Pfaller -
Anzahl Antworten: 4

My team is currently struggling using a per-rendered texture for a simple rectangle. Somehow the canvas background gets rendered too besides the object. As we want to mix the per-rendered texture with a image based texture the current behavior is not optimal. We already tried to set the the canvas transparent, but that didn't work out. Our code is based on the renderToTexture and initToTexture used in the texturing lab unit. Maybe someone had a similar problem and can share a hint for fixing this.

Kind Regards,
Christoph

Als Antwort auf Christoph Pfaller

Re: renderToTexture - Transparent Background

von Philipp Kern -
Hey Christoph,

At the moment I have a difficult time to visualise your problem, although you could tell me your Group name and push the code to GitHub so I can take a better look at the problem if you still need help!

Kind Regards,
Philipp
Als Antwort auf Philipp Kern

Re: renderToTexture - Transparent Background

von Christoph Pfaller -
Hey Philipp,

the group name is 'tripping in the desert '. we created the branch 'texture-bg-bug' to emphasize the problem. if you have a look at the project you can see that we have a simple quad containing red symbols. Yet, quad does not only contain the symbols but also a background that is also rendered. Our goal is to combine the symbol texture with a wall texture(the same wall texture as is currently used by the cube). Therefore, we need the background to be transparent. Maybe there is a different solution to this problem and we got something wrong.

Anyway, thanks in advance for having a short look at it.

Kind Regards,
Christoph
Als Antwort auf Christoph Pfaller

Re: renderToTexture - Transparent Background

von Philipp Kern -
Hey,
I took a look at your project and I think I understand the problem a bit better now. Although wouldn't it be possible, to just create the moving symbols as an object themselves (as you did) and then just animate them infront of the wall? Since you already managed to put the texture on the cube and you managed to create the moving symbols, they could just stay seperated. Or am I missing something?
Als Antwort auf Philipp Kern

Re: renderToTexture - Transparent Background

von Christoph Pfaller -
Hey,
thank you for changing my perspective. This approach is much simpler and the result looks quite good.

Kind Regards,
Christoph