在Kindle Fire的HD 8.9&QUOT debuging时stage.stage3Ds是空的; [英] stage.stage3Ds is empty when debuging on Kindle Fire HD 8.9"
问题描述
当我调试我的程序stage.stage3Ds为空(长度为0),这给了我一个错误,当我尝试使用它进行编程。当我把一个新的Stage3D上stage.stage3Ds,然后使用requestContext3D()函数,我从来没有得到过context3d_create事件,让我向前移动程序
在<一个href="http://help.adobe.com/en_US/air/build/WSfffb011ac560372f2fea1812938a6e463-8000.html#WS99d2e2affb7f39bd-2d75e77d134e7ea3560-8000"相对=nofollow> Adobe AIR应用程序描述XML文件,设置以下内容:
&LT; renderMode&GT;直接&LT; / renderMode&GT;
&LT; depthAndStencil&GT;真&LT; / depthAndStencil&GT;
渲染模式
指定是否使用图形处理单元(GPU)加速, 如果当前计算设备上支持的
为了充分利用Flash内容与空气中的GPU加速 移动平台,Adobe建议使用renderMode =直接 (即,Stage3D的),而不是renderMode =GPU。的Adobe正式 支持和建议以下基于Stage3D的框架: 八哥(2D)和Away3D中(3D)。有关Stage3D的更多细节 德裕/ Away3D中,见 http://gaming.adobe.com/getstarted/ 。
深度及模板
表示应用程序要求使用深度或 模板缓存。您通常使用的3D工作时使用这些缓冲区 内容。默认情况下,该元素的值是假的禁用 深度及模板缓冲区。这个元素是必要的,因为 缓冲区必须分配在应用程序启动时,任何内容之前 负荷。
该元素的设置必须通过该值相匹配 enableDepthAndStencil参数传递给Context3D.configureBackBuffer() 方法。如果这两个值不匹配,空气将发出错误
此元素是仅适用于当renderMode =直接。如果 renderMode不等于直接,ADT会抛出错误118:
when i debug my program stage.stage3Ds is empty ( length 0 ) this gives me an error when i try to use it for programming. When I push a new Stage3D on to stage.stage3Ds and then use the requestContext3D() function, I never get the context3d_create event that allows me to move forward with program
In the Adobe AIR Application Descriptor XML file, set the following elements:
<renderMode>direct</renderMode>
<depthAndStencil>true</depthAndStencil>
Render Mode
Specifies whether to use graphics processing unit (GPU) acceleration, if supported on the current computing device.
In order to leverage GPU acceleration of Flash content with AIR for mobile platforms, Adobe recommends that you use renderMode="direct" (that is, Stage3D) rather than renderMode="gpu". Adobe officially supports and recommends the following Stage3D based frameworks: Starling (2D) and Away3D (3D). For more details on Stage3D and Starling/Away3D, see http://gaming.adobe.com/getstarted/.
Depth and stencil
Indicates that the application requires the use of the depth or stencil buffer. You typically use these buffers when working with 3D content. By default, the value of this element is false to disable the depth and stencil buffers. This element is necessary because the buffers must be allocated on application startup, before any content loads.
The setting of this element must match the value passed for the enableDepthAndStencil argument to the Context3D.configureBackBuffer() method. If the values do not match, AIR issues an error.
This element is only applicable when renderMode = direct. If renderMode does not equal direct, ADT throws error 118:
这篇关于在Kindle Fire的HD 8.9&QUOT debuging时stage.stage3Ds是空的;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!