1
\$\begingroup\$

I want to implement weighted blended OIT in my C++ OpenGL 3D game, but I didn't find any C++ examples about weighted blended order independent transparency.

Paper

  • How to clear accumTexture(framebuffer attachment) to vec4(0)?
  • How to clear revealageTexture(framebuffer attachment) to float(1)?
\$\endgroup\$
  • \$\begingroup\$ The paper you link appears to include code examples demonstrating their proposed methods. Can you describe in more detail where you've run into trouble incorporating this into your game or mod? \$\endgroup\$ – DMGregory Jul 21 '18 at 12:44
  • \$\begingroup\$ @DMGregory How to clear accumTexture to vec4(0) and revealageTexture to float(1)? \$\endgroup\$ – Paul Mattson Jul 21 '18 at 13:25
  • \$\begingroup\$ glClearColor and glClear? If you're having trouble setting up and clearing render targets, then you might want to start with a few more basic OpenGL tutorials to learn the ropes before diving into graphics research whitepapers. \$\endgroup\$ – DMGregory Jul 21 '18 at 13:33
  • \$\begingroup\$ @DMGregory But if I bind framebuffer, I need to clear two textures by different values. How to do that? \$\endgroup\$ – Paul Mattson Jul 21 '18 at 15:39

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.