air - stage.stage3Ds is empty when debuging on Kindle Fire HD 8.9" -
when debug program stage.stage3ds empty ( length 0 ) gives me error when try use programming. when push new stage3d on stage.stage3ds , use requestcontext3d() function, never context3d_create event allows me move forward program
in adobe air application descriptor xml file, set following elements:
<rendermode>direct</rendermode> <depthandstencil>true</depthandstencil> render mode
specifies whether use graphics processing unit (gpu) acceleration, if supported on current computing device.
in order leverage gpu acceleration of flash content air mobile platforms, adobe recommends use rendermode="direct" (that is, stage3d) rather rendermode="gpu". adobe officially supports , recommends following stage3d based frameworks: starling (2d) , away3d (3d). more details on stage3d , starling/away3d, see http://gaming.adobe.com/getstarted/.
depth , stencil
indicates application requires use of depth or stencil buffer. typically use these buffers when working 3d content. default, value of element false disable depth , stencil buffers. element necessary because buffers must allocated on application startup, before content loads.
the setting of element must match value passed enabledepthandstencil argument context3d.configurebackbuffer() method. if values not match, air issues error.
this element applicable when rendermode = direct. if rendermode not equal direct, adt throws error 118:
Comments
Post a Comment