mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 01:44:06 -04:00
fix base.movie()
This commit is contained in:
parent
0550b1ec52
commit
0de8ef7f7a
@ -1548,9 +1548,9 @@ class ShowBase(DirectObject.DirectObject):
|
||||
"""
|
||||
movie(namePrefix = 'movie', duration=1.0, fps=30, format='rgb', sd=4)
|
||||
|
||||
Spawn a task to capture a movie using the takeSnapshot function.
|
||||
Spawn a task to capture a movie using the screenshot function.
|
||||
- namePrefix will be used to form output file names (can include
|
||||
path information (e.g. 'I:/beta/frames/myMovie')
|
||||
path information (e.g. '/i/beta/frames/myMovie')
|
||||
- duration is the length of the movie in seconds
|
||||
- fps is the frame rate of the resulting movie
|
||||
- format specifies output file format (e.g. rgb, bmp)
|
||||
@ -1572,7 +1572,7 @@ class ShowBase(DirectObject.DirectObject):
|
||||
else:
|
||||
frameName = state.outputString % state.frameIndex
|
||||
self.notify.info("Capturing frame: " + frameName)
|
||||
takeSnapshot(self.win, frameName )
|
||||
self.win.saveScreenshot(Filename(frameName))
|
||||
state.frameIndex += 1
|
||||
return Task.cont
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user