Search Unity

Polybrush, black renders on mobile

Discussion in 'World Building' started by gilamran, Jan 2, 2019.

  1. gilamran

    gilamran

    Joined:
    Jun 30, 2013
    Posts:
    12
    hi,
    In the editor/pc the result application shows great results, but on mobile all the assets that used polybrush are pitch black...
    • I'm only using vertex coloring (Not changing the topology, and no textures)
    • I'm using the "Diffuse Vertex Color", the "Standard Vertex Color" doesn't render even in the editor...
    • It's not related to the normals
    • Tests on several mobile devices, got the same result.
    What can I do to fix this?

    Thanks
     
  2. gabrielw_unity

    gabrielw_unity

    Unity Technologies

    Joined:
    Feb 19, 2018
    Posts:
    708
    Hi there! Can you let me know some starter info? Thanks!

    1) Version of Unity
    2) Are you using LWRP or HDRP?
    3) Version of Polybrush

    That'll help me find the issue more quickly :)
     
  3. gilamran

    gilamran

    Joined:
    Jun 30, 2013
    Posts:
    12
    1) Version of Unity => 2018.3.0f2
    2) Are you using LWRP or HDRP? => No idea... how can I tell.. I just created a simple 3D project
    3) Version of Polybrush => 0.9.15
     
  4. gabrielw_unity

    gabrielw_unity

    Unity Technologies

    Joined:
    Feb 19, 2018
    Posts:
    708
    Thanks!

    Regarding LWRP/HDRP, when you created the project did you change the "Template" from "3D"? For example:
    upload_2019-1-2_15-51-38.png
     
  5. gilamran

    gilamran

    Joined:
    Jun 30, 2013
    Posts:
    12
    nop, I'm using 3D
     
  6. gilamran

    gilamran

    Joined:
    Jun 30, 2013
    Posts:
    12
    Bump... any news?
     
  7. gabrielw_unity

    gabrielw_unity

    Unity Technologies

    Joined:
    Feb 19, 2018
    Posts:
    708
    Hi! I don't have an Android device on hand right now, but I'll give this a try later tonight. My guess would be, the current shader is not compatible with the devices you've chosen. Have you tried using different shaders, I assume they show correctly?
     
  8. gilamran

    gilamran

    Joined:
    Jun 30, 2013
    Posts:
    12
    I've tested it on Galaxy S8, S6, S5, Pixel 2, and the G9....
    What other shaders can I use?

    This seems like a very basic setup...
    * Create a simple 3D project
    * Add a plane
    * Set the material to be PolyBrush
    * Draw something
    * build and run on any Android...

    Black plane
     
  9. andrewpmoore

    andrewpmoore

    Joined:
    May 12, 2015
    Posts:
    5
    I've got exactly the same issue. Fine when I play in unity, but black once built to android
     
  10. gilamran

    gilamran

    Joined:
    Jun 30, 2013
    Posts:
    12
    I've managed to solve this by creating a custom shader (To replace polybrush'es shader) that renders the vertex colors only (I don't need the textures)
     
  11. gabrielw_unity

    gabrielw_unity

    Unity Technologies

    Joined:
    Feb 19, 2018
    Posts:
    708
    Hi! Yep, verified here, as part of the v1.0 release we'll try to update the shaders to work on Android also.
     
  12. chaseholton

    chaseholton

    Joined:
    Dec 17, 2012
    Posts:
    70
    I don't mean to revive an old thread, but when 1.0 adds functionality for Android, will that work with iOS as well?
     
  13. gabrielw_unity

    gabrielw_unity

    Unity Technologies

    Joined:
    Feb 19, 2018
    Posts:
    708
    Hi Chase! No worries, actually this should be useful for all to know- in v1.0, we're actually removing all shader examples except Standard Shaders. We've realized it's just not possible to fully support specialized shaders, across all the various versions/hardware/etc. A dedicated shader pack - yes. A tool - no.

    However, as part of that decision, we're also making it much simpler to connect shaders that you build/purchase/download. We'll have lots more info in the docs, soon.

    Additional- highly recommend moving up to 19.1 with LWRP and Shader Graph, many benefits and very simple to create custom shaders.

    Hope that helps!
     
  14. Milan-Sadariya

    Milan-Sadariya

    Joined:
    Jan 12, 2016
    Posts:
    7
    Hi Gabrielw, V1.0 is released. Now it supports Andriod or not?
     
  15. hoyoyo80

    hoyoyo80

    Joined:
    Jan 31, 2018
    Posts:
    27
    Hi all. What is the update for polybrush on mobile. Really need the mesh terrain for mobile
     
  16. gabrielw_unity

    gabrielw_unity

    Unity Technologies

    Joined:
    Feb 19, 2018
    Posts:
    708
    Hi! You will need to find/build a custom shader to work correctly on Android, iOS, etc.
     
  17. donb98

    donb98

    Joined:
    Dec 7, 2019
    Posts:
    2
    I really think android build support is not a quirky weird case, its a large part of unity. i'm pretty disapointed that you dropped this
     
  18. vanhalen17

    vanhalen17

    Joined:
    Apr 19, 2015
    Posts:
    75
    Am looking for a solution on this as well. If anyone finds out how to do Polybrush-compatible texture blending with a shader that works on Android, would greatly appreciate it!
     
unityunity