Hi

The way I used it is by taking an .osg file, and change the texture
material description into this:

          textureUnit 0 {
            GL_TEXTURE_RECTANGLE ON
            TextureRectangle {
              file "somefile.avi"
              min_filter LINEAR
              mag_filter LINEAR
            }
          }

I believe I did it like this, it's been a while. The most important trick
is to use the TextureRectangle since that one does allow arbitrary sizes
of images.

good luck
Raymond


> Raymond,
>
> Thanks for the info!  With that plugin you can also play a movie with this
> command:
> osgviewer test.avi.movie
> But, when you play it with that command it is very slow because it is
> scaling an image every frame from (1280,960) to (1024,1024) at least for
> me.
> Anybody know why this is?
> osgmovie test.avi.movie works just fine.
>
> I'd like things like
> osgdistortion test.avi.movie to work.
>
> Thanks.
>
> Zach
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Raymond de
> Vries
> Sent: Friday, December 01, 2006 06:28
> To: osg users
> Subject: Re: [osg-users] Playing a Movie
>
> Hi,
>
> When you're on windows, you can take a look at the AVI plugin. See this
> earlier message:
> http://openscenegraph.net/pipermail/osg-users/2005-November/059111.html
>
> Best regards
> Raymond
>
>
>
> Jeremy Moles wrote:
>> On Thu, 2006-11-30 at 13:03 -0500, [EMAIL PROTECTED] wrote:
>>
>>> Hey Everyone,
>>>
>>> What is the latest on being able to play AVI's in OSG?  I saw some
>>> earlier archive notes by Gordon T.  Really I am just wanting to play
>>>
>>
>> Well, if you have Xine and Xine development headers/libs installed,
>> build OSG with XINE_ISTALLED=1 as a Make variable and it'll build the
>> proper plugins. Then you can do something like:
>>
>> osgviewer --movie $MOVIE
>>
>>
>> If you're asking how to setup a movie code-wise, probably best to look
>> at the osgmovie example and the Xine plugin.
>>
>>
>>>  cut-scenes for a game from within my OSG window, (I guess it does
>>> not even need to be within the OSG window, as long as I can switch
>>> without it being noticed mythe user)  It does not even have to be an
>>> AVI, perhaps a QuickTijme or whatever else is easy to get to the
>>> user.  THe other thing would be to play a movie as a texture on a
>>> poly, but that could probably be just a sequence of stills,,,
>>>
>>> Thanks,
>>> -- Rick
>>>
>>>
>>>
>>> ps:
>>>
>>> Thanks Paul for the notes:
>>>
>>> There are no stupid questions. I looked at this cross-eyed myself the
>>> first time I saw it. :-)
>>>
>>> RTT: "Render to texture".
>>>
>>>
>>> _______________________________________________
>>> osg-users mailing list
>>> [email protected]
>>> http://openscenegraph.net/mailman/listinfo/osg-users
>>> http://www.openscenegraph.org/
>>>
>>
>> _______________________________________________
>> osg-users mailing list
>> [email protected]
>> http://openscenegraph.net/mailman/listinfo/osg-users
>> http://www.openscenegraph.org/
>>
>>
>>
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://openscenegraph.net/mailman/listinfo/osg-users
> http://www.openscenegraph.org/
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://openscenegraph.net/mailman/listinfo/osg-users
> http://www.openscenegraph.org/
>


_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to