Hi Dan,
a picture would help, since there are many ways to achieve
interactivity into Away3D.
but here a few leads:
You might want to look at the MovieSprite class in the sprite package.
You can pass your btn, a movieclip, to this class.
you can then addchild it to your scene, with scaling properties set to
true, this 2d information will be placed into your 3d scene.
you can add regular flash mouse events to your btn. This objects have
then an x, y and z properties.
To trace lines, you can use LineSegment.
For your sphere material, if you use a MovieMaterial, the movieclip
you pass to it can hold interactivity as in 2d.
Finally your sphere could be interactive as well if you add a
MouseEvent3D to it.
the mouseEvent3D event returns you a data object with 2d projections,
3d information such as the face that triggers the mouseevent3d
uv coordinates etc etc...especially handy if you need to alter the
sphere material from user mouse information.
you can find more examples in our examples section, our doc and of
course searching in this group.
I hope this will help you getting started.
Welcome to Away3d!
Fabrice
On Oct 14, 2009, at 5:32 AM, Darko Radiceski wrote:
Hi all,
I have started with one of the examples on away3d that has a sphere
and places a bitmapMaterial - jpeg file on the sphere.
The camera is placed inside the sphere.
That is all working nicely.
Now what i would like to do is to be able to draw points and lines
onto it. Like maybe have few buttons that will activate the operation.
Like for example when the user activates the point button and they
click on the sphere a point will be placed in there. On the clicked
X,Y.
And vice versa with drawing the lines.
So far i have not been able to implement that.
Any advice or example would be appreciated.
Cheers
Dan
--
Dan
University of Wollongong
Australia
SIFE - UOW Chapter - Alumni
CASUAL ACADEMIC STAFF TEACHING - UOW SITACS
(School of Information Technology and Computer Science,University of
Wollongong)
Univeristy of Wollongong - Alumni