[osg-users] FixedFunctionTechnique, lighting, and createNormalMapTexture

Alex Taylor alextaylor at gmail.com
Tue May 24 05:15:10 PDT 2016


Robert,

I can't use Multipass technique because my viewer doesn't support
pre-cameras.

It is my intention to use Multi-pass when I can resolve the viewer issues,
but in the meantime, I'd appreciate some guidance on my original question.

Alex
On Tue, May 24, 2016 at 6:12 AM Robert Osfield <robert.osfield at gmail.com>
wrote:

> Hi Alex,
>
> The osgVolume::MultipassTechnique supports mixing geometry with the
> volume and constraining to a convex hull geometry.  This is what you
> should use instead of FixedFunctionTechnique, the only reason to use
> this now is that you've have completely hopeless hardware+drivers that
> are incapable of doing proper volume rendering.
>
> Robert.
>
> On 23 May 2016 at 22:49, Alex Taylor <alextaylor at gmail.com> wrote:
> > Hey all,
> >
> > From previous posts, I understand clearly that FixedFunctionTechnique is
> the
> > worst of the osgVolume techniques in terms of both speed and quality of
> > results.
> >
> > However, due to some specific requirements of the application I'm trying
> to
> > build (need for clipping to a bounding box, need to insert other geometry
> > into scene) and limitations in the osgViewer in my environment (no
> support
> > for pre-cameras), FixedFunctionTechnique may be something I have to
> > consider.
> >
> > I was wondering, I understand that createNormalMapTexture is to allow for
> > lighting with FixedFunctionTechnique. What does one do with the resulting
> > array of normal vectors once you call createNormalMapTexture? Is there an
> > interface somewhere to pass the normals? How would one use
> > createNormalMapTexture to implement lighting when using
> > FixedFunctionTechnique?
> >
> > - Alex
> >
> > -
> >
> > _______________________________________________
> > osg-users mailing list
> > osg-users at lists.openscenegraph.org
> >
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> >
> _______________________________________________
> 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/20160524/09232d21/attachment-0003.htm>


More information about the osg-users mailing list