tototototototot

All posts tagged atf

Stage3D: how to setup ND2D to properly use ATF textures

ND2D doesn’t “entirely” support ATF textures (Adobe Texture Format). To solve this problem, just follow those steps: download the latest version of  “AGALMiniAssembler.as” actionscript file from Starling: https://github.com/PrimaryFeather/Starling-Framework/blob/master/starling/src/com/adobe/utils/AGALMiniAssembler.as In “Texture2D.as” of ND2D, add a public variable: [sourcecode language=’as3′]public var textureFormat:String = Context3DTextureFormat.BGRA;[/sourcecode] Always in “Texture2D.as“, add the following code  in the “textureFromATF” function : [sourcecode […]

Stage3D: Error #3606: Sampler 0 format does not match texture format.

I got this error when switching to ATF textures (the new Adobe Texture Format that compresses textures and package it in different format for different systems) in my project. I’m currently using ND2D as a Stage3D framework and it is not being updated anymore. Why do I stick to it is another problem, but I solved it by […]