Was a DNA label hotspot kinda thing… I wanted to calculate things fully. Was going from a 2D to 3D in a seemless transition.
The 2D
So a hotspot (circle with a plus on it), and label pops out when hover
Which is joined by a line to a smaller circle.
XML Driven.
The 3D
Spherical representations of the larger and smaller 2D circles will fade in as the 2D fades out giving a nice transition, matching sizes and positions. Plane with 1 side arced around the sphere for the label due to alpha not being 1 (still working this part out, may need to blender it). Scene then kinda spins around and the 3D hotspot moves to new positions while menus and content are generated and animated.
I went of on quite a few tangents testing a few experiments, where I toyed with various math for stuff.
Answer was:
1. Take x,y of larger 2D round object work out x,y point for line to start from using it’s radius and note it’s angle.
2. Take x,y, of smaller 2D round object using equation for point on circumference as done in step 1, inverse this and it will give you the point to draw to on smaller circle.
In progress:
1. Transition of line from cube depth of 10 or something small into plane which fits the spherical objects perfectly so as not to be seen due to the not 100% alpha.
2. Dynamic xml driven texture, for colour material and TLF text to implemented onto the arc sided plane.
D