Hi,
I’ve been experimenting with HDR and bloom, but the bloom filter won’t work
Here is my code:
import direct.directbase.DirectStart
from direct.actor import Actor
from pandac.PandaModules import *
from direct.filter.CommonFilters import *
camera = base.trackball.node()
filters = CommonFilters(base.win, base.cam)
panda = loader.loadModel('panda-model')
panda.setScale(0.05)
panda.setPos(0,0,-15)
panda.reparentTo(render)
camera.setPos(0,75,0)
alight = AmbientLight('alight')
alight.setColor(VBase4(0.2, 0.2, 0.2, 1))
alnp = render.attachNewNode(alight)
render.setLight(alnp)
plight = PointLight('plight')
plight.setColor(VBase4(1,1,1,1))
plnp = render.attachNewNode(plight)
plnp.setPos(10,-10,10)
render.setLight(plnp)
render.setAttrib(LightRampAttrib.makeHdr1())
render.setShaderAuto()
filters.setBloom(blend=(0,0,0,1))
run()
when I try to run this code the panda window comes up but then Vista says “python.exe has stopped working”, but when I comment out filters.setBloom(blend=(0,0,0,1)) it works perfectly