Re: [cgkit-user] video as a texture
Brought to you by:
mbaas
|
From: Samuel P. <sfp...@gm...> - 2010-12-02 17:23:08
|
Ah, excellent! Just ran across this, actually. Thanks for the help. Sam On Wed, 01 Dec 2010 23:50:28 +0000 Matthias Baas <mat...@gm...> wrote: > Hi Samuel, > > On 26.11.10 23:24, Samuel Potter wrote: > > I'm using the OpenGL material, so setting the imagename property > > would be a great way to go - I'm a little unsure of how to change the > > parameter after instantiation, though... > > If you have an OpenGL material with a texture like this: > > mat = GLMaterial(..., texture=GLTexture(...), ...) > > then you can change the image file as follows: > > mat.getTexture(0).imagename = "myimage.jpg" > > > I thought of maybe using a > > ValueTable and image paths, but something like ValueTable(type = > > "string") didn't work. > > Yes, at the moment, such a value table can only be used for numeric types. > For animating the above image name, I would suggest connecting a > callback function to the STEP_FRAME event from where you can update your > animated textures. See the last section in the animation tutorial. > > I hope that helped... > > Cheers, > > - Matthias - > > ------------------------------------------------------------------------------ > Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! > Tap into the largest installed PC base & get more eyes on your game by > optimizing for Intel(R) Graphics Technology. Get started today with the > Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. > http://p.sf.net/sfu/intelisp-dev2dev > _______________________________________________ > cgkit-user mailing list > cgk...@li... > https://lists.sourceforge.net/lists/listinfo/cgkit-user -- Samuel Potter <sfp...@gm...> |