Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Native rendering plugin: troubles with z buffer

Discussion in 'Scripting' started by Anton-Argunov, May 2, 2014.

  1. Anton-Argunov

    Anton-Argunov

    Joined:
    May 2, 2014
    Posts:
    6
    Hello,

    I am working with library Alembic.
    Alembic has a viewer-app that render Alembic data.
    Now I am trying to render Alembic data from native code.

    And I am having some troubles:
    - incorrect order of polygons ( back polygon covers front polygon )
    - some normals of faces are inverted

    Note: The same data renders correctly in Alembic viewer.

    I think z-buffer doesn't work at all.
    I tried to set different flags and values but without a result.

    How does OpenGL native z-buffer work in Unity plugin?
    or how can I enable OpenGL native z-buffer in Unity plugin?