Yep, you're the only one.

Why wouldn't you want all the MIPmap levels?

The idea of MIPmaps is (oversimplifying for brevity) that it picks the level 
where the resolution of the texture matches the resolution of the spacing 
between pixels as the object is viewed. What if your object is 4x4 pixels on 
the screen? You don't want to sample from the 64x64 MIP level, or you would get 
aliasing. You really do want the 4x4 level.


> On Jun 4, 2020, at 3:48 PM, Phil Miller <philip.mil...@sri.com> wrote:
> 
> I am using the latest release of oiio to make tiled pyramids from a grayscale 
> bmp to a tif. It all works, except that the mipmaps go smaller than the tile 
> size all the way down to 1x1 image. When I use irfanview to inspect the 
> output image, it shows black for all the image pages that are smaller than 
> 64x64. (I just tried oiio’s iv and it shows the images, well at least the 
> ones I could see; I could not really see anything smaller than 25x25. I could 
> certainly see the first one below 64x64 was not all black as irfanview 
> shows.) But I do not really want mipmap images smaller than the tile size 
> 64x64 tile size. And there does not seem to be a way to stop it. 
>  
> I added a simple if statement to maketexture.cpp so the mipmapping stops once 
> the dimensions are smaller than the tile size. Is this a generally useful 
> feature for others? If so, I can submit a pull request. If not, what about an 
> option to specify the minimum dimensions at which the mipmaps should stop? Or 
> am I the only one who does not want such small mipmap images? 
>  
> Thanks!
> Phil
>  
> _______________________________________________
> Oiio-dev mailing list
> Oiio-dev@lists.openimageio.org <mailto:Oiio-dev@lists.openimageio.org>
> http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org 
> <http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org>
--
Larry Gritz
l...@larrygritz.com




_______________________________________________
Oiio-dev mailing list
Oiio-dev@lists.openimageio.org
http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org

Reply via email to