Menu

#11 Transparent materials

open
nobody
Material (2)
5
2009-05-06
2009-05-06
Anonymous
No

Transparent materials (using Blender's Alpha slider) work not as expected, the material will be exported as either totally opaque or totally transparent.
Fixed by changing line 606 of trainz_export_xml.py.
original:
stringOpacity = '<opacity>' + str(round( mat[0].alpha )) + '</opacity>'
changed to:
stringOpacity = '<opacity>' + str(round(mat[0].alpha, NDIGITS)) + '</opacity>'

Discussion


Log in to post a comment.

MongoDB Logo MongoDB