scopic Posted August 28, 2020 Share Posted August 28, 2020 Hello, When I attempt to load materials exported from Unigine Editor that is part of latest version of Unigine SDK, I get errors in console related to DDS textures: ImageFile::load(): unknown format of "guid://ec6ba53b447ed95e7ba9712513bb7040e1ed269f" file Materials that are exported from earlier version of editor doesn't seem to have this issue. Could you advise on this issue? Thanks in advance Link to comment
morbid Posted August 29, 2020 Share Posted August 29, 2020 Hi, I'd like to clarify: How you're loading exported material? There's no generic functionality for material export :) Which SDK versions you're working with? Could you please attach a problematic material file with used dds textures? Thanks. How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
scopic Posted August 29, 2020 Author Share Posted August 29, 2020 Thanks for your prompt response. 1. We have Unigine integrated into a C++/Qt project. We import FBX into Editor, export it as .mesh and also copy the material files that editor generates into our app to use as a built-in library of 3D meshes. We also add new resources to guids.db using some Python script. We don't use .node or .world files from editor. Mesh loading is then done by a code similar to this one: auto mesh = Unigine::Mesh::create(); mesh->load(filePath); we then create a mesh node and assign materials via Unigine::Object::setMaterial() call by iterating through all surfaces of a given mesh. 2. We are using 2.12.0.2 Engineering edition. These DDS texture loading related issues popped up after upgrading from 2.10.0.2 to 2.12.0.2 recently 3. Attached is the wooden chair model exported from Unigine editor that is part of 2.12.0.2 SDK. When loading these materials we get this error in console: ImageFile::load(): unknown format of "guid://0e29fdb77686bfaaa93e6b012655c86cef3128db" file wooden_chair.rar Link to comment
scopic Posted August 29, 2020 Author Share Posted August 29, 2020 We just discovered a bug causing the above issue. GUIDs for DDS textures were different in guids.db and .mat files that referenced them :) So the issue was on our side. Thanks for your help, morbid! Link to comment
Recommended Posts