简体   繁体   English

怎么把.obj文件转换成.h文件?

[英]how convert .obj file in .h file?

"I am trying to develop a game like fruit Slayer . I have code of that but I want to replace fruit to our objects,how to create them in 3d ." “我正在尝试开发一个类似于水果杀手的游戏。我有代码,但是我想将水果替换为我们的对象,以及如何在3d中创建它们。” fruit 3d .h file like as : ** static const TexturedVertexData3D GreenappleVertexData[] = { {/ v: /{0.896683, 0.257172, 30.407585}, / n: /{0.073519, 0.000000, 0.997284}, / t: /{0.307720, 0.987318}}, ** 水果3d .h文件,例如:**静态const TexturedVertexData3D GreenappleVertexData [] = {{/ v: /{0.896683,0.257172,30.407585},/ n: / { 0.073519,0.000000,0.997284},/ t: /{0.307720, 0.987318}},**

Don't! 别! Period, no discussion. 期间,无讨论。

Implement a parser/loader for your .obj file and read the model from that one. 为您的.obj文件实现一个解析器/加载器,并从该文件中读取模型。 You can bundle files for iOS and Android apps. 您可以捆绑iOS和Android应用程序的文件。

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

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