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

Public Member Functions

def __init__ (self, loader, model=None, scale=3.0, pos=Vec3(0, 0, 0))
 
def __del__ (self)
 
def fadeIn (self, t=0.5, finishIval=None, blendType='noBlend')
 
def fadeOut (self, t=0.5, finishIval=None, blendType='noBlend')
 
def fadeOutActive (self)
 
def fadeScreen (self, alpha=0.5)
 
def fadeScreenColor (self, color)
 
def getFadeInIval (self, t=0.5, finishIval=None, blendType='noBlend')
 
def getFadeOutIval (self, t=0.5, finishIval=None, blendType='noBlend')
 
def irisIn (self, t=0.5, finishIval=None, blendType='noBlend')
 
def irisOut (self, t=0.5, finishIval=None, blendType='noBlend')
 
def letterboxOff (self, t=0.25, finishIval=None, blendType='noBlend')
 
def letterboxOn (self, t=0.25, finishIval=None, blendType='noBlend')
 
def loadFade (self)
 
def loadIris (self)
 Iris. More...
 
def loadLetterbox (self)
 Letterbox. More...
 
def noFade (self)
 
def noIris (self)
 
def noLetterbox (self)
 
def noTransitions (self)
 
def setFadeColor (self, r, g, b)
 
def setFadeModel (self, model, scale=1.0)
 Fade. More...
 

Public Attributes

 alphaOff
 
 alphaOn
 
 fade
 
 fadeModel
 
 fadeTaskName
 
 imagePos
 
 iris
 
 irisTaskName
 
 lerpFunc
 
 letterbox
 
 letterboxBottom
 
 letterboxIval
 
 letterboxTaskName
 
 letterboxTop
 
 transitionIval
 

Static Public Attributes

string FadeModelName = "models/misc/fade"
 
string IrisModelName = "models/misc/iris"
 

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  loader,
  model = None,
  scale = 3.0,
  pos = Vec3(0, 0, 0) 
)

◆ __del__()

def __del__ (   self)

Member Function Documentation

◆ fadeIn()

def fadeIn (   self,
  t = 0.5,
  finishIval = None,
  blendType = 'noBlend' 
)
Play a fade in transition over t seconds.
Places a polygon on the aspect2d plane then lerps the color
from black to transparent. When the color lerp is finished, it
parents the fade polygon to hidden.

◆ fadeOut()

def fadeOut (   self,
  t = 0.5,
  finishIval = None,
  blendType = 'noBlend' 
)
Play a fade out transition over t seconds.
Places a polygon on the aspect2d plane then lerps the color
from transparent to full black. When the color lerp is finished,
it leaves the fade polygon covering the aspect2d plane until you
fadeIn or call noFade.
lerp

◆ fadeOutActive()

def fadeOutActive (   self)

◆ fadeScreen()

def fadeScreen (   self,
  alpha = 0.5 
)
Put a semitransparent screen over the camera plane
to darken out the world. Useful for drawing attention to
a dialog box for instance

◆ fadeScreenColor()

def fadeScreenColor (   self,
  color 
)
Put a semitransparent screen over the camera plane
to darken out the world. Useful for drawing attention to
a dialog box for instance

◆ getFadeInIval()

def getFadeInIval (   self,
  t = 0.5,
  finishIval = None,
  blendType = 'noBlend' 
)
Returns an interval without starting it.  This is particularly useful in
cutscenes, so when the cutsceneIval is escaped out of we can finish the fade immediately

◆ getFadeOutIval()

def getFadeOutIval (   self,
  t = 0.5,
  finishIval = None,
  blendType = 'noBlend' 
)
Create a sequence that lerps the color out, then
parents the fade to hidden

◆ irisIn()

def irisIn (   self,
  t = 0.5,
  finishIval = None,
  blendType = 'noBlend' 
)
Play an iris in transition over t seconds.
Places a polygon on the aspect2d plane then lerps the scale
of the iris polygon up so it looks like we iris in. When the
scale lerp is finished, it parents the iris polygon to hidden.

◆ irisOut()

def irisOut (   self,
  t = 0.5,
  finishIval = None,
  blendType = 'noBlend' 
)
Play an iris out transition over t seconds.
Places a polygon on the aspect2d plane then lerps the scale
of the iris down so it looks like we iris out. When the scale
lerp is finished, it leaves the iris polygon covering the
aspect2d plane until you irisIn or call noIris.

◆ letterboxOff()

def letterboxOff (   self,
  t = 0.25,
  finishIval = None,
  blendType = 'noBlend' 
)
Move black bars away over t seconds.

◆ letterboxOn()

def letterboxOn (   self,
  t = 0.25,
  finishIval = None,
  blendType = 'noBlend' 
)
Move black bars in over t seconds.

◆ loadFade()

def loadFade (   self)

◆ loadIris()

def loadIris (   self)

Iris.

◆ loadLetterbox()

def loadLetterbox (   self)

Letterbox.

◆ noFade()

def noFade (   self)
Removes any current fade tasks and parents the fade polygon away

◆ noIris()

def noIris (   self)
Removes any current iris tasks and parents the iris polygon away

◆ noLetterbox()

def noLetterbox (   self)
Removes any current letterbox tasks and parents the letterbox polygon away

◆ noTransitions()

def noTransitions (   self)
This call should immediately remove any and all transitions running

◆ setFadeColor()

def setFadeColor (   self,
  r,
  g,
  b 
)

◆ setFadeModel()

def setFadeModel (   self,
  model,
  scale = 1.0 
)

Fade.

Member Data Documentation

◆ alphaOff

alphaOff

◆ alphaOn

alphaOn

◆ fade

fade

◆ fadeModel

fadeModel

◆ FadeModelName

string FadeModelName = "models/misc/fade"
static

◆ fadeTaskName

fadeTaskName

◆ imagePos

imagePos

◆ iris

iris

◆ IrisModelName

string IrisModelName = "models/misc/iris"
static

◆ irisTaskName

irisTaskName

◆ lerpFunc

lerpFunc

◆ letterbox

letterbox

◆ letterboxBottom

letterboxBottom

◆ letterboxIval

letterboxIval

◆ letterboxTaskName

letterboxTaskName

◆ letterboxTop

letterboxTop

◆ transitionIval

transitionIval