Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

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?