Engine-based virtual camera field angle calculating method and storage medium

The invention provides an engine-based virtual camera field angle calculating method and a storage medium. The method comprises the steps of creating a camera object; loading a sphere object; lockinginitial three-dimensional coordinates of the view of the camera object on the sphere object; when upd...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: CHEN PING, YU FAREN, LIN ZHIHONG, LIN CHEN, HUANG BIN, ZHONG KAIHUA, LIU DEJIAN
Format: Patent
Sprache:chi ; eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The invention provides an engine-based virtual camera field angle calculating method and a storage medium. The method comprises the steps of creating a camera object; loading a sphere object; lockinginitial three-dimensional coordinates of the view of the camera object on the sphere object; when updating rendering is performed frame by frame, the sphere object is moved upwards in the direction ofthe vertical axis, and if the sphere object exceeds the view range of the camera object before the current frame is ended, obtaining current three-dimensional coordinates of the sphere object and theaspect ratio of a rendered image; on the basis of the current three-dimensional coordinates of the sphere object, the aspect ratio of the rendered image and the three-dimensional coordinates of the camera object, calculating the horizontal field angle of the current camera object. The purpose that the video camera field angle can be accurately and efficiently obtained under whatever engine can beachieved. 本发明提供种基于引擎的虚拟摄像机视