I agree, there is a bug there. Nice find. Do you (or does anyone) have an idea for a clean way to fix it? I expect that there is a relatively elegant/compact fix, but any way I think of fixing it just works out to be too long and clunky.
Thanks,
-matt
> --~--~---------~--~----~------------~-------~--~----~
> You received this message because you are subscribed to the Google Groups "pbrt" group.
> To post to this group, send email to pb...@googlegroups.com
> To unsubscribe from this group, send email to pbrt+uns...@googlegroups.com
> For more options, visit this group at http://groups.google.com/group/pbrt?hl=en
> -~----------~----~----~----~------~----~------~--~---
>
Kevin
> --
> You received this message because you are subscribed to the Google Groups "pbrt" group.
> To post to this group, send email to pb...@googlegroups.com.
> To unsubscribe from this group, send email to pbrt+uns...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/pbrt?hl=en.
>
>
If a mip-mapped texture uses the highest level mip-map level (one
pixel width or height), and TEXTURE_BLACK is used, then I would expect
the resulting texture lookup to be very dark. When using the highest
level mip-map the texture lookup is over a very large area (roughly
50-100% of the texture width / height), and if the lookup is not
perfectly centered a good portion of that area will be out of bounds.
Kevin
> --
> You received this message because you are subscribed to the Google Groups "pbrt" group.
> To post to this group, send email to pb...@googlegroups.com.
> To unsubscribe from this group, send email to pbrt+uns...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/pbrt?hl=en.
>
>
(I think that Volodymyr's proposed fix makes sense; I'll update the pbrt source distribution to include this fix as well as the other issue (hopefully before too long).)
Thanks,
-matt