Cube with selectable edges

Software: Away3D 3.x

lostirc, Newbie
Posted: 01 August 2011 03:38 PM   Total Posts: 5

This is a pretty general question, as I’m not too sure what to search for or if this is possible.

I’m using the Cube primitive to create a rectangle and addOnMouseOver/Out to add listeners to each face. These faces change color when the users mouses over and out.

I’m looking to somehow add edges to this cube and listeners to these edges so they can change color on roll over/out.

Currently I’m creating a bunch of smaller cube’s and overlaying them on the edges of the larger one. I’m hoping there will be a better way to do this.

Anyone have any ideas?

   

Stephen Hopkins, Sr. Member
Posted: 02 August 2011 12:27 AM   Total Posts: 110   [ # 1 ]

Putting lineSegments on each edge might be more efficient. Have you already solved the problem of duplicate edges?

 Signature 

http://www-scf.usc.edu/~shopkins

   

lostirc, Newbie
Posted: 02 August 2011 12:31 AM   Total Posts: 5   [ # 2 ]

I was having an issue with the segments rendering correctly when rotated towards the camera, not sure if there is a fix or if this is just how lines render.

I ended up using rectangles with a 1 unit depth, these seem to look the same as lines but render much nicer.

I do wish there was some way to use some kind of interactive wireframe that would allow dynamic selection of each edge.

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X