Comments (3)
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.
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.
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)
- Keep some branches for history
- crunch is known to not properly grok all png format variants HOT 1
- On two patches that may attempt to do the same things, what's better? HOT 6
- known macOS fixes to pull HOT 6
- merging to upstream HOT 1
- How to properly compile/decompile DirectDraw Surface [L8] files? HOT 14
- Speed is much slower than with modified (not by me) BinomialLLC 2018 version HOT 5
- Another fix for an issue affecting the encoder on macOS HOT 1
- Make possible to not use fast math HOT 7
- the help of crunch says "-grayscalsampling" without e HOT 1
- Small change to make it compatible with Unity again HOT 10
- Crunch fails to open files on NFS and SSHFS network file systems HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from crunch.