You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue description
I'm implementing glTF exporter with using tinygltf. I need to make tinygltf write each image to separate png files.
On exporting models png files are not created.
Writing images to a file(i.e. do not embed images) is not well documented and supported.
Currently you'll need to set the pointer to FsCallback as a user_data through SetImageWriter()
There is a room for improving implementation(Use FsCallback from SetFsCallbacks) and documentation.
Contribution is welcome!
Issue description
I'm implementing glTF exporter with using tinygltf. I need to make tinygltf write each image to separate png files.
On exporting models png files are not created.
To Reproduce
I include tinygltf this way:
Then write all needed data to tinygltf::Image:
To save models I call WriteGhtfSceneToFile with these parameters:
As a result I see 2 files (png files are not created):
On exporting I have this call stack:
fsPtr is nullptr because this->write_image_user_data_ is nullptr.
Is there a description or an example how png files can be created?
The text was updated successfully, but these errors were encountered: