Blender Git Loki

Git Commits -> Revision 8b2811d

Revision 8b2811d by Benoit Bolsee (master)
November 7, 2008, 10:54 (GMT)
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)

Commit Details:

Full Hash: 8b2811d9d5539dd880bc78f05e303781511d657b
SVN Revision: 17356
Parent Commit: 5567f3d
Lines Changed: +14, -5

1 Modified Path:

/source/gameengine/VideoTexture/Texture.cpp (+14, -5) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021