NewGRF Technical Discussions • apply transparency
Transport Tycoon Forums - Index page [Unofficial]
February 27, 2026
hey, i'm a bloody beginner in newgrf-making and currently lost in code and my research and ai couldn't solve my problem. i have an image as attached with backgroundcolor #0000ff for transparency, as descriped on the NMLTutorial (https://www.tt-wiki.net/wiki/NMLTutorial/Graphic_files).
that's my code so far (simplified):
Code:
grf { grfid: "QD\01\01"; name: string(STR_GRF_NAME); desc: string(STR_GRF_DESC); version: 1;min_compatible_version: 1;}template tmpl_static_tile() { [ 0, 0, 64, 31, -31, 0 ]}spriteset(set_l_tile_0, "images/stdBlanc-Object_C0ZpthL000#00FF00.png") { tmpl_static_tile() }spritelayout layout_l_tile_0 { ground { sprite: set_l_tile_0; } }item(FEAT_OBJECTS, obj_l_tile_rotierbar, 0x55) { property { class: "F246"; classname: string(STR_CLASS_BLANC); name: string(STR_OBJ_BLANCOBJECT);climates_available: bitmask(CLIMATE_TEMPERATE, CLIMATE_ARCTIC, CLIMATE_TROPICAL);introduction_date: date(1,1,1);object_flags: bitmask(OBJ_FLAG_ALLOW_BRIDGE); size: [1,1]; } graphics { default: layout_l_tile_0; }}
everything's showing as supposed, except that the transparent parts are bugging (see attached file).
for compiling i used the command: C:\Users\...\test>nmlc -c test.nml
do you have any suggestions on how to fix it or any more links, where i can read more about that issue? thx!
Statistics: Posted by AskingForAFriend — 27 Feb 2026 14:24
Discussion in the ATmosphere