Hi Vincent,

On Mon, 2004-11-08 at 12:47, [EMAIL PROTECTED] wrote:
> Hello everybody,
> 
>   I would like to know if it's possible to have some video textures with 
> OpenSG
> because i want to put the video picture of a webcam in my application. 
> Somebody
> can help me ?

sure, a video texture is just a texture that changes every frame. You
just copy the new frame into the Image's data block (gotten by
Image::getData()) and notify the Texture that the data changed using
TextureChunk::imageContentChanged(). It will use glTexSubImage2D to
update the texture the next time it's used.

Hope it helps

        Dirk




-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to