i am trying to make a game for school with panda3d, and my friend (it is a project for 2) made a totally awesomne movie-like thing for when the game starts.
i got it to load and play on a card, but i cant get the card to exactly match the screen size.
class Splashscreen(ShowBase):
def __init__(self):
ShowBase.__init__(self)
self.accept("escape", sys.exit)
props = base.win.getProperties()
winX = props.getXSize()
winY = props.getYSize()
ratio=winX/winY
cm = CardMaker('card')
card = aspect2d.attachNewNode(cm.generate())
tex=loader.loadTexture('Infection Splash Screen.wmv')
tex.setLoopCount(1)
tex.setPlayRate(0.5)
card.setTexture(tex)
card.setPos(-1.8,0,-1)
card.setScale(3.8)
app=Splashscreen()
app.run()
that is the code i currently use. it ALMOST fits.
i am mostly concerned about whether or not this will work on computers with a different resolution, and getting a perfect fit would be nice too.
all help appreciated