Форум Flasher.ru

Форум Flasher.ru (http://www.flasher.ru/forum/index.php)
-   API приложений и сред (http://www.flasher.ru/forum/forumdisplay.php?f=61)
-   -   Создание видеоматериала для Skybox в Flash Develop 4 (http://www.flasher.ru/forum/showthread.php?t=177069)

Sated 23.03.2012 21:39

Вложений: 2
Доброго времени суток
Я решил на новом Away3D 4 сделать Skybox с видеоматериалом на каждой из сторон, причем чтобы все сразу проигрывалось
Код AS3:

public class TestSkyBox extends BaseTest {
 
                public function TestSkyBox() {
                        super();
                }
 
                override protected function initObjects():void {
                        var cubeTexture:VideoTexture = new VideoTexture(new VideoMaterial("../resources/1.swf",256,true,true,null), new VideoMaterial("../resources/2.swf",256,true,true,null), new VideoMaterial("../resources/3.swf",256,true,true,null), new VideoMaterial("../resources/4.swf",256,true,true,null), new VideoMaterial("../resources/5.swf",256,true,true,null), new VideoMaterial("../resources/6.swf",256,true,true,null));
                        var skyBox:SkyBox = new SkyBox(cubeTexture);
                        conteiner.addChild(skyBox);
                }
        }

Проект создаю в Flash Develop 4, как понимаю, для нового Away3D надо компилировать под Flash Player 11,но какую именно версию (11.0, 11.1, 11.2) - не знаю, причем при компиляции возникает ошибка "Build Failed", причем нигде больше нет ничего

я нашел, надо было вытащить файлы из папки src все, но тогда стали возникать другие ошибки:

Код:

E:\Users\acer\Desktop\away3d-core-fp11\src\away3d\textures\TextureProxyBase.as(45): col: 71 Error: Type was not found or was not a compile-time constant: TextureBase.

E:\Users\acer\Desktop\away3d-core-fp11\src\away3d\textures\TextureProxyBase.as(59): col: 46 Error: Type was not found or was not a compile-time constant: TextureBase.

E:\Users\acer\Desktop\away3d-core-fp11\src\away3d\textures\TextureProxyBase.as(95): col: 46 Error: Type was not found or was not a compile-time constant: Context3D.

E:\Users\acer\Desktop\away3d-core-fp11\src\away3d\textures\TextureProxyBase.as(95): col: 59 Error: Type was not found or was not a compile-time constant: TextureBase.

E:\Users\acer\Desktop\away3d-core-fp11\src\away3d\containers\View3D.as(561): col: 47 Error: Type was not found or was not a compile-time constant: Context3D.

E:\Users\acer\Desktop\away3d-core-fp11\src\away3d\core\render\Filter3DRenderer.as(48): col: 70 Error: Type was not found or was not a compile-time constant: Texture.

E:\Users\acer\Desktop\away3d-core-fp11\src\away3d\core\render\Filter3DRenderer.as(101): col: 91 Error: Type was not found or was not a compile-time constant: Texture.

E:\Users\acer\Desktop\away3d-core-fp11\src\away3d\core\managers\RTTBufferManager.as(114): col: 55 Error: Type was not found or was not a compile-time constant: VertexBuffer3D.

E:\Users\acer\Desktop\away3d-core-fp11\src\away3d\core\managers\RTTBufferManager.as(120): col: 54 Error: Type was not found or was not a compile-time constant: VertexBuffer3D.

E:\Users\acer\Desktop\away3d-core-fp11\src\away3d\core\managers\RTTBufferManager.as(126): col: 39 Error: Type was not found or was not a compile-time constant: IndexBuffer3D.

E:\Users\acer\Desktop\away3d-core-fp11\src\away3d\core\managers\Stage3DProxy.as(54): col: 62 Error: Type was not found or was not a compile-time constant: Stage3D.

E:\Users\acer\Desktop\away3d-core-fp11\src\away3d\core\managers\Stage3DProxy.as(66): col: 63 Error: Type was not found or was not a compile-time constant: VertexBuffer3D.

E:\Users\acer\Desktop\away3d-core-fp11\src\away3d\core\managers\Stage3DProxy.as(75): col: 55 Error: Type was not found or was not a compile-time constant: TextureBase.

E:\Users\acer\Desktop\away3d-core-fp11\src\away3d\core\managers\Stage3DProxy.as(84): col: 42 Error: Type was not found or was not a compile-time constant: Program3D.

E:\Users\acer\Desktop\away3d-core-fp11\src\away3d\core\managers\Stage3DProxy.as(127): col: 40 Error: Type was not found or was not a compile-time constant: TextureBase.

E:\Users\acer\Desktop\away3d-core-fp11\src\away3d\core\managers\Stage3DProxy.as(137): col: 44 Error: Type was not found or was not a compile-time constant: TextureBase.

E:\Users\acer\Desktop\away3d-core-fp11\src\away3d\core\managers\Stage3DProxy.as(174): col: 37 Error: Type was not found or was not a compile-time constant: Context3D.

E:\Users\acer\Desktop\away3d-core-fp11\src\away3d\materials\utils\MipmapGenerator.as(24): col: 72 Error: Type was not found or was not a compile-time constant: TextureBase.

E:\Users\acer\Desktop\away3d-core-fp11\src\away3d\filters\Filter3DBase.as(37): col: 70 Error: Type was not found or was not a compile-time constant: Texture.

E:\Users\acer\Desktop\away3d-core-fp11\src\away3d\filters\Filter3DBase.as(68): col: 45 Error: Type was not found or was not a compile-time constant: Texture.

E:\Users\acer\Desktop\away3d-core-fp11\src\away3d\core\render\RendererBase.as(215): col: 70 Error: Type was not found or was not a compile-time constant: TextureBase.

E:\Users\acer\Desktop\away3d-core-fp11\src\away3d\core\render\RendererBase.as(235): col: 80 Error: Type was not found or was not a compile-time constant: TextureBase.

E:\Users\acer\Desktop\away3d-core-fp11\src\away3d\core\render\RendererBase.as(269): col: 71 Error: Type was not found or was not a compile-time constant: TextureBase.

E:\Users\acer\Desktop\away3d-core-fp11\src\away3d\core\base\Object3D.as(350): col: 9 Error: Call to a possibly undefined method copyRawDataTo through a reference with static type flash.geom:Matrix3D.

E:\Users\acer\Desktop\away3d-core-fp11\src\away3d\core\base\Object3D.as(352): col: 9 Error: Call to a possibly undefined method copyRawDataFrom through a reference with static type flash.geom:Matrix3D.

E:\Users\acer\Desktop\away3d-core-fp11\src\away3d\core\base\Object3D.as(411): col: 14 Error: Call to a possibly undefined method copyColumnTo through a reference with static type flash.geom:Matrix3D.

E:\Users\acer\Desktop\away3d-core-fp11\src\away3d\core\base\Object3D.as(629): col: 15 Error: Call to a possibly undefined method copyColumnTo through a reference with static type flash.geom:Matrix3D.

E:\Users\acer\Desktop\away3d-core-fp11\src\away3d\core\base\Object3D.as(754): col: 15 Error: Call to a possibly undefined method copyRawDataFrom through a reference with static type flash.geom:Matrix3D.

E:\Users\acer\Desktop\away3d-core-fp11\src\away3d\cameras\lenses\LensBase.as(103): col: 19 Error: Call to a possibly undefined method copyFrom through a reference with static type flash.geom:Matrix3D.

E:\Users\acer\Desktop\away3d-core-fp11\src\away3d\filters\tasks\Filter3DTaskBase.as(53): col: 34 Error: Type was not found or was not a compile-time constant: Texture.

E:\Users\acer\Desktop\away3d-core-fp11\src\away3d\filters\tasks\Filter3DTaskBase.as(58): col: 38 Error: Type was not found or was not a compile-time constant: Texture.

E:\Users\acer\Desktop\away3d-core-fp11\src\away3d\filters\tasks\Filter3DTaskBase.as(89): col: 63 Error: Type was not found or was not a compile-time constant: Texture.

E:\Users\acer\Desktop\away3d-core-fp11\src\away3d\filters\tasks\Filter3DTaskBase.as(137): col: 63 Error: Type was not found or was not a compile-time constant: Program3D.

E:\Users\acer\Desktop\away3d-core-fp11\src\away3d\filters\tasks\Filter3DTaskBase.as(143): col: 91 Error: Type was not found or was not a compile-time constant: Texture.

E:\Users\acer\Desktop\away3d-core-fp11\src\away3d\core\render\BackgroundImageRenderer.as(85): col: 42 Error: Type was not found or was not a compile-time constant: Context3D.

E:\Users\acer\Desktop\away3d-core-fp11\src\away3d\core\math\Matrix3DUtils.as(47): col: 7 Error: Call to a possibly undefined method copyRawDataFrom through a reference with static type flash.geom:Matrix3D.

E:\Users\acer\Desktop\away3d-core-fp11\src\away3d\core\math\Matrix3DUtils.as(63): col: 6 Error: Call to a possibly undefined method copyColumnTo through a reference with static type flash.geom:Matrix3D.

E:\Users\acer\Desktop\away3d-core-fp11\src\away3d\core\math\Matrix3DUtils.as(78): col: 6 Error: Call to a possibly undefined method copyColumnTo through a reference with static type flash.geom:Matrix3D.

E:\Users\acer\Desktop\away3d-core-fp11\src\away3d\core\math\Matrix3DUtils.as(93): col: 6 Error: Call to a possibly undefined method copyColumnTo through a reference with static type flash.geom:Matrix3D.

E:\Users\acer\Desktop\away3d-core-fp11\src\away3d\core\math\Matrix3DUtils.as(106): col: 7 Error: Call to a possibly undefined method copyRawDataTo through a reference with static type flash.geom:Matrix3D.

E:\Users\acer\Desktop\away3d-core-fp11\src\away3d\core\math\Matrix3DUtils.as(149): col: 11 Error: Call to a possibly undefined method copyRawDataFrom through a reference with static type flash.geom:Matrix3D.

E:\Users\acer\Desktop\away3d-core-fp11\src\away3d\core\math\Quaternion.as(272): col: 11 Error: Call to a possibly undefined method copyRawDataFrom through a reference with static type flash.geom:Matrix3D.

Также отправляю полный проект на Flash Develop 4, может так быстрее дело пойдет.

Sated 23.03.2012 22:15

Если кто будет смотреть проект, то посмотрите все, что может быть, потому что я во Flash Develop до этого ничего не делал, мог что-то упустить...

Sated 12.04.2012 22:53

смотри http://www.flasher.ru/forum/showthread.php?t=177888


Часовой пояс GMT +4, время: 09:59.

Copyright © 1999-2008 Flasher.ru. All rights reserved.
Работает на vBulletin®. Copyright ©2000 - 2026, Jelsoft Enterprises Ltd. Перевод: zCarot
Администрация сайта не несёт ответственности за любую предоставленную посетителями информацию. Подробнее см. Правила.