away3d / away3d-core-openfl

Away3D engine for OpenFL
165 stars 41 forks source link

HMTL target fails to run and some examples fail in flash too #10

Closed dpavicic closed 10 years ago

dpavicic commented 10 years ago

Hi, I tried to build few examples ( Basic_View and Intermediate_MD5Animation ). Both fails to run when build as html and 'Intermediate_MD5Animation' fails as flash also.

I have the latest OpenFL ( lib from git repo ) and Lime ( regular haxelib lib ). Away3D was installed via haxelib install away3D ( away3D-examples also ). I can successfully create project with lime commands and build the project.

After that I tried with git version of away3D ( pointed haxelib away3D to git repo )

HTML ( fails for both examples ): Projects builds with no errors but when local server starts and page is loaded in the browser there are always error in the console:

Uncaught TypeError: Cannot set property '0' of undefined

I see the loading bar and after that screen is blank.

screenshot_072114_015602_pm

'Intermediate_MD5Animation' tried html, flash, windows cpp.

HTML fails with error mentioned above.

Flash fails with this error:

TypeError: Error #1034: Type Coercion failed: cannot convert AS3.vec::Vector.flash.geom::Vector3D@8e883f9 to AS3.vec.Vector.. at away3d.entities::Sprite3D/getRenderSceneTransform() at away3d.core.traverse::EntityCollector/applyRenderable() at away3d.core.partition::RenderableNode/acceptTraverser() at away3d.core.partition::NodeBase/acceptTraverser() at away3d.core.partition::Partition3D/traverse() at away3d.containers::Scene3D/traversePartitions() at away3d.containers::View3D/render() at Intermediate_MD5Animation/onEnterFrame()

That's in Sprite3D.hx line 252: var comps:Array = camera.sceneTransform.decompose();

Seems that wrong Vector type is returned.

I have flash debug player installed btw.

CPP build and runs fine

Greg209 commented 10 years ago

Builds should be fixed now - although I couldn't recreate the flash error but have changed the type. Commits 615c69a60c5acf7e6ffadfaee9869bafbc5aa2ea and e5219860d1ea116d97e8daddfb0fa281eaadd2ae