JakeBungarrra
Topic Author
Posts: 9
Joined: 11 Jul 2019, 03:32

Render Texture from NoesisView has black background

09 Sep 2019, 10:02

How do I Render a texture from noesisView to render texture and it not have a black background rather transparent?

Tags:
 
User avatar
jsantos
Site Admin
Posts: 2904
Joined: 20 Jan 2012, 17:18
Contact:

Re: Render Texture from NoesisView has black background

09 Sep 2019, 13:08

Our output is in alpha-premultiplied space, the black color you see should be a #00000000, so a transparent color. Is that what you are observing?
 
JakeBungarrra
Topic Author
Posts: 9
Joined: 11 Jul 2019, 03:32

Re: Render Texture from NoesisView has black background

10 Sep 2019, 02:48

Here is a screenshot of one of our UI elements, we want the black to be transparent. we use a render texture on a unity UI element. we have found the render texture to be the problem we want to know what settings we use to get the alpha to be displayed on the Unity UI element/Render Texture.

Image
 
User avatar
jsantos
Site Admin
Posts: 2904
Joined: 20 Jan 2012, 17:18
Contact:

Re: Render Texture from NoesisView has black background

10 Sep 2019, 14:16

Our render to texture uses an internal camera that clears to #00000000
_textureCamera = gameObject.AddComponent<Camera>();
_textureCamera.clearFlags = CameraClearFlags.SolidColor;
_textureCamera.backgroundColor = new UnityEngine.Color(0.0f, 0.0f, 0.0f, 0.0f);
So, if that black you are observing is not transparent is because it is part of your XAML. Could you try with an empty XAML first? That should give you a 100% transparent render.

Who is online

Users browsing this forum: Google [Bot] and 1 guest