Skip to content

Spot and Point Lights not working on Linux/OpenGL? #3338

Closed

Description

I'm adding support for spot and point lights in my app and noticed that they didn't show up. To figure out if I'm doing something wrong in my implementation, I've created a scene in Blender which I've exported to (binary) GLTF. I've attached the test files. Next, I used the gltf_viewer app and I'm not seeing the lights there either.

Screenshot from Blender:

image

image

Result in gltf_viewer:

image

Started like ./gltf_viewer ./assets/models/spotlight-test-v1.glb using a fresh build.

Output gltf_viewer:

FEngine (64 bits) created at 0x7f805a70f010 (threading is enabled)
FEngine resolved backend: OpenGL
NVIDIA Corporation, GeForce RTX 2080 SUPER/PCIe/SSE2, 4.1.0 NVIDIA 455.45.01, 4.10 NVIDIA via Cg compiler
OS version: 0
Renderer: Commands High watermark 5 KiB (0%), 160 commands, 32 bytes/command
CircularBuffer: High watermark 54 KiB (1%)

System info:

$ uname -a
Linux arch2080 5.9.10-arch1-1 #1 SMP PREEMPT Sun, 22 Nov 2020 14:16:59 +0000 x86_64 GNU/Linux

$ nvidia-smi 
Fri Dec  4 09:52:50 2020       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 455.45.01    Driver Version: 455.45.01    CUDA Version: 11.1     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  GeForce RTX 208...  Off  | 00000000:01:00.0  On |                  N/A |
|  0%   41C    P8    17W / 250W |   1881MiB /  7979MiB |     19%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|

light-test-model.zip

update I get the same behavior on Windows 10, similar pc specs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions