Can't use OglShadowShader in pygame #4524
Replies: 3 comments
-
|
Hey @EricSanchezok Did you progress in anyway? Cheers |
Beta Was this translation helpful? Give feedback.
-
|
|
Beta Was this translation helpful? Give feedback.
-
|
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone!
I constructed a scene featuring blood vessels and catheter, to which I added a LightManager, an OglShadowShader, and two types of lighting: a DirectionalLight and a SpotLight, the latter being attached to the end of a catheter. I employ Sofa.GUI to launch this scene, where the OglShadowShader functions effectively. However, when attempting to extract and render the image using pygame and SofaGL, as described in #3797 the resulting image turns out entirely black (with the light source off) or entirely white (with the light source on). What could be the reason for this issue?
This is the scenario when running in SofaGUI:

This is what it looks like in pygame:

This is part of my code:
and
Beta Was this translation helpful? Give feedback.
All reactions