"CVR Notes" Cardboard Android App Demo System Analysis Note one

Source: Internet
Author: User

The overall structure of a cardboard Android app is as follows:

The Cardboard SDK is part of Google's official development, and cardboard activities is part of the developer's development, and many of the work needs to depend on the Open GL Graphics library.

The two main classes that developers need to use in the Cardboard SDK are cardboardactivity and Cardboardview:

So the main structure of an application can be expressed as:

The mainactivity is part of what developers want to design and implement.

There are several main ways to look at interactions like:

After the system is up, the Cardboardview will first act on the mainactivity, call the Onsurfacecreate method, generally in this method, the data initialization of the three-dimensional scene;

After each frame, Cardboardview will call Mainactivity's Onnewframe method and Ondraweye method, and pass the attitude data of the head, and usually do some data processing in the Onnewframe, In Ondraweye, the change of image is realized by the call of OpenGL.

"CVR Notes" Cardboard Android App Demo System Analysis Note one

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.