MantisBT
Mantis Bug Tracker Workflow

View Revisions: Issue #32524 All Revisions ] Back to Issue ]
Summary 0032524: Data Exchange, RWGltf_CafWriter - avoid writing translucent metallic materials
Revision 2021-08-10 19:26 by kgv
Steps To Reproduce
pload OCAF XDE VISUALIZATION MODELING
NewDocument D1 BinXCAF
box b 1 1 1
explode b e
explode b f
XAddShape D1 b
XSetColor D1 b_1 RED s
XSetColor D1 b_2 YELLOW 0.3 s
XSetColor D1 b_11 WHITE 0.2 c
XSetColor D1 b_10 CYAN c
XAddColor D1 0.5 0.5 1 0.1

vinit v1/v1
vrenderparams -shadingModel PBR
XDisplay -dispMode 1 D1
vfit
# OK - transparency preserved

WriteGltf D1 test.glb
ReadGltf D2 test.glb
vinit v2/v1
vrenderparams -shadingModel PBR
XDisplay -dispMode 1 D2
vfit
# KO - transparency is lost due to metallic=1.0


Existing case:
test de_mesh obj_read ship_boat 1

Result: windows are not transparent in PBR view.
Revision 2021-08-10 17:33 by kgv
Steps To Reproduce
pload OCAF XDE VISUALIZATION MODELING
NewDocument D1 BinXCAF
box b 1 1 1
explode b e
explode b f
XAddShape D1 b
XSetColor D1 b_1 RED s
XSetColor D1 b_2 YELLOW 0.3 s
XSetColor D1 b_11 WHITE 0.2 c
XSetColor D1 b_10 CYAN c
XAddColor D1 0.5 0.5 1 0.1

vinit v1/v1
vrenderparams -shadingModel PBR
XDisplay -dispMode 1 D1
vfit
# OK - transparency preserved

WriteGltf D1 test.glb
ReadGltf D2 test.glb
vinit v2/v1
vrenderparams -shadingModel PBR
XDisplay -dispMode 1 D2
vfit
# KO - transparency is lost due to metallic=1.0
Revision 2021-08-10 17:17 by kgv
Steps To Reproduce


Copyright © 2000 - 2021 MantisBT Team
Powered by Mantis Bugtracker