[osg-users] Render normal vectors to image

Glenn Waldron gwaldron at gmail.com
Tue Nov 12 06:49:53 PST 2019


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 <huhan8807 at 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 at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20191112/d451ce06/attachment.html>


More information about the osg-users mailing list