Make an animated exploded axonometric from the 3D model [library.glb] in this folder. Load three.js from a CDN at a pinned version. The result is one HTML file. Put the model file inside that HTML too, so that opening the one file is enough.
Model
- [A 24 × 12 m gabled neighborhood library. Units are meters. The glass wall faces south]
- The groups named [01_ROOF, 02_FACADE, 03_FRAME, 04_HALL] are the layers. The order written is the order they lift in, from the top. Use the group names for the labels, with a space in place of the underscore (for example 01 ROOF).
- First read the group names, the material names and the overall size of the model and show me the list. If the names differ from the ones above, use the closest ones and tell me which you chose.
- Do not change the shape of the model. Do not add members the model does not have.
- [The entrance is the face whose material is named door. It is in the south glass wall]
How to draw it
- An orthographic camera in isometric projection (30° axes), looking from above the [south-east]. [That is the side that shows the glass wall and the solar roof.] Fix the camera from the start so that every layer stays in the frame when the building is fully apart. Do not rotate or zoom it.
- Stand the building on a plaza. The plaza floor is at the height of the lowest point of the model. The plaza is 0.6 m above the street. Fill the surroundings densely with white massing boxes to make a city. Tall at the back (towers on low podiums), low toward the camera. One matte white material. No box may hide the building or the plaza.
- The light is a bright hemisphere light (HemisphereLight) and one weak direct light. Let the direct light’s shadows spread wide and soft.
- Do not use the model’s own colors. Paint only the building, in one family of blue, a different depth for each layer. [01 is navy (#14185A), 02 cobalt (#2B30E2), 03 sky blue (#9DBBFF) with thin navy (#14185A) outlines, and the floor of 04 pale blue (#DCE7FF).]
- Divide the colors further by material name. [solar_panel bright blue (#4F7BFF), glass and skylight pale blue (#E6EEFF), shelf cobalt (#2B30E2), table bright blue (#4F7BFF), stair_and_furniture navy (#14185A)]. Paint any material not listed here in its layer’s color. Colors may shift a little under the light.
Labels
- The font is monospace; lines and lettering are dark navy (#171B63).
- Put the layer labels in a column on the right of the frame. Fill each label’s background with its layer’s color. Use white lettering on the dark labels. Tie each label to its layer with a thin line.
- Put an ENTRANCE label on the plaza floor in front of the entrance. Leave it there when the facade lifts. Draw the way from the street to the entrance as a dashed line. Mark numbers in circles (1, 2, 3) along it.
- Draw trees on the plaza as thin lines only.
- Put a title and one line of dimensions at the top of the frame. The title is [NEIGHBORHOOD LIBRARY]. Fade the city to white where it overlaps the title and the dimensions.
Motion
- Write one function draw(t) so that the whole scene is set by the time t (seconds) alone. Expose window.draw and the total length window.DURATION (seconds).
- About 12 seconds in all. Hold the view before it comes apart for 1 second, then lift [01, 02, 03] one at a time, in that order. About 2 seconds per layer. Lift them far enough that no layer overlaps another on screen. Leave [04] where it is. A label appears when its layer stops.
- [In 04, everything whose material is not named floor is furniture. Hide the furniture at first. At the end it grows from zero height to its full height. When it is done, the 04 label appears.] Hold the last view for 2 seconds.
- Overlay a small play/pause button and a time bar along the bottom edge. Start paused. Pressing play runs it once and stops at the end.
Fix the frame at 1080 × 1920 (portrait) and scale it down to fit the window. The building and the city around it fill the frame from under the title to the very bottom. When it is done, capture the view before it comes apart (t = 0) and the fully exploded view (the end) and show me those first.