[osg-users] osg shadow minimal shadow map and auto-rotating text objects
Robert Osfield
robert.osfield at gmail.com
Sat Jul 9 02:49:32 PDT 2016
HI Andreas,
On 8 July 2016 at 16:24, Andreas Goebel <a-goebel at gmx.de> wrote:
> with the minimal shadow map technique text-objects cast shadows (which
> is what I want).
>
> But it seems that the text objects are auto-rotated towards the light
> during shadow rendering.
>
> Is there a flag to disable the auto-rotation as long as the
> shadow-camera is making it´s shot?
osgText doesn't know anything about being used within osgShadow so has no way of
> If not, what would be a good way to implement that?
You would need to disable the auto-rotate in osgText then place a
transform above the osgText drawable to place it in the right
orientation and have this transform be updated once each frame.
Robert.
More information about the osg-users
mailing list