Doc talk:2.6/Manual/Game Engine/Python API/VideoTexture

提供: wiki
< Doc talk:2.6/Manual‎ | Game Engine
2012年4月9日 (月) 01:25時点におけるwiki>Panaiotisによる版 (Ambiguous and outdated instructions.)
(差分) ← 古い版 | 最新版 (差分) | 新しい版 → (差分)
移動先: 案内検索

These demos and the instructions for this page do not work for Blender 2.6. A quick fix for the instructions would include:

 import bge
 GameLogic = bge.logic

In addition, the instruction to use:

 GameLogic.video.source.scale = True

results in horribly pixelated output. Set to False instead.

The instruction:

"Texture width and height must be a power of 2. If the video picture size is not a power of 2, rescaling is required."

is ambiguous. It is not clear what is meant by "texture width and height" being a power of 2. Is this a ratio between width and height, of what? What aspect of the texture? Is this a pixel size requirement of the movie, or the object the texture will be mapped to or the image texture that is attached to the movie screen? While the instruction may be important to the pixelation issue and setting the scale value to True, it is not clear what needs to be a power of 2 to get the optimal result.