UE5:导入数据驱动动画的CSV
我想知道UE5是否可以支持DB/CSV的50K+行,因为它们会依赖整个动画的参数。 (坐标[X,Y,Z],Timedelta,速度,制动) 任何文档都非常感谢
I was wondering if UE5 can support 50k+ lines of a db/CSV as they rappresent the parameters of the whole animation. (coordinates[x,y,z], TimeDelta, Speed, Brake)
Any documentation is very much appreciated
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
对于这个极其特定的用例,引擎本身没有现有的功能。当然,如果您使用引擎中的许多可用工具编写自定义解决方案,它可以“支持”它。
您可以使用
IFileHandle
在文件(您的 csv)中进行流式传输:link然后,您可以解析传入的数据以创建坐标的
FVector3
,即float
您的 TimeDelta 等。例如,FVector::InitFromString
可能会有所帮助:link但是,这在很大程度上取决于数据的格式。将字符串/文本解析为值并不是 UE4 特有的,您可以找到很多有关将二进制/字符数据流转换为所需值的信息。
在读取数据时应用动画是一项单独的、相当大的任务。由于您没有提供有关动画数据代表什么或需要将其应用到什么方面的详细信息,因此我无法真正提供帮助。
但总的来说,将问题分解为 3-4 个独立的、更具体的问题会对您有很大帮助。但无论如何,这是一项需要大量研究和工作的任务。
甚至在此之前,最好研究替代方法并更改管道,以避免使用此类非标准文件结构进行动画。
There is no existing functionality in the engine itself for this extremely specific use case. Of course, it can "support" it if you write a custom solution using the many available tools within the engine.
You can use
IFileHandle
to stream in a file (your csv): linkYou can then parse the incoming data to create a
FVector3
of your coordinates, afloat
of your TimeDelta, etc. For example,FVector::InitFromString
may help: linkHowever, this depends very much on the format of your data. Parsing string/texts into values is not specific to UE4, you can find a lot of info on converting streams of binary/character data to needed values.
Applying the animation as the data is read is a separate, quite big, task. Since you provide no details on what the animation data represents, or what you need to apply it to, I cannot really help.
In general though, it can help you a lot to break down your question into 3-4 separate, more specific, questions. In any case though, this is a task that will require a lot of research and work.
And even before that, it might be good to research alternative approaches and changing the pipeline, to avoid using such non-standard file structures for animation.