I am using the following script to create an object with a render of another part of the scene on it (in a pixel style). I'm trying to disable mipmapping for the video texture, which doesn't seem to be working, but only for the video texture. The mipmapping(0) script works on all materials except for the video material no matter what I do...help

import bge

from bge import render

controller = bge.logic.getCurrentController()
owner = controller.owner

cameraName = owner['cam']
materialName = owner['material']

scene = bge.logic.getCurrentScene()
camera = scene.cameras[cameraName]

materialId = bge.texture.materialID(owner, "MA" + materialName)

renderToTexture = bge.texture.Texture(owner, materialId)
owner["RenderToTexture"] = renderToTexture

source = bge.texture.ImageRender(scene, camera)
source.capsize = [320, 240]
renderToTexture.source = source

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.