现在的位置: 首页 > 综合 > 正文

away3d 4.1制作ipad版 高清汽车(解决目前大多数人出现白屏报错问题)

2012年06月02日 ⁄ 综合 ⁄ 共 1501字 ⁄ 字号 评论关闭

挖坑

这是我在移植away3d 高清汽车Demo时候遇到的各种问题 做记录

 

首先,要开发away3d+ios项目,必须注意和确定以下是否设置正确

 

- backgroundAlpha=“0” (Flex s:Application)用flex写才需要
- -swf-version=15 (compiler argument,其他版本就换,支持GPU加速版本)
- <renderMode>direct</renderMode>
- <depthAndStencil>true</depthAndStencil> (false does not work either)
- <requestedDisplayResolution>high</requestedDisplayResolution>(这条仅供参考,建议不加,flex可以考虑加)
- <fullScreen>false</fullScreen> (true does not work either)

 

 

 如果设置了<renderMode>direct</renderMode>

 那么记得必须一定要设置<depthAndStencil>true</depthAndStencil> 因为在view3d里面必须使用到此。

另外出现视口偏移  <fullScreen>false</fullScreen>就行。 

 

 

1.报错

Error: Error #3709: The depthAndStencil flag in the application descriptor must match the enableDepthAndStencil Boolean passed to configureBackBuffer on the Context3D object.
    at flash.display3D::Context3D/configureBackBuffer()
    at away3d.core.managers::Stage3DProxy/onContext3DUpdate()[C:\Users\bulolo\Desktop\Frameworks\Away3D\src\away3d\core\managers\Stage3DProxy.as:473]

 3.2,3.3会这样,如果用的是3.2,3.3 那么还需要把away3d  view3d类中的 _stage3DProxy.configureBackBuffer(_width, _height, _antiAlias, true)的最后一个参数设置为false即可。

这可能是away3d4.0bete的bug.建议用away3d4.1  然后记得开启上面两个选项

 

protected function updateBackBuffer() : void
 {
 _stage3DProxy.configureBackBuffer(_width, _height, _antiAlias, true);
 
 _backBufferInvalid = false;
 }

 

 

但3.4修复了 但一定要记得上面几条的修改

 http://away3d.com/forum/viewthread/2172/#6801

  

2012.12.29 第一次测试

 

 2012.12.30 测试小球

 

查出了所有问题。开始把 高清汽车Deom打包到IOS 成功后放出

 

测试1

遇到自带几何体 与加载模型冲突无法显示 未知不知道是否是flash builder 4.7问题

原因:4.7对代码审核更加严格。  解决方法:暂时忽略警告

 

 2013.1.16测试

 

 

附上我打包好的ipa:    http://files.cnblogs.com/bulolo/CarDemoIOS3.rar

抱歉!评论已关闭.