Aframe: Gltf model doesn't show the opacity

Created on 4 Sep 2018  路  9Comments  路  Source: aframevr/aframe

Im trying to make an gltf object,

First i make that object in aframe inspector and export them with this tools in the picture
screenshot_2018-09-04_05-46-29

then, im place the gltf model.and it doesn't show the opacity anymore
k

Cheers,

bug

All 9 comments

Are you able to share a demo of the scene?

without gltf :
https://sharp-penguin.glitch.me/
code> https://glitch.com/edit/#!/sharp-penguin

with gltf :
https://zesty-hide.glitch.me/
code> https://glitch.com/edit/#!/zesty-hide

Confirmed the issue.

Here's what I think is causing the problem: the material component uses a default alphaTest of 0, whereas three.js uses a default of 0.5. That would be fine (both are reasonable values), but THREE.GLTFExporter has to choose _either_ opacity or alphaTest to write, it cannot export both to glTF. Because alphaTest appears to be non-default, compared to three.js, alphaTest is chosen.

The workaround would presumably be to set alphaTest: 0.5 on the model, but that isn't fixing the issue for me on a quick test. Will need to look more closely at why that is.

ok thank you, i will waiting

any news?

Transparency export is working for me with the master branch of aframe-inspector. I think we just need a new release to update it. In the meantime, adding a custom build of the inspector to your scene will work around the problem:

<a-scene inspector="url: https://aframe-inspector-20181128-abjyfktcpl.now.sh/aframe-inspector.min.js">

<!-- ... -->

</a-scene>

Okay, thank you so much

This is working on master and fix will ship in 0.9.0

Ok ,thank you

Was this page helpful?
0 / 5 - 0 ratings