The goal of study is to create software for simulation of macroscopic bodies system in a gravitational field. The objectives of study are to analyze the existing approaches to computer simulation of physical objects and phenomena, to form both usable and informative, multifunctional user interface, to develop computer simulation of macroscopic bodies system that allows to change parameters of both the whole system and separate components. The object of study is bodies system interaction in a gravitational field. The subject of study is computer simulation of N bodies gravitational interaction using three-dimensional graphics. In this work methods of bodies interaction and lighting were determined. The result of study is creation of three-dimensional model for visualizing macroscopic bodies system state in real time.