image_mob¶
Images as flat textured surfaces.
ImageMob puts a picture on screen: a file path or an RGBA array becomes
a quad carrying the image as a texture map, sampled per fragment by the renderer,
so it stays sharp independently of the mesh’s resolution.
It is a Surface, so it moves, rotates and
deforms like any other 3-D Mob – but it is deliberately unlit: a picture shows
its own colors rather than a lighting gradient, whatever the Scene’s lights are
doing.
Paths resolve against the working directory and then against the directory
holding the main script, so an image sitting beside your .py file loads
wherever you launch Python from.
See Images and Textures.
Classes