hi,I have a plan to export Model from unity compresss mesh format to Playcanvas,
current I’ve finish unity import/export .
but I want to someone can help this format use for Playcanvas
{
"version": "1.0.0",
"Nodes": [
{
"name": "RootNode",
"Transforms": [
{
"x": 0.0,
"y": 0.0,
"z": 0.0
},
{
"x": 0.0,
"y": 0.0,
"z": 0.0
},
{
"x": 1.0,
"y": 1.0,
"z": 1.0
}
],
"Materials": ["Material1PATH","Material2PATH"],
"MaterialsHash": ["MD5HASH","MD5HASH"],
"Tag": "Untagged",
"layer": 0,
"version": "1.0.0",
"LightmapIndex": -1,
"LightmapLight": -1,
"LightmapDir": "lightmapdir format png",
"lightmapScaleOffSet": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
},
"isStatic": false,
"MeshName": null,
"HasMeshCollider": false,
"index": 0
}
],
/** here is same as playcanvas defined**/
"Parents": [
-1,
0,
1
]
}
/////////////////////////////here is Material relationship json
{
"shaderName": "Standard",
"unityVersion": "5.6.2f1",
"data": [
{
"name": "_Color",
"value": "RGBA(0.588, 0.588, 0.588, 0.000)",
"hash": "",
"Offset": null,
"format": null,
"type": 0,
"Scale": null
},
{
"name": "_MainTex",
"value": "1350 (UnityEngine.Texture2D)",
"hash": "615D9F7C9F87C645111DEF944CB8D4D5",
"Offset": {
"x": 0.0,
"y": 0.0
},
"format": "DXT1",
"type": 4,
"Scale": {
"x": 1.0,
"y": 1.0
}
},
{
"name": "_Cutoff",
"value": "0.5",
"hash": "",
"Offset": null,
"format": null,
"type": 2,
"Scale": null
}
],
"version": "1.0.0",
"texture": null
}
/////-------------------------------------
and the mesh compress from unity wiki
http://wiki.unity3d.com/index.php?title=MeshSerializer
are there anyone have time to finish this function to Playcanvas
I will upload some example file later.