Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Non-directional lights not rendering on physical Android devices with Filament v1.56.0 #8376

Open
houssemzaier opened this issue Jan 19, 2025 · 1 comment
Assignees
Labels
android Issue/feature request for Android only web Issue/request for WASM/WebGL

Comments

@houssemzaier
Copy link

Non-directional lights not rendering on physical Android devices with Filament v1.56.0

Describe the bug
Non-directional lights are not being rendered on physical Android devices when using Filament v1.56.0. DIRECTIONAL lights (sun or simple DIRECTIONAL) work correctly, but other light types are not visible. The issue occurs only on physical devices (confirmed on Pixel 8 with Android 15) while working correctly on emulators. Reverting to Filament v1.52.0 resolves the issue.

To Reproduce

  1. Set up a scene with non-directional lights (e.g., point lights, spot lights)
  2. Build and run the application using Filament v1.56.0
  3. Deploy to a physical Android device
  4. Observe that non-directional lights are not visible in the scene
  5. Deploy the same application to an Android emulator to confirm lights render correctly there

Expected behavior
All light types (both directional and non-directional) should be rendered correctly on physical Android devices, matching the behavior seen in emulators.

Desktop:

  • OS: macOS 15.2
  • Development Environment: Android Studio Ladybug Feature Drop | 2024.2.2 (Build #AI-242.23726.103.2422.12816248)
  • Hardware: Apple M4 Pro, 64 GB

Smartphone (please complete the following information):

  • Device: Pixel 8
  • OS: Android 15
  • Build Tools: android_gradle_plugin 8.8.0

Additional context

  • Issue is reproducible with Filament v1.56.0
  • Issue is resolved by reverting to Filament v1.52.0
  • DIRECTIONAL lights (sun or simple DIRECTIONAL) work correctly
  • Development environment details:
    • Runtime version: 21.0.4+-12422083-b607.1 aarch64
    • VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
    • Memory: 4096M
    • Cores: 14
    • Metal Rendering: ON
    • Non-Bundled Plugins: com.github.copilot (1.5.30-242)
@BostonLeeK
Copy link

BostonLeeK commented Jan 21, 2025

Same problem but with WebGL
after update and adding non-directional light in scene WebGL crash (geometry not rendering)

[.WebGL-00005DE4032FB800] GL_INVALID_OPERATION: It is undefined behaviour to use a uniform buffer that is too small.

@pixelflinger pixelflinger self-assigned this Jan 21, 2025
@pixelflinger pixelflinger added android Issue/feature request for Android only web Issue/request for WASM/WebGL labels Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
android Issue/feature request for Android only web Issue/request for WASM/WebGL
Projects
None yet
Development

No branches or pull requests

3 participants