Discussion:
[osg-users] Rend to Texture Once
GuiYe
2018-08-26 07:29:42 UTC
Permalink
Hi,
I want to render a ploygon to texture,I won't change this polygon unless the polygon data changes. what can I do to render the texture only once, instead of rendering every frame?


Cheers
GuiYe
Robert Osfield
2018-08-26 08:29:41 UTC
Permalink
Hi GuiYe,

You can change the render to texture Camera's NodeMask to 0x0 to
switch it off. To render switch it back to 0xffffffff.

Robert.
Post by GuiYe
Hi,
I want to render a ploygon to texture,I won't change this polygon unless the polygon data changes. what can I do to render the texture only once, instead of rendering every frame?
Cheers
GuiYe
_______________________________________________
osg-users mailing list
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Loading...