是否可以使用 Heaps 游戏引擎逐帧控制 3D 动画的播放?

Is it possible to control playing of 3D animation frame by frame using the Heaps game engine?

有人使用 heaps 游戏引擎吗?

  1. 是否可以通过编程控制逐帧播放3D动画,如何实现? 我试过这样做:anim.frame = 10; 但没有效果。
  2. 我想做的是将 3D 动画转换为 2D 序列动画,就像 DeadCells 所做的那样。我的想法只是使用堆框架将 3D 动画的每一帧渲染为图像。这可能吗?
  3. 有人可以分享一些关于堆中使用的各种坐标空间的基础知识吗?

非常感谢!

为了这个问题的完整性和其他问题的方便,我想将 Yanrishatum 的答案从 Discord 复制到这里,正如@Gama11 在评论中指出的那样:

  1. myObj.currentAnimation.setFrame
  2. Object.drawTo onto Texture. Make use Target flag when allocating the texture. Then you can capturePixels to extract result from GPU to RAM, then toPNG method of Pixels should give png bytes which can be stored to fs.
  3. Question too vague. There's screen space, which is basically only used in events before you pass thsoe to specific Scene. Then there's Scene coordinate space. 2d and 3d scenes use their own (what a surprise). For 3D, Z is up, contrary to many engines that has Y-up orientation.