load gltf model file:
export to babylon format model file:
My question is why there is a perspective between transparent objects when I switch to Babylon format.
What parameters do I need to adjust for this plugin?
The transparency dropdown. In your picture, the value looks like a bunch of Asian characters. Checking the published source, it is right there. Think I cannot help you other than 2 double check the .zip file corruption.
bpy.types.Material.parallaxScaleBias = bpy.props.FloatProperty(
name='Scale Bias',
description='A scaling factor that determine which "depth" the height\nmap should represent for Parallax',
default = DEF_PARALLAX_SCALE_BIAS, min = 0, max = 1.0
)
bpy.types.Material.useParallaxOcclusion = bpy.props.BoolProperty(
name='Parallax Occlusion',
description="When checked, the outcome is way more realistic than traditional Parallax,\nbut you can expect a performance hit that's worth consideration",
default = DEF_PARALLAX_OCCLUSION
)
bpy.types.Material.transparencyMode = bpy.props.EnumProperty(
name='', # use a row heading for label to reduce dropdown width
description='How the alpha of this material is to be handled. No meaning unless exporting PBR materials.',
items = ((PBRMATERIAL_OPAQUE , 'Opaque' , 'Alpha channel is not used.'),
(PBRMATERIAL_ALPHATEST , 'Alpha Test' , 'Pixels are discarded below a certain threshold defined by the alpha cutoff value.'),
(PBRMATERIAL_ALPHABLEND , 'Alpha Blend' , 'Pixels are blended (according to the alpha mode) with\n the already drawn pixels in the current frame buffer.'),
(PBRMATERIAL_ALPHATESTANDBLEND, 'Alpha Test & Blend', 'Pixels are blended after being higher than the cutoff threshold.')
),
default = DEF_TRANSPARENCY_MODE
)
bpy.types.Material.alphaCutOff = bpy.props.FloatProperty(
1 Like