guillaumechereau / goxel

Goxel: Free and Open Source 3D Voxel Editor
GNU General Public License v3.0
2.82k stars 225 forks source link

Support of colour palettes in .ase format #44

Open YarlBoro opened 7 years ago

YarlBoro commented 7 years ago

Adobe ASE format is common for exchange palettes between graphic design apps and colour palette creation software. Support for loading ASE files would improve colour management in Goxel. Maybe there could be 'Palettes' folder, from which Goxel would load all ASE palettes and add them to ones that are built-in. Here are materials that might be useful while evaluating and (maybe) implementing this feature:

Unofficial format spec (for details of format, scroll below table)
http://www.selapa.net/swatches/colors/fileformats.php

Existing implementations http://www.colourlovers.com/ase.phps https://github.com/hughsk/adobe-swatch-exchange https://github.com/andrewfiorillo/ase-to-sketchpalette/tree/master/js

guillaumechereau commented 7 years ago

OK, I'll try to add this in the future.

YarlBoro commented 7 years ago

Thanks!

guillaumechereau commented 7 years ago

I added support for a 'palettes' directory where we can put 'gpl' palettes. On mac the path would be "/users/yourname/Library/Application Support/Goxel/palettes/"

I haven't checked the ASE format yet though. Any source to a C implementation of a loader?

YarlBoro commented 7 years ago

Thank you, this will come in handy! I’ve found this page: http://carl.camera/default.aspx?id=109

I think it’s more compact discription of ASE spec, than in links that I posted earlyer. I’ll keep on looking for C implementation of loader.

axredneck commented 5 years ago

Where can i find a list of palette formats currently supported by Goxel?

YarlBoro commented 5 years ago

I think you can only use Gimp .gpl and Build Engine .dat files

guillaumechereau commented 5 years ago

Yes, for the moment. Do you need other formats?

YarlBoro commented 5 years ago

Since Axredneck seem to be absent...I request again ASE format or/and loading palette from PNG. Thank You!

axredneck commented 5 years ago

I'm not absent i thought he asks you, not me. Loading palette from indexed .png would be good though anybody can extract palette from indexed .png with Gimp and save it as .gpl. For me .gpl and .dat are currently enough.

YarlBoro commented 5 years ago

I thought this is question to both of us. Palettes- yes, that is true. Less convenient, but perfectly fine method.

axredneck commented 5 years ago

Loading palette from indexed png would be especially needed when importing such png.

guillaumechereau commented 5 years ago

I just added support for png palettes. It should work by adding any png file into the palettes folder. Let me know if that doesn't work.

YarlBoro commented 5 years ago

Very useful addition, thanks! I will try later to compile latest version and will get back with results.

YarlBoro commented 5 years ago

Seem to work perfectly. I used couple of PNGs and they were used as palettes in Goxel. No issues so far. Thanks again!