r/GraphicsProgramming • • Jul 18 '26

Weighted Blended Order-Independent Transparency on Android

Post image
15 Upvotes

Spend some time implementing WBOIT into the DImGui engine. The results are surprisingly good and keep at 40 fps with full lights, shadows etc. basic lighting looks alright still in blending and runs at a solid 60 fps.

I used a Vulkan 3 sub-pass technique plus an initial depth pass with fragment sampling to depth test away triangles obscured. MSAA proof on PC. Android MSAA breaks the pipeline on tilers due to the MSAA requirement on mid-pass resolving. To allow the non-transparent elements image to mix with the weighted/blended transparent parts, and adding a step 0 - 2 dependency. It will still work but is super slow.

But this allows instancing of multiple object meshes completely unsorted, which was the whole reason for going WBOIT over a sort in the first place.


r/GraphicsProgramming • • Jun 16 '26

I wrote a C++ path tracer from scratch without AI

Thumbnail gallery
1.5k Upvotes

https://github.com/themartiano/luz

5 years ago I was 17 and learning to code C/C++ in a coding bootcamp (42). One of the projects was a simple C ray tracer. I really enjoyed working on the project and always loved computer graphics, so I decided to create my own path tracer from scratch, in C++, without using any third-party libraries.

I ended up working on it consistently for over a year, then sporadically when CG excitement hit me again. Recently I polished it and completed some unfinished features and decided to make it public, finally. It's a C++20 Path Tracer with a CPU renderer. It is able to render good-looking images with reasonable performance and sample count.

Btw this was initially coded without AI, but I've used it for the recent clean up and features. This project is a personal favorite of mine, and it can improve a lot, so I'd love to hear your feedback.


r/GraphicsProgramming • • May 15 '26

Question How long does it take to do something decent in OpenGL?

Post image
707 Upvotes

Hi! I'm trying to learn graphics programming for fun after coming from high-level languages like GDscript or Python. I want to understand how games work under the hood!.

But I've come across many comments from colleagues telling me, "Get out of OpenGL, you're not going to build anything you'll ever finish." Or "OpenGL is a time-waster not worth learning, just make games" which demoralizes me a little.

I've been learning C++ these past few months and I find it an extremely interesting language. I appreciate the freedom it gives developers to do anything; Python limited me to only doing certain types of things, as it wasn't the right tool for some types of work.

And I've already written my first program! With my own logic! In C++ I made a program that calculates how much VAT should be deducted from the price of a product. I know it's not much, but I felt really proud.

I think I'll read the LearnOpenGL Book since it seems to be the most reliable source for learning OpenGL, or can you recommend better resources?

To answer my future self in a few years, would you recommend learning Vulkan? I've seen people do amazing things with OpenGL on this subreddit, so I think I have more than enough with OpenGL, I think Vulkan is the real time-waster hahaha (No offense to those who love Vulkan, just kidding).

Fun fact: This is what Doom 2016 looks like with OpenGL 4.5, I recently bought it and was amazed.


r/GraphicsProgramming • • Oct 27 '25

Clouds path tracing

Thumbnail gallery
3.4k Upvotes

Recently, I made a post about adding non-uniform volumes into my C++/Vulkan path tracer. But I didn't really like how the clouds turned out, so I've made some improvements in that aspect and just wanted to share the progress because I think it looks a lot nicer now. I've also added atmospheric scattering, because getting the right lighting setup was really hard with just environment maps. So the background and the lighting in general look much better now. The project is fully opensource if you want to check it out: https://github.com/Zydak/Vulkan-Path-Tracer . You'll also find uncompressed images there.

Also, here's the number of samples per pixel and render times in case you're curious. I've made a lot of optimizations since the last time, so the scenes can be way more detailed and it generally just runs a lot faster, but it still chokes with multiple high density clouds.

From left to right:

- 1600 spp - 2201s
- 1600 spp - 1987s
- 1200 spp - 4139s
- 10000 spp - 1578s
- 5000 spp - 1344s
- 6500 spp - 1003s
- 5000 spp - 281s