Star Sphere with Scalable Stars, Version 2.0 is a revision to a project that was originally released on December 22, 2004. Details on how version 1 was created can be found in this thread in the Hash forums. In version 1, the stars that made up the sphere had random sizes to vary their brightness, but the difference introduced in version 2 is that the stars are now all the same size, but vary in transparency.
These files were created in Animation:Master version 12.0w, and should be forward-compatible with version 13.0 (however, resaving the files under 13.0 and later will make them incompatible with 12.0 and earlier.) Because the files do not use any features unique to 12.0, they should be compatible with versions 10 and 11, but this has not been tested. The use of expressions prevents these files from working in version 9 or earlier.
This folder contains the following files:
The purpose of these files is to allow fast rendering of space (or night sky) scenes in which the stars occupy approximately one pixel in the frame. The size of the stars can be adjusted to account for the zoom setting of the camera and the resolution of the render. The "Star size in meters" pose slider in StarSphereV2.mdl has a range of 0 to 30 with a default of 15 -- you can ignore the percent symbol in the slider value, because this value is not actually a scaling percentage.
Version 2, in which all the stars are the same size, was created in an attempt to deal with the problems of small stars flickering when they move. For rendering a single still frame, the star size, camera length and resolution can be set using the method below so that the stars appear to be one pixel on the image. However, when rendering an animation, it may be necessary to use larger stars to prevent flickering.
Here's how to determine which star size setting will produce one-pixel stars: The relationship between the focal length and the field of view in an A:M camera is based on the camera having a horizontal aperture of 35 mm. We will assume that a camera (shown below in light gray) with focal length f, producing renders with a maximum dimension of W pixels, is located at the center of a star sphere with radius R. Angle A is the camera's field of view, which can be derived from angle B, formed within the camera by the focal length and half the horizontal aperture (35 mm / 2 = 17.5 mm). Angle C is the angle subtended by one star (shown in yellow). The size s that the star needs to be in order to appear as one pixel may be derived by this method:
Since R = 10000 m in this model, the following values of s in meters (shown in bold) may be obtained by plugging the given camera settings into Equation (2). (A, the field of view, is obtained from Equation (1)):
Apply Equation (2) directly to obtain star size values for camera settings not covered by this table. The resolution, W, is the largest dimension of the rendered frame, so if you're rendering in portrait format instead of landscape, you should consider W to be the height instead of the width.
Another advantage of the scalable star sphere is the ability to animate the star size to stay in sync with the animation of the camera's focal length. If the camera will be making a zoom move in the course of the choreography, you will need to keyframe the "Star size in meters" pose slider on the same frames as the keyframes you set for the beginning and end of the zoom. The new value of the pose slider at the end of the zoom will need to be calculated using Equation (2) or the table, based on the new focal length.
If the camera will be moving a considerable distance away from the center of the star sphere during the choreography, as it approaches the edge of the sphere it will become apparent that some of the stars are closer to the camera, and therefore brighter, than others. You can remedy this either by constraining the star sphere to translate to the camera, or by scaling up the entire star sphere choreography shortcut from its model bone. It will also be necessary to scale up the star sphere if the objects included in the scene are too big to fit into the existing volume. Scaling the star sphere will not affect the angular size of the stars as seen from the center, and the replicated action objects will follow the translation and scaling of the parent object.
Fixed-size star spheres are best suited for applications where you don't expect to be animating the camera's focal length, and you can't afford to wait for the scalable star sphere to load. Consult Equation (2) and the table above to determine which star size is best suited for your camera's settings.
Focal length
(f)Field of view
(A)Resolution (W) in pixels
320
640
720
800
1024
1280
1920
30 mm
60.51°
33.00
16.50
14.67
13.20
10.31
8.25
5.50
35 mm
53.13°
28.98
14.49
12.88
11.59
9.06
7.24
4.83
50 mm
38.58°
21.04
10.52
9.35
8.42
6.58
5.26
3.51
70 mm
28.07°
15.31
7.66
6.80
6.12
4.78
3.83
2.55
100 mm
19.85°
10.83
5.41
4.81
4.33
3.38
2.71
1.80
Using the fixed-size star spheres