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

No data in Light vector -> std::vector<Light> lights #272

Closed
AMSDesha opened this issue Jun 29, 2020 · 2 comments
Closed

No data in Light vector -> std::vector<Light> lights #272

AMSDesha opened this issue Jun 29, 2020 · 2 comments
Labels

Comments

@AMSDesha
Copy link

Describe the issue

Followed by #271

I exported a gltf model from 3DS max which contain Free Direct lights.
I loaded the gltf model from tinygltf like below.

input_filename = gltf_file_name
loader.LoadASCIIFromFile(&model, &err, &warn, input_filename );

"std::vector lights" does not contain any data while "std::vector nodes" contain lights as nodes.
Why no data in light vector ? Please advice.

To Reproduce

  • Windows10
  • MSVC version 15.9, No specific compiler options.
  • gltfdata.zip

Expected behaviour

I expect data in "std::vector lights" of the Model class, Once loaded the .gltf file

Screenshots

Additional context

@syoyo syoyo added the invalid label Jun 29, 2020
@syoyo
Copy link
Owner

syoyo commented Jun 29, 2020

There is no KHR_lights_punctual description in glTF data.

You should export light data to follow KHR_lights_punctual specification.

KhronosGroup/glTF#1223

@syoyo syoyo closed this as completed Jun 29, 2020
@AMSDesha
Copy link
Author

It worked.
Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants