Log in or register to post comments

Texture not rendering on run-time when running on Android mobile

August 16, 2016 - 10:02am #1

Hi,



I am developing an application which renders the camera frame as a texture on my 3D models.



As I'm developing it in Unity, when I play it in the Unity Editor and use the web cam, there it shows the texture being rendered but when I build the application for Android platform and run it on my mobile (Samsung S6), the 3D model becomes black.

 

Does anyone know about this issue?

What am I possibly missing?

Texture not rendering on run-time when running on Android mobile

August 16, 2016 - 11:39am #4

Actually if I put a simple texture which is stored in my assets and try on mobile, they work fine.

But when I try to use camera frame as a texture they do this black rendering issue, which is only when i use the application on mobile, camera frame as a texture works fine as well when i play on Unity.

That is why i thought maybe I am missing something while using the mobile's camera.

Texture not rendering on run-time when running on Android mobile

August 16, 2016 - 11:33am #3

Thank you for your reply and Yess, actually after having this issue I tried using two directional lights

and like i said, lights work fine when using PC's web cam and during augmentation when I show it the ImageTarget

But it totally becomes black while trying on mobile.



I have tried scaling down pixels as well but that did not work as well :(

Texture not rendering on run-time when running on Android mobile

August 16, 2016 - 10:55am #2

Hello,

Here is a longshot idea but worth trying. Have you introduced lighting into your scene?

Thanks

Log in or register to post comments