[osg-users] How to load different tga files in a smoothly way like a movie

2008-04-02 Thread digitcodecpp
Hi guys, my goal is to create an application that load different .tga files in a sequence like a movie. To do that, i have created a geometry that will contain all the textures (images). First of all, i load all images file, using : mImageTexture = new osg::Texture2D;

Re: [osg-users] How to load different tga files in a smoothly way like a movie

2008-04-02 Thread Stephan Huber
digitcodecpp schrieb: to change textures at 30 fps. But, when new image is load, there is a delay that prevent application to run smoothly like a movie. I tryed it also with .jpg files, but i get the same delay when i load a new texture. I tryed also to use osg::TextureRectangle instead

Re: [osg-users] How to load different tga files in a smoothly way like a movie

2008-04-02 Thread Robert Osfield
Hi Umpa Lumpa (just a likely a name as digitcodecpp so I presume this is fine ;-) The best guide is the existing Quicktime and Xine-lib plugins, they both run a background thread for the movies stream and subclass from osg::ImageStream. ImageStream by default constructs a PixelBufferObject which

Re: [osg-users] How to load different tga files in a smoothly way like a movie

2008-04-02 Thread digitcodecpp
-- Initial Header --- From : [EMAIL PROTECTED] To : OpenSceneGraph Users osg-users@lists.openscenegraph.org Cc : Date : Wed, 2 Apr 2008 09:31:37 +0100 Subject : Re: [osg-users] How to load different tga files in a smoothly way like a movie Hi bobby

Re: [osg-users] How to load different tga files in a smoothly way like a movie

2008-04-02 Thread J.P. Delport
Hi, you could also try enable pixel buffer objects on the textures you are pushing to the GPU. See the call that looks like e.g. VideoImage[i]-setImage(cameraImageWidth, cameraImageHeight, 1, 1, GL_LUMINANCE, GL_UNSIGNED_BYTE, gImage[i], osg::Image::NO_DELETE);

Re: [osg-users] How to load different tga files in a smoothly way like a movie

2008-04-02 Thread Robert Osfield
Hi Umpa, it's ok to call you Umpa isn't it? :-) On Wed, Apr 2, 2008 at 10:19 AM, digitcodecpp [EMAIL PROTECTED] wrote: Hi bobby lobby (just a likely a name ...I presume this is fine ;-) like Umpa Lumpa) As you know, what you are planning to do next summer is what we are going to realize

Re: [osg-users] How to load different tga files in a smoothly way like a movie

2008-04-02 Thread digitcodecpp
-- Initial Header --- From : [EMAIL PROTECTED] To : OpenSceneGraph Users osg-users@lists.openscenegraph.org Cc : Date : Wed, 2 Apr 2008 10:50:02 +0100 Subject : Re: [osg-users] How to load different tga files in a smoothly way like a movie Its