You're welcome. You might be able to use the osgDB::Registry::setReadFileCallback() method to intercept read calls. At that point you can generate your normals (for example run the osgUtil::SmoothingVisitor) and then return the result to the system.
Glenn Waldron / osgEarth On Mon, Nov 11, 2019 at 10:05 PM Han Hu <huhan8...@gmail.com> wrote: > Hi, > > Thank you, Glenn. > > Another less related question. My model is pagedlod in osgb format, which > does not contain normal vectors. How can add callback functions, to > dynamically calculate the normal vectors and attach it to the normal > buffer, when loading? > > Cheers, > Han > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=76900#76900 > > > > > > _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >
_______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org