Projecting a texture onto the scene geometry

29 views
Skip to first unread message

Tom Pollok

unread,
Apr 23, 2020, 2:46:07 PM4/23/20
to OpenSceneGraph Users
Is there a way in osg to project a given texture, a 3d location and focal length onto the 3d geometry, for example a surface mesh, of a scene using osg?

OpenSceneGraph Users

unread,
Apr 23, 2020, 3:23:02 PM4/23/20
to OpenSceneGraph Users
On Thu, 23 Apr 2020 at 20:01, OpenSceneGraph Users <osg-...@lists.openscenegraph.org> wrote:
Is there a way in osg to project a given texture, a 3d location and focal length onto the 3d geometry, for example a surface mesh, of a scene using osg?

Have a look at the osgspointlight example, this uses eye linear texgen to project a texture onto a terrain to create a moving spot light.

Robert.

 

Tom Pollok

unread,
Apr 23, 2020, 7:25:41 PM4/23/20
to OpenSceneGraph Users
This works perfectly!!!! Thank you very much for that hint, Robert!
Reply all
Reply to author
Forward
0 new messages