so without the svn thing i cant get the mouseevent3d to work? in the past i didnt engage in svn because it seemed to complicated and i didnt understand what it is ^^ now i have to do? my only chance right? ^^
On 11 Jan., 10:01, Fabrice3D <[email protected]> wrote: > I presume, you do use the zip version, where the patch is not applied. (we do > update the zips on dot releases) > Please download from the svn for most rescent fixes. > > There is no changes in Prefab concerning BSP generation. Tho, its a good idea > to keep Prefab uptodate. > > Fabrice > > On Jan 11, 2011, at 7:25 AM, le_unam wrote: > > > hmm nice to hear, but it doesnt work for me ... do i have to download > > the away 3.6 again or does it come with generating bsp tree with the > > new prefab? > > > On 5 Jan., 16:35, macgor <[email protected]> wrote: > >> THANK YOU VERY > >> MUCH!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! > >> :- > >> D > > >> On 22 Gru 2010, 17:20, Fabrice3D <[email protected]> wrote: > > >>> Some bug fixes we made in last few hours to 3.6 > > >>> In case of BSPTree projects the MouseEvent3D has been restored. > >>> It is made for meshes addChilded to thetree, NOT thetreeitself. You are > >>> inside a closed space, so you always > >>> hit the bounds. However if you add a mesh to thetree, you probably want > >>> to add some interaction as on any meshes > >>> in a regular scene. > > >>> Here a quick example (code snippet from a Prefab output) of a cube added > >>> to thetree > >>> If you would mouseDown the cube inside thetree, it would say "bam click > >>> click!" > > >>> I let you imagine better use of the MouseEvent3d inBSP:) > > >>> Fabrice > > >>> _tree = BSPTree(AWData.parse(new BSPFile())); > >>> _view.scene.addChild(_tree); > >>> _tree.usePVS = true; > > >>> _bspCollider = new BSPCollider(_view.camera, > >>> _tree); > >>> _bspCollider.testMethod = > >>> BSPTree.TEST_METHOD_ELLIPSOID; > >>> _bspCollider.flyMode = _flightMode; > >>> _bspCollider.maxClimbHeight = 50; > >>> _bspCollider.maxIterations = 4; > > >>> _bspCollider.minBounds = new > >>> Vector3D(-80,-200,-80); > >>> _bspCollider.maxBounds = new Vector3D(80,40,80); > > >>> var cube:Cube = new Cube({width:40, height:40, > >>> depth:40}); > >>> cube.x = 100; > >>> cube.y = -1200; > >>> cube.z = 100; > >>> cube.addOnMouseDown(bla); > >>> cube.collider = true; > >>> _tree.addChild(cube); > > >>> addChild(_view); > >>> addEventListener(Event.ENTER_FRAME, onEnterFrame); > >>> } > > >>> private function bla(e:MouseEvent3D):void > >>> { > >>> trace("bam click click!"); > >>> }
