搜尋文章

2012年10月5日 星期五

android-Too large bitmap to be uploaded into a texture

今天遇到了一個問題是開啟了硬體加速後在imageView裡面塞圖片後發現畫面一片黑,
看了log他寫 Too large bitmap to be uploaded into a texture
上網查了一下原因找到這一篇文章
 Too large bitmap to be uploaded into a texture
看來也有人遇到同樣的問題,裡面的回答是
When using hardware acceleration, there is a limit to the size of a texture.
When you render a bitmap, it has to be uploaded to an OpenGL texture first.
Your bitmap happens to be bigger than the maximum texture size on Xoom (2048x2048.)
You need to use a smaller bitmap or split it into several bitmaps.
所以解答就是把圖縮小到2048之內吧 ! !

2012年2月28日 星期二

Alternativa3D 8.17.0 環境設置

1.先到Alternativa的官網下載Alternativa3D 8.17.0的SWC。

2.下載FlashPlayer11 Standalone Debuggers找到Flash Player 11.2 Beta 32-bit Standalone Debuggers,
點選Download standalone for Windows (EXE, 9.0 MB),這個連結是windows的如果是其他作業系統的話請至adobe labs下載。

3.下載Flash Player 11.2 Beta Global SWC,一樣可在adobe labs下載。

4. 到此路徑Adobe Flash CS5.5\Common\Configuration\ActionScript 3.0底下新建一個資料夾名稱取為FP11,再將下載的 Flash Player 11.2 Beta Global SWC放到資料夾裡並且更改檔名為playerglobal.swc

5. 新增FlashPlayer11.xml
至此路徑下Adobe Flash CS5.5\Common\Configuration\Players先複製一份FlashPlayer10_2.xml,並且更名為FlashPlayer11.xml,之後打開文件修改,將第三行修改為
<player id="FlashPlayer11" version="13" asversion="3">,第四行修改為 <name>Flash Player 11</name>,第8行<playerDefinitionPath>標籤裡的as3屬性修改為"$(AppConfig)/ActionScript 3.0/FP11/playerglobal.swc" 這邊的路徑就是第四點新增資料夾的路徑。

6. 放置debugger,將第二點下載的FlashPlayer11 Standalone Debuggers修改檔名為
 FlashPlayerDebugger.exe放到此路徑下Adobe Flash CS5.5\Players\Debug

7.開啟flash,點選編輯/偏好設定/ actionScript/actionScript3.0設定,在元件庫路徑下新增第一點下載的Alternativa3D 8.17.0的SWC。

 8.打開A3D的DEMO檔案,記得A3D要發布的時候要按住ctrl+shift+enter用Debugger的player發布才會有stage3D,如果單點swf檔也要用flashPlayer11看的話來這下載吧連結,下載 Windows Flash Player 11.1 Projector content debugger (EXE, 8.91MB)這個檔案,然後指定swf永久用這個player開啟就可以了~