Here's another 3D animation with musical accompaniment (you may need to click to unmute the music). The 3D model was downloaded from Turbosquid for $12, and the music was originally transcribed for computer by Leon Rue way back on 16th September 1977.
https://wasm.bbcbasic.co.uk/bbcsdl.html ... rousel.bbb
Carousel
Re: Carousel
If anybody wants to run the program locally, or look at the code, I have put it (along with all the supporting files) here. The code is virtually identical to all the other animated music programs, it's mostly only the 3D model(s) and supporting textures that differ (plus the music itself, of course).
The animation in the case of the carousel program is particularly simple because it consists of rotation around a vertical axis (for everything except the base) plus sinusoidal variation of the horses' heights:
The animation in the case of the carousel program is particularly simple because it consists of rotation around a vertical axis (for everything except the base) plus sinusoidal variation of the horses' heights:
Code: Select all
Ypos(1) = 0.3 + 0.5 * SIN(TIME/100) : REM Horse 1,3,5 height
Ypos(2) = 0.3 - 0.5 * SIN(TIME/100) : REM Horse 2,4,6 height
Pan() = -TIME/500 : REM Rotation about vertical axis...
Pan(0) = -0.3 : REM ... of everything except the base