简体   繁体   English

电影院4d到unity3d的脚本化摄像机运动?

[英]scripted camera movement in cinema 4d to unity3d?

I have a scene in cinema 4d, with a camera that moves through the scene. 我在电影院4d中有一个场景,其中有一个在场景中移动的相机。 I was hoping that I could just import the entire cinema4d file into unity3d and I could just magically press play, and the scene would just.. work--camera movement and all. 我希望我可以将整个Cinema4d文件导入到unity3d中,并且我可以神奇地按播放,这样场景就可以正常工作-照相机运动等等。

Well, maybe life is not that easy. 好吧,也许生活并不那么轻松。 Is it even possible to import a camera from cinema into unity? 甚至可以将电影院中的摄像机导入一个摄像机吗?

It would be nice not to have to re-program the camera in unity. 不必统一对摄像机进行编程会很高兴。

Do I have any options? 我有什么选择吗?

The answer is no, there is no "concept of" a camera path you can import to Unity. 答案是否定的,没有可以导入到Unity的相机路径的“概念”。 There is nothing whatsoever like that. 没有什么比这更重要。 (Don't forget, it's a game engine - not an animation or "filmmaking" system really.) (别忘了,它是一个游戏引擎,实际上不是动画或“电影制作”系统。)

Fortunately this is a relatively common problem. 幸运的是,这是一个相对普遍的问题。

The solution is just that you put "any old thing" (say, a white cube) there and import that animation. 解决的方法是将“任何旧东西”(例如,白色立方体)放在此处,然后导入该动画。 Then in Unity it's trivial to just child the camera to that "marker". 然后,在Unity中,仅将相机标记为该“标记”是很简单的。

You can google many examples, 您可以在Google上搜索许多示例,

http://answers.unity3d.com/answers/20413/view.html http://answers.unity3d.com/answers/20413/view.html

try googling say "import camera move to Unity3d" 尝试谷歌搜索说“将相机导入到Unity3d”


BTW I'm sure you're aware of this .. "Unity does not import Point Level Animations (PLA) at the moment. Use Bone-based animations instead." 顺便说一句,我确定您已经意识到这一点。 “目前,Unity尚未导入点级动画(PLA)。请改用基于骨骼的动画。” Doco 多科

Another more hackish workaround; 另一个更棘手的解决方法;

I have once made a scene in Cinema4D which I wanted to use in Unity3d. 我曾经在Cinema4D中制作过一个场景,想在Unity3d中使用。 I ended up employing MOCCA to export the camera's positions and rotation-values on it's keyframes and ended up using coding on the Unity end of things to animate the camera, based on an xml-file. 我最终使用MOCCA在其关键帧上导出了相机的位置和旋转值,最终在xml文件的基础上,使用Unity端的代码对相机进行了动画处理。

However, not having used Cinema4D in a bit; 但是,一点也不使用Cinema4D。 I can't remember for sure if MOCCA is still available? 我不记得MOCCA是否仍然可用? If memory serves me right it got replaced with something... 如果记忆对我有用,它就会被某种东西取代...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM