Re: [Interest] [qt3d] Loading textures from a custom file format

2016-06-17 Thread Xavier Bigand
I finally make it works, but I am not sure to do everything correctly. Firslty I change the way to attach the Texture to the QDiffuseMapMaterial : QDiffuseMapMaterial*material = new QDiffuseMapMaterial(); Texture*diffuseTexture = new Texture(); // Instancing our cust

[Interest] [qt3d] Loading textures from a custom file format

2016-06-17 Thread Xavier Bigand
I am trying to understand how I have to use QAbstractTexture and QAbstractTextureImage to load textures from our custom format. Our format is pretty simple and consist in a compressed file that contains an header with all necessary informations : - texture size - precise texture format (PVRTCI_4