sofa icon indicating copy to clipboard operation
sofa copied to clipboard

No textures when using OglShadowShader

Open ScheiklP opened this issue 3 years ago • 0 comments

Problem

If there is an OglShadowShader, the texture of an OglModel is not rendered. Bonus problem: The direction of a DirectionalLight is also flipped.

If I take the OglShadowShader_Directional example and set a texture to the OglModel (<OglModel template="Vec3d" name="VisualModel" src="@meshLoader_0" texturename="/home/paul/repos/sofa/src/share/textures/seaMonster.png"/>) shadows are rendered, but the texture is not there.

image


Environment

Context

  • System: Ubuntu 20.04
  • Version of SOFA: commit f1d96c30de75c586d05ced9ca304fc53eababc7d from Wed Jul 27 13:43:50 2022 +0200
  • State: "Install directory"

Command called


runSofa examples/Components/visualmodel/OglShadowShader_Directional.scn

ScheiklP avatar Aug 03 '22 15:08 ScheiklP