On Wednesday, November 24, 2004, at 09:18PM, Keith Bauer <email@hidden> wrote:
>>> There is an extension (ARB_texture_non_power_of_two) which lifts the
>>> restriction, and OpenGL 2.0 requires the presence of this extension.
>>> It is not, however, supported on all cards. AFAIK, the GeForce 6
>>> family are the only hardware currently able to support this
>>> extension.
>
>> Caution--if you use the non-power-of-two extension, you lose some
>> functionality (like texture wrapping, I believe). Also UV coordinates
>> are specified differently (pixel-based instead of zero-to-one based).
>
>Nope, you're thinking of NV_texture_rectangle, EXT_texture_rectangle,
>and ARB_texture_rectangle (all of which are essentially the same
>extension).
>
>Those extensions are supported on all cards from the GeForce MXs and
>Radeons up, and even a special case (screen-aligned quads) is
>(unofficially) supported on the Rage 128.
>
>ARB_texture_non_power_of_two has no restrictions. 0..1 texture
>coordinates, wrapping, mipmapping, &c all work exactly as for
>power-of-two textures. That's why the extension requires such new
>hardware :)
An AudioUnit which can only be used on GeForce 6 class hardware is of pretty limited use for most people.
I would advise simply putting your non-power-of-two graphics which you wish to use in your interface into a subsection of a power-of-two texture. Careful use of texture coordinates and disabling texture filtering should ensure that the texels draw to the correct place on the screen.
This will work for all graphics cards.
--
James Milne
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Mac-opengl mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/mac-opengl/email@hidden
This email sent to email@hidden