Well done! ,I hope this stuff will find its way into svn ASAP :))
On Sun, Nov 7, 2010 at 12:20 AM, [email protected]
<[email protected]>wrote:
> Cauê
>
> These are the changes I needed to apply to the build I downloaded from svn
> earlier today (see below), (I noticed some of the coordinates have changed
> from previous use, I presume they were fixes.. have to take the hacks out of
> my code :) ).
>
> 1) Change imports from flash.Error to flash.errors.Error in these classes.
>
> away3dlite/core/utils/Cast.hx
> away3dlite/core/utils/Debug.hx
> away3dlite/containers/View3D.hx
>
> 2) Adjust casting to remove compiler complaints
>
> away3dlite/core/base/Mesh.hx
> line 141
> if (_materialsCacheList.length == cast( (i + 1), UInt ) )
>
> net/hires/debug/Stats.hx
> line 63
> private var _ms_prev : Int;
>
> away3dlite/containers/ObjectContainer3D.hx
> line 33
> for (i in 0...(cast( _sprites.length, Int )) )
> line 37
> for (i in 0...(cast( _sprites.length, Int )) )
> line 57
> for (i in 0...(cast( _lights.length, Int)) )
> line 287
> for (i in 0...(cast( _sprites.length, Int )) )
>
> away3dlite/containers/Scene3D.hx
> line 39
> if ( cast( mat.arcaneNS()._id[_id], Int ) == _materialsSceneList.length -
> 1) {
>
> Jan Flanders has made a namespace injector, he has not posted it to the
> haxe list yet, I have started preparing the xml injector file (see below) and
> commenting out the arcane using statements but it takes awhile, I am unsure
> on some aspects as my understanding of namespaces are limited, but hopefully
> it is quite simple, I will let you know tomorrow if it worked and if I get
> stuck hopefully Jan will be on IRC, ( changes will allows removal of the
> namespace folder but require an additional -cmd to the hxml ) but off
> salsaing tonight.
>
> Cheers
>
> ;j
>
> <injections>
> <!-- away3dlite.animators.bones.Bone removed using
> away3dlite.namespace.Arcane; is it used here?? -->
> <class name="away3dlite.cameras.Camera3D">
> <member name="_view" ns="arcane"/>
> <member name="_invSceneMatrix3D" ns="arcane"/>
> <member name="_projectionMatrix3D" ns="arcane"/>
> <member name="_screenMatrix3D" ns="arcane"/>
> <member name="update" ns="arcane"/>
> </class>
> <class name="away3dlite.cameras.lenses.AbstractLens">
> <member name="_view" ns="arcane"/>
> <member name="_root" ns="arcane"/>
> <member name="_camera" ns="arcane"/>
> <member name="_update" ns="arcane"/>
> </class>
>
> <class name="away3dlite.cameras.lenses.OrthogonalLens"><member
> name="_update" ns="arcane"/></class>
> <class name="away3dlite.cameras.lenses.PerspctiveLens"><member
> name="_update" ns="arcane"/></class>
> <class name="away3dlite.cameras.lenses.ZoomFocusLens"> <member
> name="_update" ns="arcane"/></class>
> <class name="away3dlite.cameras.TargetCamera3D"> <member
> name="update" ns="arcane"/></class>
>
> <class name="away3dlite.containers.ObjectContainer3D">
> <member name="updateScene" ns="arcane"/>
> <member name="project" ns="arcane"/>
> </class>
> <class name="away3dlite.containers.Scene3D">
> <member name="_id" ns="arcane"/>
> <member name="_broadcaster" ns="arcane"/>
> <member name="_materialsSceneList" ns="arcane"/>
> <member name="_materialsPreviousList" ns="arcane"/>
> <member name="_materialsNextList" ns="arcane"/>
> <member name="_sceneLights" ns="arcane"/>
> <member name="removeSceneMaterial" ns="arcane"/>
> <member name="addSceneMaterial" ns="arcane"/>
> <member name="addSceneLight" ns="arcane"/>
> <member name="removeSceneLight" ns="arcane"/>
> <member name="project" ns="arcane"/>
> </class>
> <class name="away3dlite.containers.View3D">
> <member name="_totalFaces" ns="arcane"/>
> <member name="_totalObjects" ns="arcane"/>
> <member name="_renderFaces" ns="arcane"/>
> <member name="_renderedObjects" ns="arcane"/>
> <member name="screenClipping" ns="arcane"/>
> <member name="get_screenClipping" ns="arcane"/>
> </class>
> <!-- away3dlite,coce.base.face removed away3dlite.namespace.Arcane; is
> it used here?? -->
> <class name="away3dlite.core.base.Mesh">
> <member name="_materialDirty" ns="arcane"/>
> <member name="_materialCacheList" ns="arcane"/>
> <member name="_vertexId" ns="arcane"/>
> <member name="_screenVertices" ns="arcane"/>
> <member name="_uvtData" ns="arcane"/>
> <member name="_indices" ns="arcane"/>
> <member name="_indicesTotal" ns="arcane"/>
> <member name="_culling" ns="arcane"/>
> <member name="_faces" ns="arcane"/>
> <member name="_facesLengths" ns="arcane"/>
> <member name="_sort" ns="arcane"/>
> <member name="_vertices" ns="arcane"/>
> <member name="_faceMaterials" ns="arcane"/>
> <member name="updateScene" ns="arcane"/>
> <member name="project" ns="arcane"/>
> <member name="buildFaces" ns="arcane"/>
> </class>
> <class name="away3dlite.core.base.Object3D">
> <member name="_perspCulling" ns="arcane"/>
> <member name="_screenZ" ns="arcane"/>
> <member name="_scene" ns="arcane"/>
> <member name="_viewMatrix3D" ns="arcane"/>
> <member name="_sceneMatrix3D" ns="arcane"/>
> <member name="_mouseEnabled" ns="arcane"/>
> <member name="updateScene" ns="arcane"/>
> <member name="project" ns="arcane"/>
> </class>
> <class name="away3dlite.core.clip.Clipping">
> <member name="setView" ns="arcane"/>
> <member name="collectFaces" ns="arcane"/>
> <member name="screen" ns="arcane"/>
> </class>
> <class name="away3dlite.core.clip.RectangleClipping">
> <member name="collectFaces" ns="arcane"/>
> </class>
> <!-- away3dlite.core.render.BasicRender" removed
> away3dlite.namespace.Arcane; is it used here?? -->
> <!-- away3dlite.core.render.FastRender" removed
> away3dlite.namespace.Arcane; is it used here?? -->
> <class name="away3dlite.core.render.Renderer">
> <member name="update" ns="arcane"/>
> </class>
> <class name="away3dlite.lights.AbstractLight3D">
> <member name="_red" ns="arcane"/>
> <member name="_green" ns="arcane"/>
> <member name="_blue" ns="arcane"/>
> <member name="_camera" ns="arcane"/>
> </class>
> <!-- away3dlite.lights.DirectionalLight3D" removed
> away3dlite.namespace.Arcane; is it used here?? -->
> <class name="away3dlite.loaders.AbstractParser">
> <member name="_container" ns="arcane"/>
> <member name="binary" ns="arcane"/>
> <member name="_totalChunks" ns="arcane"/>
> <member name="_parsedChunks" ns="arcane"/>
> <member name="_parsesuccess" ns="arcane"/>
> <member name="_parseerror" ns="arcane"/>
> <member name="_parseprogress" ns="arcane"/>
> <member name="notifyProgress" ns="arcane"/>
> <member name="notifyError" ns="arcane"/>
> <member name="prepareData" ns="arcane"/>
> <member name="parseNext" ns="arcane"/>
> </class>
> <class name="away3dlite.loaders.AWData">
> <member name="prepareData" ns="arcane"/>
> </class>
> <!-- away3dlite.loaders.Collada" removed away3dlite.namespace.Arcane;
> is it used here?? -->
> <!-- away3dlite.loaders.data.MaterialData removed
> away3dlite.namespace.Arcane; is it used here?? -->
> <!-- away3dlite.loaders.Loader3D removed away3dlite.namespace.Arcane;
> is it used here?? -->
> <class name="away3dlite.loaders.Max3DS">
> <member name="prepareData" ns="arcane"/>
> </class/>
> <class name="away3dlite.loaders.MD2">
> <member name="prepareData" ns="arcane"/>
> </class/>
>
>
> On 6 Nov 2010, at 19:37, Cauê Waneck wrote:
>
> Sorry about that... My haxe install is a little strange and it doesn't fail
> to build here. I've already applied the patches in a backwards-compatible
> way! Please let me know if it now works for you!
>
> Cheers
> Cauê
>
>
> 2010/11/6 Joshua Granick <[email protected]>
>
>> I could see the benefit in patching the current version of Away3DLite in
>> order to compile with the current version of haXe (I was just trying to use
>> it yesterday), but I understand why they would be working on a Molehill
>> version. Actually, its very exciting. I recall hearing that the next version
>> of Away3D for haXe was going to feature OpenGL hardware acceleration for C++
>> targets. It would naturally make sense to help it mirror Flash's new 3D API,
>> so that 3D acceleration would be available both in Flash and C++. I hope
>> that Adobe is on-track, and isn't making false promises like their October
>> 2009 release date for Flash 10.1
>>
>>
>>
>> On Sat, 06 Nov 2010 06:22:37 -0700, Michael Iv <[email protected]>
>> wrote:
>>
>> Ok apparently computer reboot solved almost all the errors. Yes , there
>>> was a problem related to flash.Error which doesn't exist . So changing it to
>>> flash.errors.Error solves the problem .
>>> Now comes the question . I see in the last days that more and more teams
>>> talk about getting ready for molehill . Isn't it too early ? I mean Adobe
>>> are going to release public beta of it only in the middle of 2011 .
>>>
>>> Sent from my iPhone
>>>
>>> On Nov 6, 2010, at 2:47 PM, "[email protected]" <[email protected]>
>>> wrote:
>>>
>>> Michael
>>>>
>>>> looks like 17 June 2010, I think the next version will be a molehill
>>>> one, Cauê is working hard
>>>> "oh, and we can't put on the svn yet because of adobe's NDA." ( sandy
>>>> list ).
>>>>
>>>> latest haXe build the namespace for flash.Error changed...
>>>> flash.errors.Error
>>>>
>>>> http://haxe.org/api/flash9/errors/error just had a quick look on google
>>>> code but did not see where the Error was used.
>>>> I have not used away3dlite recently and not used color material but I
>>>> can take a look later today as there was something I wanted to check
>>>> anyway.
>>>>
>>>> But away3dlite haxe has worked for me, some of the coordinates and
>>>> material mappings have seemed strange but hackable.
>>>>
>>>> If there is some code you want me to try just send it over, or I can
>>>> send you an experiment with the last version I used.
>>>>
>>>> ;j
>>>>
>>>> On 6 Nov 2010, at 09:28, Michael Iv wrote:
>>>>
>>>> Hey Guys , Has anybody worked recntly with HAXE version of AwayLite? I
>>>>> Downloaded the latest Haxe build and I have a lot of errors thrown from
>>>>> away3dlite/materials/WireColorMaterial and many more .Here are the
>>>>> errors:
>>>>>
>>>>> AWAY3DSDK/haxe/Away3DLite/debug/away3dlite/core/utils/Debug.hx:2:
>>>>> characters 0-19 : Class not found : flash.Error
>>>>> ../AWAY3DSDK/haxe/Away3DLite/debug/away3dlite/materials/WireColorMaterial.hx:89:
>>>>> characters 2-21 : away3dlite.materials.ColorMaterial does not have a
>>>>> constructor
>>>>> ../AWAY3DSDK/haxe/Away3DLite/debug/away3dlite/materials/WireColorMaterial.hx:91:
>>>>> characters 42-52 : away3dlite.core.utils.#Cast has no field color
>>>>> ../AWAY3DSDK/haxe/Away3DLite/debug/away3dlite/materials/WireColorMaterial.hx:96:
>>>>> characters 2-22 : Unknown identifier : _graphicsStroke
>>>>> ../AWAY3DSDK/haxe/Away3DLite/debug/away3dlite/materials/WireColorMaterial.hx:97:
>>>>> characters 2-27 : Unknown identifier : _graphicsStroke
>>>>> ../AWAY3DSDK/haxe/Away3DLite/debug/away3dlite/sprites/Sprite3D.hx:156:
>>>>> characters 8-53 : away3dlite.materials.WireColorMaterial should be
>>>>> away3dlite.materials.Material
>>>>> ../AWAY3DSDK/haxe/Away3DLite/debug/away3dlite/sprites/Sprite3D.hx:167:
>>>>> characters 12-32 : away3dlite.materials.BitmapMaterial has no field width
>>>>> ../AWAY3DSDK/haxe/Away3DLite/debug/away3dlite/sprites/Sprite3D.hx:169:
>>>>> characters 13-34 : away3dlite.materials.BitmapMaterial has no field height
>>>>> ../AWAY3DSDK/haxe/Away3DLite/debug/away3dlite/materials/WireColorMaterial.hx:32:
>>>>> characters 2-31 : Unknown identifier : _graphicsStroke
>>>>> ../AWAY3DSDK/haxe/Away3DLite/debug/away3dlite/materials/WireColorMaterial.hx:53:
>>>>> characters 2-31 : Unknown identifier : _graphicsStroke
>>>>> ../AWAY3DSDK/haxe/Away3DLite/debug/away3dlite/materials/WireColorMaterial.hx:74:
>>>>> characters 2-27 : Unknown identifier : _graphicsStroke
>>>>> Build halted with errors (haxe.exe).
>>>>>
>>>>> I used AwayLite HAXE from the latest TRUNK. How long ago was it
>>>>> updated?
>>>>>
>>>>> Thanks for help.
>>>>>
>>>>> --
>>>>> Michael Ivanov ,Programmer
>>>>> Neurotech Solutions Ltd.
>>>>> Flex|Air |3D|Unity|
>>>>> www.neurotechresearch.com
>>>>> http://blog.alladvanced.net
>>>>> http://www.meetup.com/GO3D-Games-Opensource-3D/
>>>>> Tel:054-4962254
>>>>> [email protected]
>>>>> [email protected]
>>>>>
>>>>>
>>>>
>>
>> --
>> Using Opera's revolutionary email client: http://www.opera.com/mail/
>>
>
>
>
--
Michael Ivanov ,Programmer
Neurotech Solutions Ltd.
Flex|Air |3D|Unity|
www.neurotechresearch.com
http://blog.alladvanced.net
http://www.meetup.com/GO3D-Games-Opensource-3D/
Tel:054-4962254
[email protected]
[email protected]