You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We seriously considering Filament as a main option to render a BIM 3D model in our application. Have tried loading multiple GLB files & most of them just loaded super fast & provided smooth interaction. There's a slightly bigger gltf file I loaded which crashed our android/ios app. Tried loading the same model in desktop gltf_viewer on Mac M1 and result was the same. Below are the steps I followed,
On mac, I ran below commands
./build.sh -c -p desktop -i debug
filament/out/cmake-debug/samples/gltf_viewer -a metal
Dragged & dropped the gltf file (360mb with 62826 nodes) on the desktop gltf_viewer. Viewer hung for a few seconds the crashed with the following message,
in HandleBase::HandleId filament::backend::HandleAllocator<16, 64, 584>::allocateHandleSlow(size_t) [P0 = 16, P1 = 64, P2 = 584]:82
in file /filament/filament/backend/src/HandleAllocator.cpp
reason: HandleAllocator arena is full, using slower system heap. Please increase the appropriate constant (e.g. FILAMENT_OPENGL_HANDLE_ARENA_SIZE_IN_MB).
#0 gltf_viewer 0x1060dcc2c utils::CallStack::update(unsigned long) + 32
#1 gltf_viewer 0x1060dcc00 utils::CallStack::unwind(unsigned long) + 44
As suggested in these two discussions, I built Filament from source by updating the below values #7015 #5758
FILAMENT_PER_RENDER_PASS_ARENA_SIZE_IN_MB=3 to 6FILAMENT_PER_FRAME_COMMANDS_SIZE_IN_MB=2 to 8FILAMENT_MIN_COMMAND_BUFFERS_SIZE_IN_MB=2 to 8FILAMENT_OPENGL_HANDLE_ARENA_SIZE_IN_MB=4 to 32FILAMENT_METAL_HANDLE_ARENA_SIZE_IN_MB=4 to 32
Is there a limitation on the size of glb/gltf file that Filament can load? If not can i change anything else in the source to handle large gltf files?
I was also looking at this hardware instancing solution but not sure that will be of any relevance to this issue since am loading a single gltf file.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
We seriously considering Filament as a main option to render a BIM 3D model in our application. Have tried loading multiple GLB files & most of them just loaded super fast & provided smooth interaction. There's a slightly bigger gltf file I loaded which crashed our android/ios app. Tried loading the same model in desktop
gltf_viewer
on Mac M1 and result was the same. Below are the steps I followed,On mac, I ran below commands
./build.sh -c -p desktop -i debug
filament/out/cmake-debug/samples/gltf_viewer -a metal
Dragged & dropped the gltf file (360mb with 62826 nodes) on the desktop
gltf_viewer
. Viewer hung for a few seconds the crashed with the following message,As suggested in these two discussions, I built Filament from source by updating the below values
#7015
#5758
Is there a limitation on the size of glb/gltf file that Filament can load? If not can i change anything else in the source to handle large gltf files?
I was also looking at this hardware instancing solution but not sure that will be of any relevance to this issue since am loading a single gltf file.
Appreciate any input
Beta Was this translation helpful? Give feedback.
All reactions