How do you get world textures using the blender game module (BGE 2.78a)

for the bpy you can do: bpy.data.images, and bpy.data.images.new
but what’s a good alternative to this, so you can get world textures?

i assume it’s something like bge.texture.ImageBuff.image[0]

nobody has any ideas?

To be honest, if my memory serves correctly, vanilla Blender didn’t even have world zenith properties available to the game engine until Blender 2.79.x. Legacy UPBGE API was implemented to access those values at runtime in legacy UPBGE. BGE didn’t even have API to access them at runtime.

If you used a skybox or skydome as your world texture, you’d simply need to use bge.text.materialID, as it’s a physical mesh with a binding material to your [world] texture.

Of course, UPBGE 0.3+ is always on the tablewith its fantastic BPY integrations if you want to work with BPY directly at runtime.