-
3d null on a cc sphere on a specific place while the globe rotates
hi, i’m having trouble with my project and i need your help.
i have an earth (cc sphere), and i want to put a 3d null on any country i chose. then i want to rotate and move the globe however i want it and the null will stay on that country.
i have an earth globe (with cc sphere), placed a 3d center null in the center of the globe, placed another 3d pin null , linked the z pozition to the earth radius (with the minus symbol), linked the pin null to the center null . On the center null i’ve linked the x,y,z rotation to the rotation of the globe and the x, y position to the offset of the cc.
so far, so good, the pin null moves and rotates along with the earth.
the problem is that i want to take that null and place it somewhere else. so i have made another 3d null named rotation null, place it in the center just like the center null, parent the rotation null to the center null and parent the pin null to the rotation null.
to be clear:
the center null helps the pin null to rotate and move same time with the earth. the rotation null helps the pin null to move independently on the surface of the earth. works like a charm.
the problem is that:
the rotation null moves the pin null based on the rotation. if i rotate the rotation null on x, it moves the pin null on the meridian of the globe (ex: from the north pole to the south pole perfectly). if i rotate the rotation null on y, it move the pin null on the ecuator of the earth (ex: from left to right). if i start to rotate both the x and y , it starts to move the pin null on the globe (which is alright), but in a way that i don’t like it, based on a curve. because the x plane of the rotation null is rotated, by default the y plane is also rotated. so when i start to rotate the y plane as well, the pin dosent move on a parallel line of the earth but in a curved way.any solution on that? idealy, i would like to add a point control effect and to link the rotation to that point control, so when i place the crosshair of the point control anywhere on the globe, it will use the x,y, z rotation of the pin in such way that will place the pin where the crosshair is. i’m trying to figure out an expression on that, but no luck here.
any solution on this matter?
(btw, i have tried to use the position and orientation of the pin null to move it using some trigonometric expressions but it’s hell).
i have attached the project as well (cs5)Thank you very much to anyone who try to help with is!
this is the project:
https://f1.creativecow.net/12185/12185