mip map cross-level interference?

Discussion in 'Rendering Technology and APIs' started by shuipi, Jun 23, 2009.

  1. shuipi

    Newcomer

    Joined:
    Mar 16, 2004
    Messages:
    73
    Likes Received:
    0
    Location:
    Beijing, China
    I create a 4 level mip chain(down to 1/8 on each side) of the render target every frame, however I don't just store the downscaled render result into each mip level, for levles 1, 2, 3, I also blur them before storing them to the corresponding mip levels of the texture. Next a shader access this mipmaped and blurred render result, and uses tex2Dbias to access different mip levels depending on each pixel's properties. I found a strange behavor: when a pixel is guarrenteed to be lerping betwen levels 2 and 3, whether blur level 1 will affect the result. But in theory the hardware does the trilinear lerp only between levels 2 and 3, and it shouldn't matter even if the 1st and 0th levels are garbage data, isn't that correct?
     
  2. Humus

    Humus Crazy coder
    Veteran

    Joined:
    Feb 6, 2002
    Messages:
    3,217
    Likes Received:
    77
    Location:
    Stockholm, Sweden
    Correct. If you're indeed sampling between 2 and 3, the other levels should have no effect on the result.
     
  3. shuipi

    Newcomer

    Joined:
    Mar 16, 2004
    Messages:
    73
    Likes Received:
    0
    Location:
    Beijing, China
    Ah, it's my code forgetting reset the bias texture state. Never mind. Sorry for confusion.
     
Loading...

Share This Page

  • About Us

    Beyond3D has been around for over a decade and prides itself on being the best place on the web for in-depth, technically-driven discussion and analysis of 3D graphics hardware. If you love pixels and transistors, you've come to the right place!

    Beyond3D is proudly published by GPU Tools Ltd.
Loading...