donmccurdy / three-gltf-viewer

Drag-and-drop preview for glTF 2.0 models in WebGL using three.js.
https://gltf-viewer.donmccurdy.com/
MIT License
2.09k stars 534 forks source link

A phenomenon in which transparent materials cannot be applied. #275

Closed drop360 closed 2 years ago

drop360 commented 2 years ago

A phenomenon in which transparent materials cannot be applied. I am using 3Ds max. In Max, transparency seems to be applied, but if you change the extension to gltf and pass it over, the transparency of the material is not applied. Are there any options that should be given separately?

donmccurdy commented 2 years ago

I don't know much about 3DS Max, but in most software there's more than one way to set up transparent materials, and not all of those may be supported by their exporters. If you're using the Babylon 3DS Max glTF exporter, this might be the documentation to check:

https://doc.babylonjs.com/extensions/Exporters/3DSMax_to_glTF#pbr-materials

I'd also recommend checking the model in a couple other viewers:

If the transparency is consistently missing in two or more, the problem is presumably with the exporter process rather than the viewer.

If you need to tweak the model after exporting from 3DS Max, I would suggest Gestaltor or Blender (Alpha Mode = Alpha Blend) and that should export back to glTF fine.