Giter Site home page Giter Site logo

Comments (3)

slipher avatar slipher commented on August 15, 2024 1

A few years ago Unity open-sourced a version of Crunch with a redesigned file format with better efficiency. Daemon engine adopted these changes. The new Unity file format/tools are mutually incompatible with the original ones from Binomial (which Unity 5 presumably uses since it predates the new format).

You might be able to unpack older files by checking out e.g. the upstream/binomial branch.

from crunch.

illwieckz avatar illwieckz commented on August 15, 2024 1

Hi, it looks like the provided file is using the old CRN format by Binomial, as I verified I could convert the CRN file to PNG using old Binomial crunch tool.

Unfortunately when Unity improved the crunch tool it breaks the compatibility with old Binomial format, and I doubt they put some ways to identify the versions, so this is very unlikely a single tool can read both easily (and without the user telling what format it is).

What you can do is to use two versions of crunch, rename the old one with another name (like crunch-binomial).

So you can do:

crunch-binomial 'file.crn' -out 'file.png'
crunch 'file.png' -out 'file.crn'

Unfortunately this will not provide a 1:1 copy (but good enough) because it would be lossy compressed a second time. We did that for our game with a couple of old files we didn't have png source for and that was fine.

Note that if some of the original crunch files were using specific storage formats (like when using the -dxn option, basically normal maps without height maps in alpha channel), you may want to use the same option to reduce the risk of losing some bits of information.

from crunch.

illwieckz avatar illwieckz commented on August 15, 2024 1

I just verified that your old crunch.exe is the old binary that was shipped within old crunch repository at google code by Binomial (committed 2012-11-25), they share the exact same checksum.

So you may rename it to crunch-binomial.exe and convert all your old crn files to png using it, then convert all those png to crn again using a new build of crunch (from this repository or Unity one).

from crunch.

Related Issues (13)

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.