Skip to content

Latest commit

 

History

History

huawei-cg-occlusionculling-cpp-demo

Occlusion Culling

Table of Contents

Introduction

Occlusion Culling sample code provides reference of how to use APIs and configurable items of Occlusion Culling.

Getting Started

  1. Download the cgsdk-plugin and unpackage the cgsdk-plugin-occlusionculling directory to the sample directory.

  2. Build the sample:

    Execute the ndk-build NDK_PROJECT_PATH=. NDK_APPLICATION_MK=Application.mk APP_BUILD_SCRIPT=Android.mk command in the sample directory.

  3. Run the sample:

    Execute the "adb push" command to push "libpartythirdengine_plugin_oc.so" and "Sample" in the "Sample\obj\local\arm64-v8a" folder to the "/data/local/tmp" directory of the phone.

    Execute the export LD_LIBRARY_PATH=/data/local/tmp command in the shell.

    Execute chmod a+x Sample command in the "/data/local/tmp" directory.

    Execute the ./Sample command in the "/data/local/tmp" directory.

Supported Environments

  1. Devices with Android 8.0 or later.

Result

License

The sample of Occlusion Culling has obtained the Apache 2.0 license.