mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -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)
|
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
|
- 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
|
- duration is the length of the movie in seconds
|
||||||
- fps is the frame rate of the resulting movie
|
- fps is the frame rate of the resulting movie
|
||||||
- format specifies output file format (e.g. rgb, bmp)
|
- format specifies output file format (e.g. rgb, bmp)
|
||||||
@ -1572,7 +1572,7 @@ class ShowBase(DirectObject.DirectObject):
|
|||||||
else:
|
else:
|
||||||
frameName = state.outputString % state.frameIndex
|
frameName = state.outputString % state.frameIndex
|
||||||
self.notify.info("Capturing frame: " + frameName)
|
self.notify.info("Capturing frame: " + frameName)
|
||||||
takeSnapshot(self.win, frameName )
|
self.win.saveScreenshot(Filename(frameName))
|
||||||
state.frameIndex += 1
|
state.frameIndex += 1
|
||||||
return Task.cont
|
return Task.cont
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user