Giter VIP home page Giter VIP logo

Comments (13)

Guerra24 avatar Guerra24 commented on June 24, 2024

Probably not corrupted, In my system load correctly, Firefox load it from local file and Voxel load with no errors. Updated with a copy from my Dropbox.
EDIT:
Strange, downloaded from GH and can't open, I think that GH or Git damages it at some point, Mmmm...
EDIT 2:
Will be the EOL related to this?. Git trying to convert EOLs in a binary file when uploading causing this....

from voxel.

jlitewski avatar jlitewski commented on June 24, 2024

It could be. I didn't think of that... Might need to exclude assets from the EOL to test and confirm

from voxel.

Guerra24 avatar Guerra24 commented on June 24, 2024

More strange, the other textures load fine. Blocks:
blocks
blocks
These use Unix EOL.

from voxel.

jlitewski avatar jlitewski commented on June 24, 2024

yea I was just confirming that myself, it's only those two images

from voxel.

jlitewski avatar jlitewski commented on June 24, 2024

I'm still getting issues as of commit a6bb8ca, what image editing program are you using for those two files?

from voxel.

Guerra24 avatar Guerra24 commented on June 24, 2024

The images are rendered in Blender, to reduce file size I open it in paint.net and save again, this reduces file size but nothing more.

from voxel.

jlitewski avatar jlitewski commented on June 24, 2024

I'm assuming that all the other images are also opened in paint.net as well? Maybe try just exporting the images from blender to png and see if it still happens? Or use GIMP instead of paint.net? This is a really weird issue, and the first time I've ever seen git destroy a file due to line endings

from voxel.

Guerra24 avatar Guerra24 commented on June 24, 2024

Yes, exporting directly from blender generates a 4mb~8mb file with 32bit depth, this file can't be loaded in Voxel because only supports 16bit depth. I will test with GIMP and see what happens.

from voxel.

jlitewski avatar jlitewski commented on June 24, 2024

Well, with the GLFW rewrite, it's easy to modify the depth bits for the pixelbuffer.

from voxel.

jlitewski avatar jlitewski commented on June 24, 2024

@Guerra24 okay I pushed a quick commit that sets the pixel buffer to 32 bits, see if you can't use that

from voxel.

Guerra24 avatar Guerra24 commented on June 24, 2024

I mean, the image loader that converts the file to an OpenGL texture. That loader don't supports 32 bit (color) depth.

from voxel.

jlitewski avatar jlitewski commented on June 24, 2024

ah, alright. would it be easy to modify it? If not, I know PNGLoader supports 32 bit color depth

from voxel.

Guerra24 avatar Guerra24 commented on June 24, 2024

Fixed. Caused by Git when converting EOLs from Windows to Unix.
Logo
EDIT: Source Stackoverflow

from voxel.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.