ATF Not Working

Software: Away3D 4.x

rockfed, Newbie
Posted: 25 July 2013 06:54 PM   Total Posts: 6

I am using the latest png2atf converter from Adobe (Win 64).  However I am unable to load any of the ATF’s that I produce into Away3D (4.1.4 Gold).  They load fine in ATFViewer but it totally craps out in Away3D.  I’m embedding the ATF and loading it just like in this tutorial:

http://away3d.com/tutorials/Introduction_to_ATF_Textures

I tried loading an ATF from the Sponza example (fire.atf) and that loaded fine in my code.  It’s weird but I am unable to load that same fire.atf in the current ATFViewer.  Has anyone experienced issues with loading ATF’s into Away3D?  Any possible solutions?

   

rockfed, Newbie
Posted: 26 July 2013 10:05 AM   Total Posts: 6   [ # 1 ]

It looks like this may be a ATF version issue:

http://forums.adobe.com/thread/1254937?tstart=0

What ATF version does Away3D 4.1.4 Gold support?

   

Jon, Newbie
Posted: 29 August 2013 01:24 PM   Total Posts: 7   [ # 2 ]

Same problem here… using ATFTools png2atf from GamingSDK 1.2 doesn’t work with Away3D 4.1.4 Gold.

And the “cubemap” export with prior ATFTools png2atf doesnt work well for PVTRC and ETC formats.

https://github.com/away3d/away3d-core-fp11/issues/608

Any fix ?

Thanx a lot.

   

John Brookes, Moderator
Posted: 29 August 2013 05:35 PM   Total Posts: 732   [ # 3 ]

Until bug is fixed…

Overite your existing ATFData.as with this
https://raw.github.com/daiwei1999/away3d-core-fp11/fb6f5b5a2cc3f1d172b4427827a746d57e0617b8/src/away3d/textures/ATFData.as

That will get rid of the error for textures 2048 or lower.

Higher than 2048, other things need fixing.

   

Jon, Newbie
Posted: 30 August 2013 07:09 AM   Total Posts: 7   [ # 4 ]

Working. Thanks a lot !

   

Jon, Newbie
Posted: 30 August 2013 07:30 AM   Total Posts: 7   [ # 5 ]
Jon - 30 August 2013 07:09 AM

Working. Thanks a lot !

I replied too quickly… it is not working. Got another error :

[Fault] exception, information=ArgumentError: Error #3677: Texture decoding failed. Internal error.

My file is a cubemap based on 1024*1024 images and working with ATFViewer 0.6.

The error is generated by the internal CubeTexture class when ATFCubeTexture calls this line :

CubeTexture(texture).uploadCompressedTextureFromByteArray(_atfData.data, 0, false);

Any suggestion ?

   

Jon, Newbie
Posted: 30 August 2013 08:29 AM   Total Posts: 7   [ # 6 ]

Needed to use Air SDK 3.8. New ATF format working with it…

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X