Panda3D
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
CommonFilters Class Reference

Public Member Functions

def __init__ (self, win, cam)
 
def cleanup (self)
 
def delAmbientOcclusion (self)
 
def delBloom (self)
 
def delBlurSharpen (self)
 
def delCartoonInk (self)
 
def delGammaAdjust (self)
 
def delHalfPixelShift (self)
 
def delInverted (self)
 
def delViewGlow (self)
 
def delVolumetricLighting (self)
 
def reconfigure (self, fullrebuild, changed)
 
def setAmbientOcclusion (self, numsamples=16, radius=0.05, amount=2.0, strength=0.01, falloff=0.000002)
 
def setBloom (self, blend=(0.3, 0.4, 0.3, 0.0), mintrigger=0.6, maxtrigger=1.0, desat=0.6, intensity=1.0, size="medium")
 
def setBlurSharpen (self, amount=0.0)
 
def setCartoonInk (self, separation=1, color=(0, 0, 0, 1))
 
def setGammaAdjust (self, gamma)
 
def setHalfPixelShift (self)
 
def setInverted (self)
 
def setViewGlow (self)
 
def setVolumetricLighting (self, caster, numsamples=32, density=5.0, decay=0.1, exposure=0.1, source="color")
 
def update (self, task=None)
 

Public Attributes

 bloom
 
 blur
 
 configuration
 
 finalQuad
 
 manager
 
 ssao
 
 task
 
 textures
 

Static Public Attributes

def del_ambient_occlusion = delAmbientOcclusion
 
def del_bloom = delBloom
 
def del_blur_sharpen = delBlurSharpen
 
def del_cartoon_ink = delCartoonInk
 
def del_gamma_adjust = delGammaAdjust
 
def del_half_pixel_shift = delHalfPixelShift
 
def del_inverted = delInverted
 
def del_view_glow = delViewGlow
 
def del_volumetric_lighting = delVolumetricLighting
 
def set_ambient_occlusion = setAmbientOcclusion
 
def set_bloom = setBloom
 
def set_blur_sharpen = setBlurSharpen
 
def set_cartoon_ink = setCartoonInk
 
def set_gamma_adjust = setGammaAdjust
 
def set_half_pixel_shift = setHalfPixelShift
 
def set_inverted = setInverted
 
def set_view_glow = setViewGlow
 
def set_volumetric_lighting = setVolumetricLighting
 

Detailed Description

Class CommonFilters implements certain common image postprocessing
filters.  The constructor requires a filter builder as a parameter. 

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  win,
  cam 
)

Member Function Documentation

◆ cleanup()

def cleanup (   self)

◆ delAmbientOcclusion()

def delAmbientOcclusion (   self)

◆ delBloom()

def delBloom (   self)

◆ delBlurSharpen()

def delBlurSharpen (   self)

◆ delCartoonInk()

def delCartoonInk (   self)

◆ delGammaAdjust()

def delGammaAdjust (   self)

◆ delHalfPixelShift()

def delHalfPixelShift (   self)

◆ delInverted()

def delInverted (   self)

◆ delViewGlow()

def delViewGlow (   self)

◆ delVolumetricLighting()

def delVolumetricLighting (   self)

◆ reconfigure()

def reconfigure (   self,
  fullrebuild,
  changed 
)
Reconfigure is called whenever any configuration change is made. 

◆ setAmbientOcclusion()

def setAmbientOcclusion (   self,
  numsamples = 16,
  radius = 0.05,
  amount = 2.0,
  strength = 0.01,
  falloff = 0.000002 
)

◆ setBloom()

def setBloom (   self,
  blend = (0.3,0.4,0.3,0.0),
  mintrigger = 0.6,
  maxtrigger = 1.0,
  desat = 0.6,
  intensity = 1.0,
  size = "medium" 
)

◆ setBlurSharpen()

def setBlurSharpen (   self,
  amount = 0.0 
)
Enables the blur/sharpen filter. If the 'amount' parameter is 1.0, it will not have effect.
A value of 0.0 means fully blurred, and a value higher than 1.0 sharpens the image.

◆ setCartoonInk()

def setCartoonInk (   self,
  separation = 1,
  color = (0, 0, 0, 1) 
)

◆ setGammaAdjust()

def setGammaAdjust (   self,
  gamma 
)
Applies additional gamma correction to the image.  1.0 = no correction. 

◆ setHalfPixelShift()

def setHalfPixelShift (   self)

◆ setInverted()

def setInverted (   self)

◆ setViewGlow()

def setViewGlow (   self)

◆ setVolumetricLighting()

def setVolumetricLighting (   self,
  caster,
  numsamples = 32,
  density = 5.0,
  decay = 0.1,
  exposure = 0.1,
  source = "color" 
)

◆ update()

def update (   self,
  task = None 
)
Updates the shader inputs that need to be updated every frame.
Normally, you shouldn't call this, it's being called in a task.

Member Data Documentation

◆ bloom

bloom

◆ blur

blur

◆ configuration

configuration

◆ del_ambient_occlusion

def del_ambient_occlusion = delAmbientOcclusion
static

◆ del_bloom

def del_bloom = delBloom
static

◆ del_blur_sharpen

def del_blur_sharpen = delBlurSharpen
static

◆ del_cartoon_ink

def del_cartoon_ink = delCartoonInk
static

◆ del_gamma_adjust

def del_gamma_adjust = delGammaAdjust
static

◆ del_half_pixel_shift

def del_half_pixel_shift = delHalfPixelShift
static

◆ del_inverted

def del_inverted = delInverted
static

◆ del_view_glow

def del_view_glow = delViewGlow
static

◆ del_volumetric_lighting

def del_volumetric_lighting = delVolumetricLighting
static

◆ finalQuad

finalQuad

◆ manager

manager

◆ set_ambient_occlusion

def set_ambient_occlusion = setAmbientOcclusion
static

◆ set_bloom

def set_bloom = setBloom
static

◆ set_blur_sharpen

def set_blur_sharpen = setBlurSharpen
static

◆ set_cartoon_ink

def set_cartoon_ink = setCartoonInk
static

◆ set_gamma_adjust

def set_gamma_adjust = setGammaAdjust
static

◆ set_half_pixel_shift

def set_half_pixel_shift = setHalfPixelShift
static

◆ set_inverted

def set_inverted = setInverted
static

◆ set_view_glow

def set_view_glow = setViewGlow
static

◆ set_volumetric_lighting

def set_volumetric_lighting = setVolumetricLighting
static

◆ ssao

ssao

◆ task

task

◆ textures

textures