owensgroup / optix_splats

Testing different OIT methods for Gaussian Splatting
2 stars 0 forks source link

Get CUDA/OpenGL interop #5

Open Teja10 opened 8 months ago

Teja10 commented 8 months ago

Change renderer.cu to properly swap the Optix image with an OpenGL framebuffer, and modify render_test.py to use OpenGL for rendering. You will need to figure out how to load GL functions on the C++ side.

crozhon commented 8 months ago

See branch sdl for a rough outline.

I didn't use interop, just copied the buffer back to CPU, then used glBufferData to move it back to GPU.

crozhon commented 8 months ago

I edited it again to do interop now - was pretty simple. Not sure what happens to PyTorch image I create each time though. Maybe that's the memory leak?