I am also very excited to see how the rendering through blender will be done 🙂
Here is a bit of my code to illustrate. If I leave the OglShadowShader out everything works just fine
self.root = SCore.Node("Root")
root.addObject("LightManager", listening=True, shadows=True, softShadows=False)
root.addObject("OglShadowShader", name="shadowShader")
endo = self.root.addChild("Endoscope")
light = endo.addChild("light")
light.addObject("SpotLight", name='spotlight', direction=f"offset_engine.positions",
lookat=True,
cutoff=90, # angle in degrees
position=f"@{name}_camera_system.output_position",
attenuation = "0.15",
shadowTextureSize="128",
exponent=1, shadowsEnabled=True))
WARNING
The forum has been moved to GitHub Discussions.
Old topics and replies are kept here as an archive.