View Full Version : [Q] Rotating Globe with the position specified on it...
CyanBlue
05-25-2004, 10:28 AM
Howdy... :)
Um... I know that I am bad at Math, so don't kill me for asking this question... :)
I need to create a rotating globe of earth... That part can be done fairly easy, I hope... (Not sure how I am going to approach to it yet though because I have not have clear answer for this question...)
Okay... Let's say that I have fake 3D rotating globe... I need to plot a dot on top of the globe to indicate the city... For example, if I need to plot a dot on the Washington DC, the dot should be rotating along with the globe... Know what I mean???
Anybody have some pointer for me or where I could start working on that??? Thank you very much... :)
baby_annie
05-25-2004, 12:35 PM
Do you mean do the rotating globe with scripting? If not i can help you with animation :)
CyanBlue
05-25-2004, 12:37 PM
What's up??? :)
Well... The animation would be viable thing to do and I have no problem doing it ONLY IF I know how to dynamically plot the dot on that animation as a city... Any idea???
baby_annie
05-25-2004, 12:46 PM
[QUOTE=CyanBlue]
For example, if I need to plot a dot on the Washington DC, the dot should be rotating along with the globe... Know what I mean???
/QUOTE]
Group the dot with the globe, so the dot will rotate along with the globe.
Isn't it? :o
CyanBlue
05-25-2004, 12:47 PM
Oh, I guess I forgot to mention that...
The dot will be placed dynamically... That's what's stopping me here... :(
baby_annie
05-25-2004, 01:01 PM
Ok. I know what you mean by "Dynamically". I'm not good at coding but i still give you a suggestion ;)
You can make a fake 3d rotating globe by script a looping scroll bitmap and mask it with a circle. So you can determine the possition of the dot you want to place in the globe with its ._x and _y. Hope it not make you more confused :)
CyanBlue
05-25-2004, 01:04 PM
Well... That's basically the general idea that I have in my mind, but I am sorta inclined to 'that's not going to work' idea, so I've posted the question...
I don't know WHY I am thinking that way though... :(
baby_annie
05-25-2004, 01:06 PM
Let's code it :)
Good luck!
CyanBlue
05-25-2004, 01:08 PM
Now, I am hungry... I've got to go out for lunch, but do you really think that what you said should work??? I'd love to see what you have abit in more detail... :)
baby_annie
05-25-2004, 01:24 PM
The idea is from the infinite menu tutorial created by POM(at Kirupa.com). You can make the globe scrolling infinitely, then mask it with layer mask. Then you place the dot in the globe with your code(this part is for you). Infact, i don't know coding :(.
I think it will work.
CyanBlue
05-25-2004, 01:45 PM
Alrighty... :)
I'll see if I can get it working and let you know... But not now... Hopefully in two weeks... Thanks... :)
aniketdeshpande
06-10-2004, 02:53 AM
I have done something of that sort in a website I designed...
Its purely non-Actionscript...
http://www.symbiosissociety.org
look at the animation on the top left corner...
Just by lookin at it u'll see how i've done it...
Regards...
CyanBlue
06-10-2004, 08:38 AM
Thanks, aniketdeshpande... :)
But I was looking for the scripting part rather than the actual animation...
Nice site though... :)
senocular
06-10-2004, 09:18 AM
simple trig. Just use rotation on one axis on the position of the city with a radius relative to the relation of that city and the rotation of the globe...
errr... may sound complicated like that. Someone throw me a spinning globe and Ill show you what I mean
I found one, Ill post an example in a little bit
i saw a spinning globe once... i think on flashkit... this was a year or two ago. it was just a long (flat) map of the earth, then the put that under a round mask and just slid the map across the mask... looked just like a spinning globe.
are you using a set number of specific cities? if so, note their x/y locations on your map, and then just set your point at that location when needed.
senoculars way is gonna be way cooler, but this should get you going in a pinch.
senocular
06-10-2004, 10:13 AM
:D thats where I found this globe, Flashkit. I noticed the flat panning globes (which would make this kind of thing sooo much easier, but I figured Id plan for the worst. ;)
CyanBlue
06-10-2004, 01:08 PM
WoW... Thanks, senocular... :)
The sad thing is that this is something I'd never figure out myself... :(
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.