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

Cannot export lights #786

Closed
fire opened this issue Nov 22, 2019 · 8 comments
Closed

Cannot export lights #786

fire opened this issue Nov 22, 2019 · 8 comments
Labels
bug Something isn't working exporter This involves or affects the export process
Milestone

Comments

@fire
Copy link

fire commented Nov 22, 2019

Describe the bug

Blender 2.81 cannot export punctual lights with the splash art scene.

To Reproduce

Steps to reproduce the behavior:

  1. Export file as glb
  2. Selected punctual lights and cameras

Expected behavior

Glb file should be created.

Screenshots

Screenshot from 2019-11-22 09-08-30

.blend file/ .gltf
Blender 2 Truncated.zip

https://cloud.blender.org/p/gallery/5dd6d7044441651fa3decb56

Version

  • OS: Fedora 31 Linux
  • Blender Version: 2.81
@julienduroure julienduroure added bug Something isn't working exporter This involves or affects the export process labels Nov 22, 2019
@julienduroure julienduroure added this to the Blender 2.82 milestone Nov 22, 2019
@julienduroure
Copy link
Collaborator

Confirmed.
Bug is when we are trying to export "area" lights
(default scene --> select light --> change type from "point" to "area" --> export --> bug)

@fire
Copy link
Author

fire commented Nov 22, 2019

Is an area light just geometry with emission?

I think they should just be ignored instead of crashing...

@julienduroure
Copy link
Collaborator

@fire An area light is directional, where an emissive plane is multidirectional.

--> We are going to ignore these type of light for now

julienduroure added a commit that referenced this issue Nov 23, 2019
Fix #786 crash trying to export area lights
@asarra
Copy link

asarra commented Feb 7, 2021

push
This bug still exists!

@donmccurdy
Copy link
Contributor

@asarra This is not a bug — not all of Blender's light types exist in glTF or other software. Only point, spot, and directional lights can be exported to glTF 2.0 currently. If you're looking for something else to be added to glTF, I would recommend commenting on KhronosGroup/glTF#1940.

@asarra
Copy link

asarra commented Feb 7, 2021

Thanks and sorry for my ignorant comment. I didn't know that this was the case. I'm new to this blender and unity stuff.
May I ask if there's an equivalent thing that can be done to give an area light effect (want to add "led stripes" onto the sides of a room)?

@donmccurdy
Copy link
Contributor

Are you trying to export a model to bring into any particular software? The answer might depend a little on that, but I'd probably suggest using an emissive effect (in recent versions of Blender, there's an Emissive socket on the Principled BSDF material). You may need to enable a bloom post-processing effect to get a good visual result from the emissive material — this would be true in Blender's Eevee renderer, and in realtime renderers like three.js and Unity. Baked lighting can also give some nice effects with a bit more work.

@asarra
Copy link

asarra commented Feb 8, 2021

Hey again.
I was trying to import it in unity and baking it. It didn't work as I've expected it. It didn't look the same like in Blender.
Could not get my head around lights in general in unity, thus I've switched to three js now.

I've replaced the area lights with 4 directional lights and made the walls a bit shorter so that the sun lights can go through the small gaps. Not what I really wanted either, but I do not have another choice for now, I suppose.

I'll look into that bloom post-processing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working exporter This involves or affects the export process
Projects
None yet
Development

No branches or pull requests

4 participants