Results 1 to 2 of 2

Thread: How to use transparency?

  1. #1
    Junior Member
    Join Date
    Oct 2011
    Posts
    5

    How to use transparency?

    Hello,

    This is a basic question: I just want to enable the transparency of the 3D object with RGBA colors and not texture. I used blending and followed Learning WebGL Lessons 8 http://learningwebgl.com/blog/?p=859

    but found that I can't make it work with RGBA color. Some objects that have alpha value as 1 and are in front of others, are still seem as transparent objects.

    I think since I disabled depth testing, I need to draw the objects in the order that how they cover the others. But is there anyway I can simply draw them without considering the order and just show the objects with alpha value less than 1 as transparent? Thank you very much!

  2. #2
    Junior Member
    Join Date
    Mar 2012
    Posts
    12

    Re: How to use transparency?

    This is a very complex question, actually.
    The question is co complex, I personally don't want to handle transparency in my engine.

    Anyway, you could try the Dual Deep Peeling method.

Posting Permissions

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