https://github.com/google/filament
We have added support for Nibiru XR SDK based on Filament V1.4.0. Use this special version of filament, your apks can run on Nibiru XR OS.
[filament/Nibiru] directory contains the release files and some sample codes.
Nibiru Official Website: http://www.inibiru.com/en/index.html
filamat-android-release.aar filament-android-release.aar
AndroidManifest.xml core-3.3.2.jar nibiru_vr_sdk_2_4_4.jar qrcode_sdk.jar
MainActivity.kt [Example code file]
Nibiru XR HMD: AR HMD : http://www.inibiru.com/en/product_ar.html VR HMD : http://www.inibiru.com/en/product_vr.html Please contact info@inibiru.com for sales support.
Tip: Nibiru OS Version need greater than Nibiru 3.80.0.
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
in application tag
android:screenOrientation="landscape"
in application tag
<category android:name="com.nibiru.intent.category.NVR"/>
in intent-filter tag
NibiruVR.initNibiruVRServiceForUnreal(activity)
servicePtr = initParams.split("_").get(0).toLong()
Engine.create(servicePtr)
Engine.create()
resume() {...}
surfaceView.visibility = android.view.View.VISIBLE var nibiruVRService : NibiruVRService = NibiruVR.getUsingNibiruVRServiceGL()
if(nibiruVRService != null) { nibiruVRService.onResume(); }
pause() {...}
var nibiruVRService : NibiruVRService = NibiruVR.getUsingNibiruVRServiceGL()
if(nibiruVRService != null) { nibiruVRService.onPause(); }
renderer.render(view)
renderer.beginFrame -> renderer.endFrame
if (renderer.beginFrame(swapChain!!))
{
// left eye
renderer.render(view)
// right eye
renderer.render(view)
renderer.endFrame()
++renderedFrames
}
If you want to compile the filament, you can refer to the offical wiki. https://github.com/google/filament
[FileList Changed By Nibiru]
- android/filament-android/src/main/cpp/Engine.cpp
- android/filament-android/src/main/java/com/google/android/filament/Engine.java
- filament/backend/CMakeLists.txt filament/backend/include/backend/Platform.h
- filament/backend/include/private/backend/DriverAPI.inc
- filament/backend/src/opengl/OpenGLDriver.cpp
- filament/backend/src/opengl/OpenGLDriver.h
- filament/backend/src/opengl/OpenGLDriverFactory.h
- filament/backend/src/opengl/PlatformEGL.cpp
- filament/backend/src/opengl/OpenGLDriver.h
- filament/backend/src/vulkan/VulkanDriver.cpp filament/include/filament/Engine.h
- filament/src/Engine.cpp filament/src/Renderer.cpp filament/src/details/Engine.h
- filament/src/details/Renderer.h filament/src/fg/FrameGraph.cpp
[FileList Changed By Nibiru]