Results 1 to 4 of 4

Thread: Pre-Z problem in WebGL.

  1. #1

    Pre-Z problem in WebGL.

    Is there any one tried pre-z in WebGL?
    In my solution, mesh is rendered with color write disabled and so only depthbuffer is updated in the first pass.
    Next, in the second pass, the mesh is rendered again with normal rendering.
    However, I got severe z-fighting effect in WebGL by performing pre-Z.

  2. #2

    Re: Pre-Z problem in WebGL.

    Problem has been solved. It's seems to be my fault.

  3. #3
    Junior Member
    Join Date
    Aug 2011
    Posts
    1

    Re: Pre-Z problem in WebGL.

    Just wondered, does the optimization make sense?

    Yuri

  4. #4

    Re: Pre-Z problem in WebGL.

    If preZ only, it's not worthy I think, maybe slower.
    But for some technique, such as many screen based post processing algorithms, depth view must be rendered first, so preZ can be performed with it.

Similar Threads

  1. Kernel pre-compilation
    By vincentfpgarcia in forum OpenCL
    Replies: 2
    Last Post: 01-11-2012, 01:28 AM
  2. Building programs with pre-compiled binaries
    By george_vv in forum OpenCL
    Replies: 5
    Last Post: 06-16-2010, 03:25 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •