cnr-isti-vclab/vcglib

Exported OBJ materials are transparent instead of opaque

brettle opened this issue · 1 comments

For opaque materials, Tr should be 0.0 not 1.0 (see here). The problem appears to be here:

mtl.Tr = (float)(f.C()[3])/255.0f;//alpha

fixed! Thanks!