Dear Drew Smathers,

Thanks for that lightning fast response. I'll certainly give it a try
this week and post my results here.
Thanks so much for your help.

:)
regards,
mdique

On Jun 24, 3:05 am, "Drew Smathers" <[EMAIL PROTECTED]> wrote:
> On Mon, Jun 23, 2008 at 2:59 PM, Drew Smathers <[EMAIL PROTECTED]> wrote:
> > On Mon, Jun 23, 2008 at 2:37 PM, mdique <[EMAIL PROTECTED]> wrote:
>
> >> Hi everyone,
>
> >> I'm new to pyglet and would like to write a simple app that will
> >> display a video on a 3D plane. This is so that I can move that plane
> >> around while the video is playing.
> >> What's the simplest way to do that. All the examples I have seen so
> >> far involve playing a video in the traditional sense. Any help
> >> appreciated.
>
> > The player gives you access to the texture, so the process of display
> > it in a 3d context is the same as for images.  So you setup and the
> > player as documented.
>
> >  player = media.Player()
> >  player.queue(source)
> >  ...
> >  player.play()
>
> > Then in your draw method:
>
> >  ... apply world transformations
> >  player.texture.blit(x, y)
>
> Sorry, to clarify, for positioning the texture correctly in a 3d
> context before calling blit() on the Texture object, you might do
> something like:
>
> glPushMatrix()
> glTranslatef( video_pos_x, video_pos_y, video_pos_z )
> glRotatef(video_angle_z, 0, 0, 1)
> glRotatef(video_angle_y, 0, 1, 0)
> glRotatef(video_angle_x, 1, 0, 0)
> player.texture(0, 0)
> glPopMatrix()
>
> --
> \\\\\/\"/\\\\\\\\\\\
> \\\\/ // //\/\\\\\\\
> \\\/ \\// /\ \/\\\\
> \\/ /\/ / /\/ /\ \\\
> \/ / /\/ /\ /\\\ \\
> / /\\\ /\\\ \\\\\/\
> \/\\\\\/\\\\\/\\\\\\
>  d.p.s
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pyglet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to