Skip to content

fix(visualizer): create shadow-map FBO in headless mode\n\nPreviously… - #100

Open
heesup wants to merge 1 commit into
PlantSimulationLab:masterfrom
heesup:master
Open

fix(visualizer): create shadow-map FBO in headless mode\n\nPreviously…#100
heesup wants to merge 1 commit into
PlantSimulationLab:masterfrom
heesup:master

Conversation

@heesup

@heesup heesup commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

In my example code using Visualizer headless rendering, the shadow-map framebuffer and depth texture were only created in windowed mode, causing shadows to be missing in offscreen renders.
This fix will use the same FBO setup as is performed for headless mode as well.

Before
plot_0000_vis_before
After
plot_0000_vis_after

Thank you!

@heesup

heesup commented Aug 5, 2026

Copy link
Copy Markdown
Contributor Author

But I'm not an expert on OpenGL, and I think it might cause any memory leaks or driver crashes. So please ignore this PR if it's not tested well or makes the visualizer unstable. Thank you!

… shadow-map framebuffer and depth texture were only created\nin windowed mode, causing shadows to be missing in offscreen renders.\nNow the same FBO setup is performed for headless mode as well.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant