Search Unity

Reflection probes on Android error

Discussion in 'Shaders' started by VascoGames, Apr 24, 2015.

  1. VascoGames

    VascoGames

    Joined:
    Sep 10, 2013
    Posts:
    11
    Hello,

    We try to get the reflection probes working on android. It is working on the editor.
    There we see:
    http://gyazo.com/8a4e13c889fed5f814cb7a604f7b643b

    But when we run it on android it is loading the cubemaps and it is also switching between the cubemaps when we enter a new reflection probe but it isn't giving the realtime reflection feeling, it loads the cubemap like a normal cubemap.

    How it looks like on android:
    http://gyazo.com/a6664a1b668e4d3835a601c00f95c15f

    Any idea how we can solve this ?

    With kind regards,
    Vasco
     
  2. echo4papa

    echo4papa

    Joined:
    Mar 26, 2015
    Posts:
    158
  3. VascoGames

    VascoGames

    Joined:
    Sep 10, 2013
    Posts:
    11
    Hi echo4papa,

    Thank you for your response.
    The reflection probes are baked. And it is working fine in the editor itself.
    Looks like the shader isn't working on the right way on mobile.

    With kind regards,
    Vasco
     
  4. colin299

    colin299

    Joined:
    Sep 2, 2013
    Posts:
    181
    @VascoGames
    hello,
    is it possible to have baked reflection probe / static cube map that having dynamic reflection?
    because I can see from your image, when the car move, the reflection change also.

    Currently I am learning to write car shader for a racing game,
    but I am only able to write simple reflection cube map.
    (ignore object's location,only use normal & view to calculate reflection,then use reflection to sample cube map)

    i wish to make something like this.
     
  5. VascoGames

    VascoGames

    Joined:
    Sep 10, 2013
    Posts:
    11
    @colin229

    Yes we want to create an effect like that indeed. But for some reason it isn't working on Android for us.
    So i was hoping if someone could help us. But it seems like a bug to me.

    With kind regards,
    Vasco
     
  6. aubergine

    aubergine

    Joined:
    Sep 12, 2009
    Posts:
    2,878
    I just wanted to say that in the video that colin299 posted, if you look close and careful enough you can see how repetative the reflection is and also it is not real environment reflections. Its just a cube or sphere map constantly scrolling.
    Not related to your question, but you should consider that as a faster option.
     
    colin299 likes this.