
ptpuscas/mobile_rtMobileRT是一款便携式光线追踪(RT)引擎,专为多设备设计,支持在Android、Linux、macOS和Windows等多种操作系统上运行。该引擎提供丰富的接口,包括Android平台的Java+JNI及C接口,Linux/macOS/Windows平台的Qt 5或6接口,并兼容多种C++编译器,可用于跨平台光线追踪应用开发与高质量图形渲染。
支持多种C++编译器:
对于Linux系统,若已安装Docker,可通过以下命令获取并运行镜像:
shelldocker pull ptpuscas/mobile_rt:ubuntu-24.04; xhost +; docker run -it -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=${DISPLAY} ptpuscas/mobile_rt:ubuntu-24.04;
或使用docker-compose(开发中):
shellxhost +; docker-compose -f deploy/docker-compose.yml up MobileRT;
容器启动后将渲染会议室模型,效果如图所示:
如需构建镜像,使用以下命令:
shelldocker build -t ptpuscas/mobile_rt:ubuntu-24.04 -f deploy/Dockerfile.unix --no-cache=false --build-arg BUILD_TYPE=release --build-arg BASE_IMAGE=ubuntu:24.04 .;
Docker镜像地址:[***]
可克隆仓库自行编译,需安装cmake和C++20编译器,以及Qt5/6库和git:
shell# 安装依赖 sh scripts/install_dependencies.sh; # 编译本地版本 sh scripts/compile_native.sh -c g++ -t release -r yes; # 运行光线追踪器 sh scripts/profile.sh release;
下载仓库中的APK文件:APK
shell# 安装依赖 sh scripts/install_dependencies.sh; sh gradlew build -DandroidApiVersion='<android_api>' -DabiFilters='["<cpu_architecture>"]' --dry-run -Dorg.gradle.configuration-cache=true --parallel --info --warning-mode all --stacktrace; # 编译Android版本 sh scripts/compile_android.sh -c g++ -t release -r yes -a <android_api> -f "<cpu_architecture>";
textt perspective # 相机类型 p 0 0 0 # 相机位置 x y z l 0 0 1 # 相机朝向 x y z u 0 1 0 # 相机上向量 x y z f 45 45 # 相机视场角 u v
| 操作系统 | 版本 | ||||
|---|---|---|---|---|---|
| Android | 4.0.3 (API 15) | 4.4 (API 19) | 4.4W (API 20) | 5.0 (API 21) | 16 (API 36) |
| macOS | 11 | 12 | 13 | 14 | 15 |
| Windows | Server 2019 | Server 2022 | Server 2025 | 10 | 11 |
| Ubuntu | 16.04 | 18.04 | 20.04 | 22.04 | 24.04 |
| CentOS | 5 | 6 | 7 | 8 | stream |
| Alpine | 3.18 | 3.19 | 3.20 | 3.21 | 3.22 |
| Arch Linux | base-devel | ||||
| Gentoo | stage3:x86 | ||||
运行以下脚本安装必要依赖:
shellsh scripts/install_dependencies.sh;
支持的Linux发行版:
其他支持的操作系统:
![GitHub]([]
![FOSSA Status]([]
![Known Vulnerabilities]([]
![Documentation]([]
[![Docker Pulls]([***]
manifest unknown 错误
TLS 证书验证失败
DNS 解析超时
410 错误:版本过低
402 错误:流量耗尽
身份认证失败错误
429 限流错误
凭证保存错误
来自真实用户的反馈,见证轩辕镜像的优质服务