Can you tell me how to get light data in Assimp? I need the light properties as well as…
- User
Can you tell me how to get light data in Assimp? I need the light properties as well as their position and type (directional, point, flash).
- Assistant
To retrieve light data in Assimp, you will need to traverse the imported scene and extract relevant information from the light nodes. Here is a step-by-step guide:
-
After successfully importing the model using Assimp, you can access the scene using the
aiSceneobject. Let's assume you have this object namedscene.
-