assimp / assimp/assimp

Bug: Light position isnt correctly imported

Open
#6,364 3 comments 0 reactions 0 assignees View on GitHub
Bug glTF-Common Lights
Dominant language
C++
Stars
13.2k
Forks
3.2k
Avg merge
2d 8h
Merged PRs (30d)
21

Description

I have a .glb file with 5 point lights in it that have different positions. If you open the file in blender you can clearly see this. However, with assimp the mPosition of each aiLight is (0,0,0).

I have attached the file in question.

Assimp Version: v6.0.2

[LightsPunctualLamp.zip](https://github.com/user-attachments/files/22648240/LightsPunctualLamp.zip)

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue with the attached .glb file using Assimp v6.0.2, then trace how its five point lights are imported into aiLight::mPosition. Done means the imported light positions match those visible in Blender instead of all being (0,0,0).

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
computer-graphics
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.