Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 9 of 9

Thread: 3D texture performance

  1. #1
    Junior Member Regular Contributor
    Join Date
    Apr 2003
    Location
    France
    Posts
    114

    3D texture performance

    hi all

    i wanted to know if 3D texture where really slower than others...
    i'm doing my some dynamic lightmapping, and i wondered if mapping a single 3D texture wasn't faster than mapping a 1D and a 2D texture...

    wizzo
    You snooze, you loose

  2. #2
    Junior Member Regular Contributor
    Join Date
    Nov 2002
    Location
    Kiev, Ukraine
    Posts
    132

    Re: 3D texture performance

    I had something like 98-99% on NV34/Det50 of 2D texture performance(probably, it is specific to my card)
    Andrey Yaromenok

  3. #3
    Senior Member OpenGL Guru
    Join Date
    Mar 2001
    Posts
    3,768

    Re: 3D texture performance

    I wouldn't be terribly surprised if 3D textures weren't as fast as others on modern hardware. However, and this is important, the 3D equivalent of your 2D/1D lookup is much bigger than a 2D and 1D texture. As such, it's a memory vs. performance tradeoff.

  4. #4
    Senior Member OpenGL Pro
    Join Date
    May 2001
    Location
    The Round Table at Camelot
    Posts
    1,537

    Re: 3D texture performance

    As such, it's a memory vs. performance tradeoff.
    What tradeoff? If 3D textures are not only slower than using a 2D and 1D AND take up more memory, then there is no tradeoff here. It's just plain bad all the way around.


    -SirKnight
    -SirKnight

  5. #5
    Senior Member OpenGL Guru
    Join Date
    Mar 2001
    Posts
    3,768

    Re: 3D texture performance

    If 3D textures are not only slower than using a 2D and 1D AND take up more memory, then there is no tradeoff here. It's just plain bad all the way around.
    Unless, of course, 1 3D texture access is faster than 1 2D and 1 1D texture access. Which "ayaromenok" reports is true for his NV34.

  6. #6
    Junior Member Regular Contributor
    Join Date
    Jun 2001
    Location
    Princeton, NJ
    Posts
    120

    Re: 3D texture performance

    If you don't need trilinear interpolation don't use 3D textures. They are definately slower. Due to 8 neighbor memory fetches (instead of 4 for bilinear) this should be no wonder for anybody.

    If you need to access a 3D array but only require bilinear interpolation, flatten the 3D array, i.e. use a big tiled 2D texture with sub-texture coordinates.

    Klaus

    [This message has been edited by Klaus (edited 12-12-2003).]

  7. #7
    Advanced Member Frequent Contributor
    Join Date
    Feb 2000
    Location
    San Diego, CA, USA
    Posts
    769

    Re: 3D texture performance

    How do you get 8 neighbors, Klaus? Wouldn't there be 6?

  8. #8
    Junior Member Regular Contributor
    Join Date
    Apr 2003
    Location
    France
    Posts
    114

    Re: 3D texture performance

    well I did my dynamic lightmapping with 3D texture and compared, and it looks like i've got approximatly the same frame rate than 1D/2D
    though, as you said, Korval, there is the huge increase of used memory...

    Well now my program support the two ways to do it, so i guess that will be the user's choice =)

    for information, what is your card ayaromenok ?

    thanks all for your answers
    wizzo
    You snooze, you loose

  9. #9
    Member Regular Contributor
    Join Date
    Jul 2000
    Location
    Arlon, Belgium
    Posts
    486

    Re: 3D texture performance

    wizzo,

    Remember that the 3D texture is used with an hardware extension so perhaps, that the fps will be the same.

    For a 2D texture : 64*64 = 4ko
    For a 3D textyre : 64*64*64 = 256ko

    [This message has been edited by Leyder Dylan (edited 12-14-2003).]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •