Hmm.. looks interesting. On Mon, Aug 9, 2010 at 3:12 PM, Darcey Lloyd <[email protected]> wrote:
> Got it working but the flex framework throws an error when interactive set > to true, ignore this or stop the compiler from debugging and the swf plays > correctly: > > > http://www.allforthecode.co.uk/development/away3d/flexcomponent_textures/bin/Away3DFlexComponentAsMaterial.html > > > http://www.allforthecode.co.uk/development/away3d/flexcomponent_textures/src.rar > > > > Probably need to trace into the sequence of events to see what is going on, > same error on SDKs 3.2, 3.5 and 4.0. > > > D > > > > > > > // > ------------------------------------------------------------------------------------------------ > private function generateScene():void > { > // Generate cube > cube1 = new Cube(); > cube1.width = 200; > cube1.height = 200; > cube1.depth = 200; > cube1.segmentsW = 1; > cube1.segmentsH = 1; > cube1.segmentsD = 1; > // Generate cube materials > var mat:MovieMaterial = new MovieMaterial(this.myList); > // Throws an error on the flex framework but works lol > try { > mat.interactive = true; > } catch (e:Error) {} > mat.smooth = true; > > cube1.cubeMaterials.front = mat; > view.scene.addChild(cube1); > } > > > > > > > > > > On 9 August 2010 12:52, Michael Iv <[email protected]> wrote: > >> Yeah that is the problem, all the interactivity disappears ....I found the >> PV3D hack ,just have no time to try porting it to Away3 >> >> >> On Mon, Aug 9, 2010 at 2:48 PM, Darcey Lloyd <[email protected]>wrote: >> >>> I haven't tried to use a flex component as a texture/material in away3D, >>> but I have also noticed that Flash components also don't work, not as >>> MovieMaterials anyway. >>> >>> A non interactive way would be to copy the flex container into bitmapdata >>> and apply to a 3D object, but interactivity would become an issue here. But >>> you could go into translating the mouse x,y on the material to the component >>> and manually set the states of the components (long winded, but may work). >>> >>> I will take a look into it. >>> >>> D >>> >>> >>> >>> >>> >>> On 9 August 2010 12:36, Michael Iv <[email protected]> wrote: >>> >>>> Hey Darcey,have you managed to incorporate Flex Components as Materials? >>>> In PV3D it is a simple hack but in Away3D I still work on it :) >>>> >>>> >>>> On Mon, Aug 9, 2010 at 2:04 PM, Darcey Lloyd <[email protected]>wrote: >>>> >>>>> Hi, >>>>> >>>>> New post added to the site full source and example provided, exampling: >>>>> >>>>> 1. Placing a MovieMaterial on the front and rear of a cube >>>>> (smoothing true and false demonstrated) >>>>> 2. MovieClip as a material for both >>>>> 3. How to use a button within the movieclip used as a material / >>>>> texture >>>>> >>>>> >>>>> http://www.allforthecode.co.uk/aftc/forum/user/modules/forum/index.php?aid=138&index=3&subindex=3 >>>>> >>>>> D >>>>> >>>> >>>> >>>> >>>> -- >>>> 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] >>>> >>>> >>> >> >> >> -- >> 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] >> >> > -- 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]
