OpenGL Texture Probelm

View: New views
2 Messages — Rating Filter:   Alert me  

OpenGL Texture Probelm

by Jens Haupert :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello!

I'm running TAO with .NET 2. It works fine but I have some problems with fast
re-texturing. I'm getting updates form a VNC-Server a few times per second as an
.NET Bitmap.

In that case, I update the Texture with glTexSubImage2D() and rerender the
scene. But it doesn't work very well, because the texture flickers every few
seconds, that means the object is getting white for a few milliseconds and then
 changes to the new texture.

I use a flag to supress rendering while texture-update is running, but it
doesn't solve the problem.


Do you know a solution?


thanks,
Jens
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.4 (MingW32)

iD8DBQFEtimdkzbNFFUHFL0RAmP3AKDp2ou6PCgmOANkyOK/K6jvbpQA+QCgyCV8
X325muRuG//NQUNrSOdrfxQ=
=vPQ/
-----END PGP SIGNATURE-----
_______________________________________________
Tao-list mailing list
Tao-list@...
http://galactus.ximian.com/mailman/listinfo/tao-list

Re: OpenGL Texture Probelm

by lieven-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thu, 13 Jul 2006 13:08:13 +0200, Jens Haupert  
<haupert@...> wrote:

Hi,

I have the impression that you are using multiple threads. If that's true,  
then I think the problem is related to that, since you cannot use the same  
opengl context from different threads.

Greets,

Lieven van der Heide

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hello!
>
> I'm running TAO with .NET 2. It works fine but I have some problems with  
> fast
> re-texturing. I'm getting updates form a VNC-Server a few times per  
> second as an
> .NET Bitmap.
>
> In that case, I update the Texture with glTexSubImage2D() and rerender  
> the
> scene. But it doesn't work very well, because the texture flickers every  
> few
> seconds, that means the object is getting white for a few milliseconds  
> and then
>  changes to the new texture.
>
> I use a flag to supress rendering while texture-update is running, but it
> doesn't solve the problem.
>
>
> Do you know a solution?
>
>
> thanks,
> Jens
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.4 (MingW32)
>
> iD8DBQFEtimdkzbNFFUHFL0RAmP3AKDp2ou6PCgmOANkyOK/K6jvbpQA+QCgyCV8
> X325muRuG//NQUNrSOdrfxQ=
> =vPQ/
> -----END PGP SIGNATURE-----
> _______________________________________________
> Tao-list mailing list
> Tao-list@...
> http://galactus.ximian.com/mailman/listinfo/tao-list
>



--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
_______________________________________________
Tao-list mailing list
Tao-list@...
http://galactus.ximian.com/mailman/listinfo/tao-list