A special billiard trajectory inside a triaxial ellipsoid Q:
it consists of segments of generatrices of a one-napple hyperboloid H confocal to Q.
The trajectory is parameterized in terms of sigma-functions of one variables and exponents.
(Created by CorelDraw10)
A billiard with a Hooke potential inside an ellipse Q :
the trajectories between the bounces are arcs of conics. Before and after impacts,the conics are tangent to the same ellipses Q1 , Q2 confocal to Q.
(Figure created by CorelDraw10)

Another intersting integrable generalization of the classical ellipsoidal billiard
is the billiard on a quadric. Some related references are

Chang, Shau-Jin; Shi, Kang Jie. Billiard systems on quadric surfaces and the Poncelet theorem.
J. Math. Phys. 30 (1989), no. 4, 798--804.

Abenda, S.; Fedorov, Yu. Closed geodesics and billiards on quadrics related to elliptic KdV solutions.
Lett. Math. Phys. 76 (2006), no. 2-3, 111--134

Dragovic, Vladimir; Radnovic, Milena. Geometry of integrable billiards and pencils of quadrics.
J. Math. Pures Appl. (9) 85 (2006), no. 6, 758--790
Ellipsoidal Billiards
The billiard inside a quadric in Rn is a very classical and a very vell studied discrete integrable system:
everything is known: equations of the billiard map, their Lax representations