Occlusion Culling sample code provides reference of how to use APIs and configurable items of Occlusion Culling.
-
Download the cgsdk-plugin and unpackage the cgsdk-plugin-occlusionculling directory to the sample directory.
-
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. -
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.
- Devices with Android 8.0 or later.
The sample of Occlusion Culling has obtained the Apache 2.0 license.