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

Exporter for Blender / Emissive properties #12522

Closed
3 of 13 tasks
JustJarethB opened this issue Oct 29, 2017 · 2 comments
Closed
3 of 13 tasks

Exporter for Blender / Emissive properties #12522

JustJarethB opened this issue Oct 29, 2017 · 2 comments

Comments

@JustJarethB
Copy link

JustJarethB commented Oct 29, 2017

Description of the problem

Hi, I have a project in Blender which I downloaded from a tutorial (.blend Here ). It contains a few Emissive materials, one of which is meant for lights, the other for highlights (think led strip). Using the exporter and loader, these materials are not showing as emissive of any sort. I have gone through the json manually and set some of the "colorEmissive" values which has given a more pleasing result, but is still not what I would like.
Hopefully I'm not missing something here..

  1. I believe there is a slight issue with the exporter script that's has been written
  2. Would it be possible to have some way of automatically creating a light source for emissive materials so they behave more similarly to those on Blender? Perhaps even another Material type?

Extract from JSON
Adapted:
{ "depthTest":true, "blending":1, "vertexColors":false, "transparent":false, "colorSpecular":[0.5,0.5,0.5], "colorEmissive":[0,18,124], "DbgIndex":1, "wireframe":false, "opacity":1, "shading":"phong", "specularCoef":50, "visible":true, "colorDiffuse":[0.0264838,0,0.38812], "doubleSided":true, "DbgColor":15597568, "DbgName":"RedLines", "depthWrite":true }

Three.js version
  • Dev
  • r87
  • ...
Browser
  • All of them
  • Chrome
  • Firefox
  • Internet Explorer
OS
  • All of them
  • Windows
  • macOS
  • Linux
  • Android
  • iOS
Hardware Requirements (graphics card, VR Device, ...)

Take care :)

@donmccurdy
Copy link
Collaborator

I believe there is a slight issue with the exporter script that's has been written

This is probably a missing feature in the blender exporter, yes. The glTF Blender Exporter does support emissives, but would require some tweaks to the materials in Blender to convert them to PBR and freeze mirror transformations.

Would it be possible to have some way of automatically creating a light source for emissive materials so they behave more similarly to those on Blender? Perhaps even another Material type?

Unfortunately this isn't feasible — what you want is probably gaussian blur in post-processing (e.g. UnrealBloomPass), not a light source, and a model loader can't automatically add that for you.

@Mugen87
Copy link
Collaborator

Mugen87 commented May 31, 2018

The JSON Blender exporter has been removed with R93 (#14117).

Also see: https://threejs.org/docs/#manual/introduction/Loading-3D-models

@Mugen87 Mugen87 closed this as completed May 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants