Hi, Nan You should generate them with same GS. If you draw GS generated model immediatly you should specify correct outputs\inputs for generated tc's in geometry and fragment shaders. If you stream out and save generated vertices data with transform feedback you should also stream out generated texcoords.
Cheers, Sergey. 05.05.2011, 14:07, "Nan WANG" <[email protected]>: > Hi, > Anybody knows how to set a UV coordinate on a geometry shader generated > object? > > I tested my U-moving VS FS shader with a osg::Sphere and osg::box. > The uv coordinate can be mapping properly in VS and FS.... > > When i apply this two Shaders to a Geometry Shader generated objects....the > texture2D mapping is not right... > > i think it should be a problem of having right UV on GS generated object? > > How can I give a UV to GS generated object? > > ... > > Thank you! > > Cheers, > Nan > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=39025#39025 > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

