[osg-users] Question about osgVolume::createNormalMapTexture
Alex Taylor
alextaylor at gmail.com
Wed Apr 13 06:18:25 PDT 2016
Robert,
I'm actually planning on providing FixedFunctionTechnique as a fallback
codepath for rare cases. As such, I was hoping to get lighting working with
FixedFunctionTechnique. I'm confused by the interface of
createNormalMapTexture. Specifically, is there an interface for passing the
resulting buffer of surface normals to somewhere in the
osgVolume/layer/tile hierarchy so that lighting sources can use this
information? It's unclear to me what I'd do with the result of
createNormalMapTexture. I can't find any examples of code using this
function with a google search.
- Alex
On Thu, Mar 10, 2016 at 9:52 AM Robert Osfield <robert.osfield at gmail.com>
wrote:
> Hi Alex,
>
> The normal map texture is required when you want to mimic per pixel
> lighting with the fixed function pipeline, it's not something required for
> normal osgVolume usage these days as you'll be using RayTracedTechnique or
> MultipassTechnique.
>
> Robert.
>
> On 10 March 2016 at 14:49, Alex Taylor <alextaylor at gmail.com> wrote:
>
>> Hey,
>>
>> Looking through the osgVolume namespace, I have a question about the
>> function createNormalMapTexture. My main question is, what are the intended
>> use cases for this function?
>>
>> - 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/20160413/f5559dbf/attachment-0002.htm>
More information about the osg-users
mailing list