<div dir="ltr">Hi,<br>The patch is finished, and ready for testers.<br><div><div><br><div>You can get the code from github:<br><a href="https://github.com/dfelinto/blender-svn/tree/photoshop_psd">https://github.com/dfelinto/blender-svn/tree/photoshop_psd</a><br>

<br>Or as a plain patch:</div><div><a href="http://www.pasteall.org/45865">http://www.pasteall.org/45865</a><br></div><div><br></div><div>Photoshop sample files:</div><div><a href="https://github.com/OpenImageIO/oiio-images">https://github.com/OpenImageIO/oiio-images</a><br>

</div><div><br>What works:</div><div>=========<br>* 8bit images (with or without alpha)</div><div>* 16bits images (alpha discarded)</div><div>* Photoshop files saved with &#39;Maximum Compatibility&#39;</div><div><br></div>

<div>Render internal, BGE and Blenderplayer work.</div><div>Cycles works *but* has alpha issues.</div><div>Thumbnails work well when the image has alpha and is 8bit.<br><br>Blender takes only the &#39;composed&#39; layer of the photoshop file (like a flat version of the file).</div>

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

<div>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).</div>

<div><br></div><div>For developer/curious minds:</div><div>======================</div><div>PSD Value Grid: <a href="http://goo.gl/FBMiuC">http://goo.gl/FBMiuC</a><br></div><div>PSD Alpha Formula : <a href="http://goo.gl/DyNXDT">http://goo.gl/DyNXDT</a></div>

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

<div><br></div><div><br></div><div>Best regards,</div><div>Dalai<br></div><div class="gmail_extra"><div>--<br><a href="http://blendernetwork.org/dalai-felinto" target="_blank">blendernetwork.org/dalai-felinto</a><br><a href="http://www.dalaifelinto.com" target="_blank">www.dalaifelinto.com</a></div>

</div></div>