Ok, I found the problem with having it autodetect when alpha was always
255 or 0 (diff for material.c enclosed). Now it does what I'd expect
with the Zbuffer enabled: some trees obscure others even when they're
behind the transparent part of the tree. I think the only thing that's
going to fix this particular issue is sorting of the faces.

-- 
Sean Lynch http://sean.lynch.tv/
*** material.c~ Thu Jan  9 13:40:47 2003
--- material.c  Sun Jan 19 10:24:02 2003
***************
*** 150,156 ****
      m->option |= P3_MATERIAL_ALPHA;
      ptr = m->pixels + 3;
      for (i = 0; i < m->width * m->height; i++) {
!       if (*ptr != 0 || *ptr != 255) {
          return;
        }
        ptr += 4;
--- 150,156 ----
      m->option |= P3_MATERIAL_ALPHA;
      ptr = m->pixels + 3;
      for (i = 0; i < m->width * m->height; i++) {
!       if (*ptr != 0 && *ptr != 255) {
          return;
        }
        ptr += 4;

Attachment: msg00052/pgp00000.pgp
Description: PGP signature

Reply via email to