[Bf-gamedev] Photoshop PSD support

Dalai Felinto dfelinto at gmail.com
Thu Sep 26 20:14:58 CEST 2013


Hi,
The patch is finished, and ready for testers.

You can get the code from github:
https://github.com/dfelinto/blender-svn/tree/photoshop_psd

Or as a plain patch:
http://www.pasteall.org/45865

Photoshop sample files:
https://github.com/OpenImageIO/oiio-images

What works:
=========
* 8bit images (with or without alpha)
* 16bits images (alpha discarded)
* Photoshop files saved with 'Maximum Compatibility'

Render internal, BGE and Blenderplayer work.
Cycles works *but* has alpha issues.
Thumbnails work well when the image has alpha and is 8bit.

Blender takes only the 'composed' layer of the photoshop file (like a flat
version of the file).

Todo list:
=======
* OIIO upstream patch to handle PSD alpha (this will fix Cycles).
* Fix thumbnails for images with less than 4 channels.

This feature is aimed at Blender 2.70. However it would nice to get some
feedback to see if this is working with other engines (e.g., if you can
export a model with a PSD texture from Blender and open on Unity).

For developer/curious minds:
======================
PSD Value Grid: http://goo.gl/FBMiuC
PSD Alpha Formula : http://goo.gl/DyNXDT

The alpha was the tricky part because Photoshop doesn't store alpha in the
same way Blender/OIIO expect. Kudos for 'Gez' and Troy for the initial help
on that, and especial thanks for Brecht for nailing the formula down and
the extensive code review.


Best regards,
Dalai
--
blendernetwork.org/dalai-felinto
www.dalaifelinto.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.blender.org/pipermail/bf-gamedev/attachments/20130926/a9e6f4e1/attachment-0001.htm 


More information about the Bf-gamedev mailing list