Author Topic: UIGrid 3d object disappeard  (Read 3300 times)

iceiceice

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 2
    • View Profile
UIGrid 3d object disappeard
« on: February 23, 2014, 04:35:00 PM »
Hello,

i have created a grid and in the grid is a gameoject(itemtile). In the gameobject is a background sprite and a 3d object (hair/shape).
Now my problem is when i create a sprite, disappears the 3d item. When i deactivate the sprite then the 3dobject is visible again etc. (picture)

Shader of the 3d object is transparent diffuse. When i change the shader in transparent/cutout/diffuse then it works but this shader looks terrible.

In an old ngui version (2.6.1e) is a 3d object with transparent diffuse shader no problem.

Can any one tell me what's changed in the new versions of ngui? Or can any on tell me whats wrong here?

Thanks

ice



ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIGrid 3d object disappeard
« Reply #1 on: February 23, 2014, 06:11:47 PM »
NGUI rendering and 3D rendering (mesh renderer) are two completely different things, and you can't mix them easily. UI is flat, 3D meshes are not. UI is batched together by NGUI. 3D meshes are not. UI is sorted based on depth. 3D meshes are sorted based on distance to the camera.

Also note that NGUI 2 is not supported anymore. Only the latest version in the NGUI 3 cycle is supported.