MaoXianMaoXian Posted August 8, 2017 Share Posted August 8, 2017 Hi,I have used the 3ds max exporter to export babylon meshes, but value of v in uvs data always +1. The export uvs data like the following: "uvs":[1.0,1.0,1.0,2.0,0.0,2.0,0.0,1.0,0.0,1.0,1.0,1.0,1.0,2.0,0.0,2.0...], But I need the following: "uvs":[1.0,0.0,1.0,1.0,0.0,1.0,0.0,0.0,0.0,0.0,1.0,0.0,1.0,1.0,0.0,1.0...], What should I do to fix it? Platform: Windows 10, Autodesk 3ds Max 2013 32-bit, 3ds max exporter with babylon get from github Max2Babylon-0.10.0.zip. I'm hard working on my English. If I don't explain my question, the following be in Chinese: 我使用babylon的3dsmax导出插件导出了babylon的模型,但是uvs数据中v值总是+1。 导出的uv数据是这样的: "uvs":[1.0,1.0,1.0,2.0,0.0,2.0,0.0,1.0,0.0,1.0,1.0,1.0,1.0,2.0,0.0,2.0...], 我要的数据是这样的: "uvs":[1.0,0.0,1.0,1.0,0.0,1.0,0.0,0.0,0.0,0.0,1.0,0.0,1.0,1.0,0.0,1.0...], 我该如何得到我要的数据? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted August 8, 2017 Share Posted August 8, 2017 As you can see here: https://github.com/BabylonJS/Babylon.js/blob/master/Exporters/3ds Max/Max2Babylon/Exporter/BabylonExporter.Mesh.cs#L410 UV are exported directly from 3dsMax values. 3dsMax also uses concept of tiling for textures (which is exported here: https://github.com/BabylonJS/Babylon.js/blob/master/Exporters/3ds Max/Max2Babylon/Exporter/BabylonExporter.Texture.cs#L185) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.