|
I
am a newbie to the 3D world of flash and loving it. To those of you who
have helped create Sandy, you have done an outstanding job!! Thanks!
My
problem: I am trying to create an ADI (Attitude Display Indicator) for
a game I am trying to create. For those of you who dont know what an
ADI is, it basically displays the pitch (X), roll (Z), and yaw (Y) of
an aircraft using a sphere. The sphere moves freely on all three axes.
I
have attached the Actionscript file and the FLA I have been working on
to create the effect (Thanks so much to Petit - Your tutorials and
examples have been a HUGE help!!). Essentially, I created a sphere and
wrapped a movieclip skin around it. I added three input boxes to
control the x, y and z. It looks great before I rotate the sphere (even
when I do a RotationInterpolator it looks good) but when I use the
rot(x,y,z) the sphere gets mangled! It does not render correctly. I've
tried doing a refresh and a render on both the group and the sphere
itself and neither of those help. Is there something I can do
differently to get the sphere to render correctly?
Also, I will
be running this swf on a pretty powerful machine as a standalone (the
swf will have essentially full usage of the CPU). What techniques can I
use to make this look as good as possible. I already changed the
quality setting in the sphere class to 14 which helps a ton and still
runs pretty smoothly on my machine. I also own a copy of Swift3D (I
bought it specifically to do this stupid ADI) but then figured out that
it won't work because I can't dynamically set the x, y, and z
coordinates.
Any ideas or suggestions?
Thanks so much for any help and keep up the good work!
Scott
Attached File(s)
ADITest.zip ( 45.61k )
Number of downloads: 5
Petit:
Thank you so much! I really didn't expect to hear from you!! Disabling
the back face culling worked perfectly (although I have no idea why).
In regards to your question, I chose a MovieSkin because
A) It works! Woo hoo!
It seemed like all the other skin options needed a bitmap and since I
created the image in flash it is vector. I tried a TextureSkin and
passed it the linkage name of the movieclip I created and all I got was
the skeleton of the sphere (just the lines) there was no sign of the
movieclip image. Are there benefits to using the TextureSkin over the
MovieSkin? Is it less CPU intensive? Better image quality (This is the
most important aspect to me!!)?
I also noticed that my image was
distorted near the poles. I dont know why though. I created the image
to be twice as wide as it is high which is all I thought I needed to do
to get it to render on the sphere correctly. Am I wrong? Is there a
better way to do this to make it look clearer? You mentioned something
about UV coordinates and I looked up what that is on Wikipedia but it
didn't help out much. Is there something I should know about UV
coordinates that would help me here?...Stupid 3D math!
Lastly, I
increased the quality of the sphere Class to make it look
more...well...spherical. Are there any implications to doing this that
I should be aware of besides increased CPU usage?
Thanks so much! (Regardless of whether you are able to respond to this reply or not you have solved my problem!!)
Scott
Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)