Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorBenoit Bolsee <benoit.bolsee@online.be>2008-11-07 13:54:32 +0300
committerBenoit Bolsee <benoit.bolsee@online.be>2008-11-07 13:54:32 +0300
commit8b2811d9d5539dd880bc78f05e303781511d657b (patch)
tree7480ae7c502d167bfa058860e12f552b5a104400 /README
parent5567f3dded3620c870544d586c2f85fe44c08a10 (diff)
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)
Diffstat (limited to 'README')
0 files changed, 0 insertions, 0 deletions