0

im doing a trasparency project now i have to implement depth peeling

so i looked up for some resources to start implementing the algorithm and i found this link

https://www.kitware.com/vtk-technical-highlight-dual-depth-peeling/

there is some things i don't understand in the algorithem for example what exactly is

lastFrontPeel and lastDepthPeel

and should i do this algorithem for every single pixle in my mesh moodels????

answering this questions would help alot thnx in advance

Samer
  • 1
  • I don't think this "technical highlight" is meant to be a tutorial. It's not supposed to teach you how to do depth peeling - I think it's more like "hey, depth peeling exists and our software can do it!" Did you try searching for other information on depth peeling? – user253751 Apr 19 '22 at 17:07
  • not familiar with techniques but from a quick look yes you should do this for every fragment of your scene ... and render the scene as many times as you got layers of depth/2 ... I think you should start with normal depth peeling as its simple and when works then convert to dual ... I would modify the technique to render scene to 3D texture or array of textures instead of framebufer once and then just raycast the 3D texture once ... should be much faster but requires a lot of GPU memory and never tried a 3D texture render target ... so I might be wrong if not possible – Spektre Apr 20 '22 at 08:44
  • for simpler scenes there are simpler workarounds like this [How to create Order Independent transparency?](https://stackoverflow.com/a/37783085/2521214) – Spektre Apr 20 '22 at 08:46
  • uh i still have not found a guide or tutorial im still searching but still unlucky if you have one i would really appreciate the help @user253751 – Samer Apr 20 '22 at 11:17
  • @Samer I wrote my own depth peeling code once, based on the description of the algorithm. I think if you understand the concept, then it is not difficult, just a bit fiddly (like all code). – user253751 Apr 20 '22 at 11:30

0 Answers0