Author Topic: Problems with NGUI 3.0.6. and Substance materials  (Read 3434 times)

Chris

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 8
    • View Profile
Problems with NGUI 3.0.6. and Substance materials
« on: November 30, 2013, 05:11:14 AM »
Hey,
 
since the update we have a problem with the current NGUI version (3.0.6f6) and Substance materials. We create procedural textures using Substance and are applying those to a UITexture-Component as the MainTexture (we tried to use a Diffuse-Shader, as well as a Unlit - Transparent Colored-Shader for the UITexture). On the PC this is working, but on the mobile device the texture is not visible at all (only a "blank" - white texture is applied). It seems that either the texture is not applied or it is not redrawn correctly. Or maybe the Substance material is not compatible with the UITexture-Component.
 
PS. since the update (from 3.0.5 to 3.0.6f6) we also have a lot more DrawCalls in some scenes. We did not change any Depth-settings of UIPanels or Widgets. Don't know what the reason is for this behavior.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Problems with NGUI 3.0.6. and Substance materials
« Reply #1 on: November 30, 2013, 04:51:27 PM »
From the NGUI's side in order to draw a texture all it needs is the reference to it. What type of texture it is doesn't matter. I'm not sure how substances work under the hood, but if it works on the PC but doesn't work on mobile, then the issue is most likely with the substance itself. Have you tried applying it to a flat plane?