如何将3D对象加载到viewcontroller中?

时间:2017-02-02 18:36:29

标签: ios mysql 3d swift3

我有一个用swift编写的普通iOS应用程序。它不是select FileKey, DTTMSTAMP = (Dateadd(day,0,Datediff(day,0,DTTMSTAMP))) from t group by FileKey, (Dateadd(day,0,Datediff(day,0,DTTMSTAMP))) having count(UniqueID)=2 -- alternately > 1 for all duplicates 应用。我想从Web服务加载opengl上的3D对象。但我有这些问题。

  1. 是否可以将3d对象加载到我现有的iOS应用程序中?
  2. 如果是,那么我应该以哪种格式将3d对象存储在我服务器的MySQL数据库中。
  3. 请帮帮我。 感谢

1 个答案:

答案 0 :(得分:0)

看起来SceneKit正是您所寻找的。它可以加载<?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="www.example.org" targetNamespace="www.example.org"> <xs:element name="itens_pedidos"> <xs:complexType> <xs:sequence> <xs:element name="item" minOccurs="2" maxOccurs="unbounded"> <xs:complexType> <xs:sequence> <xs:element name="produto" type="xs:string"/> <xs:element name="quantidade" type="xs:integer"/> <xs:element name="preco_unit" type="xs:decimal"/> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:schema> 个文件。它们可以存储3D数据,纹理等,并且可以从大多数3D编辑器(例如Blender)导出。