Hi Marcus,
On Wed, 2005-11-09 at 12:26 +0100, Marcus Roth wrote:
> Hi,
>
> I'm using the TextureGrabBackground to grab an image of the current
> viewport.
> Something changed a view weeks ago in OpenSG. So my Question:
>
> How large is the texture I get from texture grab.
> 1024 x 768 or -> new OpenSG
> 2048 x 2048 -> old OpenSG or when non power of 2
> textures are not supported?
>
> In one case the grabed image coveres the whole texture and otherwise
> only a part
> of the texture is covered by the image. I have to use different texture
> coordinates
> to get the same result.
Only when you set the scale flag in the TC to false. But given t hat
you're using it for dynamic images you will always do that.
> Any idea, how to handle this for all graphics cards.
The easiest way to do that is to set the size of the texture before the
grabbing starts. In that case the TGF will not touch it but just grab
the data into it, and you can use the 2kx2k texture on all systems. It
wastes a lot of memory, but it will work.
Alternatively you can just check the availability of
GL_ARB_texture_non_power_of_two and adjust your texture coordinates
accordingly.
Hope it helps
Dirk
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users