Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File Returns NULL data #2

Open
xSeditx opened this issue Jul 3, 2019 · 0 comments
Open

File Returns NULL data #2

xSeditx opened this issue Jul 3, 2019 · 0 comments

Comments

@xSeditx
Copy link

xSeditx commented Jul 3, 2019

I have a file that came with the Sponza test scene, Dielectric_metallic.png. When loading it, it returns the correct Channels however the Size returns 0,0 and Data returns as null. I suspect this to do with the File compression since the image is totally black but not 100% sure at the moment.
I opened the file in Windows paint and just resaved it and the file now loads suggesting the format it originally used was not being read by SOIL correctly.

I was loading the image using the following command. Size being the Dimensions,
Data = SOIL_load_image(Filepath.c_str(), &Size.x, &Size.y, &Channels, SOIL_LOAD_AUTO);

[edit] The pure white Metallic_metallic.png also has done the same thing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant