- This topic has 1 reply, 2 voices, and was last updated 6 years, 2 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
Home › Forum › SOFA › Using SOFA › OglLabel can't be used together with OglShadowShader?
Tagged: 64_bits, SOFA_1608, Windows_81
Hello All,
I’m thinking of writing some runtime data on screen, I tried the OglLabel, but it never shows on screen, I play around a bit, it seems it can’t work together with the OglShadowshader, but I prefer to keep the shadow for visual cue. I tried to unload shader in OglLabel code with glUseProgram(0), but it didn’t help…Anyone knows the solution? Thank you!
Best,
Yannie
Hey Yannie
Any luck with this runtime data displayed ?
The OglLabel should work. In the example scene examples/Components/visualmodel/OglLabel.scn, I added this and it works fine (displays the positions of the MechanicalObject):
<OglLabel label="@Particles.position" fontsize="20" color="black" prefix="My positions: " updateLabelEveryNbSteps="1" y="75"/>
Hugo
WARNING
The forum has been moved to GitHub Discussions.
Old topics and replies are kept here as an archive.