Hi lars,
you do know the materials you have set right?
so "yourtopmaterial" can be compared with event face.material or with
the object.material if not set by faces.
No need to add props all over the place if simple checks can be done.
Fabrice
On Nov 28, 2009, at 1:59 AM, Lars Schwarz wrote:
hey fabrice,
ok, using
var fac:Face = (event.drawpri as DrawTriangle).faceVO.face;
i can access the object, but i was expecting somekind of identifier
like "back", "top", "front"...
but there are none.
it all feels a little bit confusing because in papervision i would
simple name the materials and
get those back on the clickevent.
well eh, get some sleep, maybe you find a minute after your morning
coffee :)
thanks: lars
On Sat, Nov 28, 2009 at 1:35 AM, Fabrice3D <[email protected]>
wrote:
The face is accessible (on top of my head, its late) from
event.drawpri.faceVo.face
you should find all the info you need in there
more in doc at FaceVo
Fabrice
On Nov 28, 2009, at 12:48 AM, Lars Schwarz wrote:
sorry, but it seems a need a little more help...
roundedcube = new RoundedCube({width:200, height:200, depth:
200,
radius:5, faces:{left:phongMat1, right:phongMat2, bottom:phongMat3,
top:phongMat4, front:phongMat5, back:phongMat6}});
roundedcube.addOnMouseDown(onCubeMouseDown);
function onCubeMouseDown(event:MouseEvent3D):void {
var object:Object3D = event.object;
trace(object);
}
even object returns NULL... also there is no faveVO object the
debugger
says...
thanks: lars
On Fri, Nov 27, 2009 at 8:54 PM, Fabrice3D <[email protected]>
wrote:
a regular MouseEvent3D event returns you along with other
objects, a
favevo
object... facevo.face.
Look at doc for details.
Fabrice
On Nov 27, 2009, at 6:07 PM, Lars Schwarz wrote:
4th post today, guess away3d is missing some tutorials or i
haven't
found them yet :)
how do get the clicked face on a rounded cube? the cube is using a
PhongMovieMaterial on each
Fade and added a MouseEvent3D listener to the cube itself (not
to the
material, or the faces because
this doesn't seem to work in away3d?).
the event is firing, but how do i reference to clicked face (left,
right, top, bottom....) and get it's name?
4th thanks today: lars
--
Lars Schwarz
Heiligengeist Höfe 2
26121 Oldenburg
T +49(0)441 36110338
M +49(0)151 1727 8127
W www.bitrocker.com
TWTTR: www.twitter.com/bitrocker
--
Lars Schwarz
Heiligengeist Höfe 2
26121 Oldenburg
T +49(0)441 36110338
M +49(0)151 1727 8127
W www.bitrocker.com
TWTTR: www.twitter.com/bitrocker