art wrote:
> 
> the syntax is exactly the same as on usual texture2D call. So 
> texture2DLod(sampler, coordinate [,lod]). So in both shaders 
> luminance_adapted and luminance_mipmap, just change the texture2D calls to 
> texture2DLod where mipmap level is accessed. 
> 


Hi Art,
Just retried the 0.4.2rc1 tag and still no luck... I still don't get what I 
expect as the average luminance. I'm on Windows7 right now so I'd like to give 
it a try on WinXP as well. if I get a different behavior I'll let you know.

By the way, I don't think that clamping to zero the log values is correct. Even 
if you keep the negative values, at the last level you'll exp them and this 
will certainly bring them back to the positive realm. So actually the clamp is 
introducing an error I think.

   Luca

PS
Note that the specs for OGL 3.x say that Texture2D is a deprecated syntax, you 
should just drop the 2D (also for the Lod version). However that is not solving 
the issue either...

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=27458#27458





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to