blender/source
Benoit Bolsee 8b2811d9d5 VideoTexture: VideoTexture.materialID() can now take texture image name.
You can specify a image name (starting with 'IM') instead of a material
name in VideoTexture.materialID() and return the material ID matching
this texture.
The advantage of this method is that is works with blender material
and UV texture. In case of UV texture, it grabs the internal material
corresponding to the faces that are assigned to this texture. In case
of blender material, it grabs the material that has an image texture
matching the name as first texture channel.
In both cases, the texture id used in VideoTexture.Texture() should be 0.

Ex:

matID = VideoTexture.materialID(obj,'IMvideo.png')
GameLogic.video = VideoTexture.Texture(obj, matID, 0)
2008-11-07 10:54:32 +00:00
..
blender Bugfix #17524 2008-11-06 18:49:53 +00:00
creator Added bf_videotex to unix libraries (linking error) 2008-11-02 14:54:44 +00:00
darwin Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
gameengine VideoTexture: VideoTexture.materialID() can now take texture image name. 2008-11-07 10:54:32 +00:00
icons Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
kernel Merge from trunk 2008-09-19 14:15:36 +00:00
CMakeLists.txt Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
Makefile Makefile fixes for compiling with new videotexture code. 2008-11-02 18:12:45 +00:00
nan_compile.mk Makefile fixes for compiling with new videotexture code. 2008-11-02 18:12:45 +00:00
nan_definitions.mk 2008-10-22 05:35:23 +00:00
nan_link.mk Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
nan_subdirs.mk Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
nan_warn.mk Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
SConscript * Minor cleanup of SCons files 2008-10-22 11:28:10 +00:00