Hello.
I am trying to change the camera source on this video texture script while in-game,but with no success…
import VideoTextureimport bge
contr = bge.logic.getCurrentController()
obj = contr.owner
if not hasattr(bge.logic, 'viewp'):
matID = VideoTexture.materialID(obj, 'MA1')
bge.logic.viewp = VideoTexture.Texture(obj, matID,0)
bge.logic.viewp.source = VideoTexture.ImageRender(bge.logic.getSceneList()[0].objects['cs_bloom_cam'])
bge.logic.viewp.source.capsize = [256,256]
bge.logic.viewp.source.background = [0,0,0,0]
#bge.logic.viewp.source.filter
bge.logic.viewp.refresh(True)
I cant get to change the camera source, while the script is running.
Even if its changed,it still renders from the first camera.