<div dir="ltr">You're welcome.<div><br></div><div>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.</div><div><br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Glenn Waldron / osgEarth</div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Nov 11, 2019 at 10:05 PM Han Hu <<a href="mailto:huhan8807@gmail.com">huhan8807@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
Thank you, Glenn.<br>
<br>
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?<br>
<br>
Cheers,<br>
Han<br>
<br>
------------------<br>
Read this topic online here:<br>
<a href="http://forum.openscenegraph.org/viewtopic.php?p=76900#76900" rel="noreferrer" target="_blank">http://forum.openscenegraph.org/viewtopic.php?p=76900#76900</a><br>
<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org" target="_blank">osg-users@lists.openscenegraph.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" rel="noreferrer" target="_blank">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a><br>
</blockquote></div>