[Mod] Image Loader [0.1.0] [imageloader]
- Hybrid Dog
- Member
- Posts: 2834
- Joined: Thu Nov 01, 2012 12:46
- GitHub: HybridDog
- Hybrid Dog
- Member
- Posts: 2834
- Joined: Thu Nov 01, 2012 12:46
- GitHub: HybridDog
Re: [Mod] Image Loader [0.1.0] [imageloader]
kaeza, would it work better if you use the real colour values for the wool nodes instead of the colour which the wool is coloured with and add the colours of the default textures?
Edit: l like this mod.
download/file.php?mode=view&id=1683
Code: Select all
mogrify -resize 1x1! *.png l found that at minetest irc log
for i in *.png; do echo ${i}; identify -verbose $i | grep "Histogram:
1:"; done
wool_black.png
Histogram:
1: ( 30, 30, 30) #1E1E1E gray(30,30,30)
1: ( 1, 1, 1) #010101 gray(1,1,1)
wool_blue.png
Histogram:
1: ( 0, 73,145) #004991 srgb(0,73,145)
wool_brown.png
Histogram:
1: ( 86, 43, 0) #562B00 srgb(86,43,0)
wool_cyan.png
Histogram:
1: ( 0,131,139) #00838B srgb(0,131,139)
wool_dark_green.png
Histogram:
1: ( 33,103, 0) #216700 srgb(33,103,0)
wool_dark_grey.png
Histogram:
1: ( 59, 59, 59) #3B3B3B gray(59,59,59)
1: ( 1, 1, 1) #010101 gray(1,1,1)
wool_green.png
Histogram:
1: ( 92,216, 28) #5CD81C srgb(92,216,28)
wool_grey.png
Histogram:
1: (131,131,131) #838383 gray(131,131,131)
1: ( 1, 1, 1) #010101 gray(1,1,1)
wool_magenta.png
Histogram:
1: (201, 3,109) #C9036D srgb(201,3,109)
wool_orange.png
Histogram:
1: (213, 82, 22) #D55216 srgb(213,82,22)
wool_pink.png
Histogram:
1: (255,132,132) #FF8484 srgb(255,132,132)
wool_red.png
Histogram:
1: (168, 18, 18) #A81212 srgb(168,18,18)
wool_violet.png
Histogram:
1: ( 93, 3,169) #5D03A9 srgb(93,3,169)
wool_white.png
Histogram:
1: (220,220,220) #DCDCDC gray(220,220,220)
1: ( 1, 1, 1) #010101 gray(1,1,1)
wool_yellow.png
Histogram:
1: (254,225, 16) #FEE110 srgb(254,225,16)
for i in *.png; do echo ${i}; identify -verbose $i | grep "Histogram:
1:"; done
bubble.png
Histogram:
1: (191,206,243,110) #BFCEF36E srgba(191,206,243,0.431373)
crack_anylength.png
Histogram:
1: ( 11, 11, 11, 38) #0B0B0B26 graya(11,11,11,0.14902)
default_apple.png
Histogram:
1: (149, 22, 10, 79) #95160A4F srgba(149,22,10,0.309804)
default_book.png
Histogram:
1: (111, 87, 43,141) #6F572B8D srgba(111,87,43,0.552941)
default_bookshelf.png
Histogram:
1: ( 91, 79, 45) #5B4F2D srgb(91,79,45)
default_brick.png
Histogram:
1: (118, 71, 69) #764745 srgb(118,71,69)
default_bronze_block.png
Histogram:
1: (188,112, 16) #BC7010 srgb(188,112,16)
default_bronze_ingot.png
Histogram:
1: (192,107, 52,125) #C06B347D srgba(192,107,52,0.490196)
default_cactus_side.png
Histogram:
1: ( 54,112, 21) #367015 srgb(54,112,21)
default_cactus_top.png
Histogram:
1: ( 52,116, 15) #34740F srgb(52,116,15)
default_chest_front.png
Histogram:
1: (137,108, 68) #896C44 srgb(137,108,68)
default_chest_lock.png
Histogram:
1: (141,113, 75) #8D714B srgb(141,113,75)
default_chest_side.png
Histogram:
1: (139,108, 65) #8B6C41 srgb(139,108,65)
default_chest_top.png
Histogram:
1: (148,115, 69) #947345 srgb(148,115,69)
default_clay_brick.png
Histogram:
1: ( 99, 28, 28,114) #631C1C72 srgba(99,28,28,0.447059)
default_clay_lump.png
Histogram:
1: ( 84, 84, 84, 79) #5454544F graya(84,84,84,0.309804)
default_clay.png
Histogram:
1: (183,183,183) #B7B7B7 gray(183,183,183)
1: ( 1, 1, 1) #010101 gray(1,1,1)
default_cloud.png
Histogram:
1: (255,255,255) #FFFFFF gray(255,255,255)
1: (255,255,255) #FFFFFF gray(255,255,255)
default_coal_block.png
Histogram:
1: ( 58, 58, 58) #3A3A3A gray(58,58,58)
1: ( 1, 1, 1) #010101 gray(1,1,1)
default_coal_lump.png
Histogram:
1: ( 10, 10, 10, 92) #0A0A0A5C graya(10,10,10,0.360784)
default_cobble.png
Histogram:
1: ( 88, 85, 83) #585553 srgb(88,85,83)
default_copper_block.png
Histogram:
1: (194,128, 65) #C28041 srgb(194,128,65)
default_copper_ingot.png
Histogram:
1: (178,136, 95,125) #B2885F7D srgba(178,136,95,0.490196)
default_copper_lump.png
Histogram:
1: (148,114, 79, 92) #94724F5C srgba(148,114,79,0.360784)
default_desert_cobble.png
Histogram:
1: (154, 98, 80) #9A6250 srgb(154,98,80)
default_desert_sand.png
Histogram:
1: (207,166, 98) #CFA662 srgb(207,166,98)
default_desert_stone_brick.png
Histogram:
1: (123, 76, 59) #7B4C3B srgb(123,76,59)
default_desert_stone.png
Histogram:
1: (130, 79, 61) #824F3D srgb(130,79,61)
default_diamond_block.png
Histogram:
1: ( 93,186,189) #5DBABD srgb(93,186,189)
default_diamond.png
Histogram:
1: ( 62,160,158,107) #3EA09E6B srgba(62,160,158,0.419608)
default_dirt.png
Histogram:
1: ( 96, 65, 40) #604128 srgb(96,65,40)
default_dry_shrub.png
Histogram:
1: (102, 67, 18, 49) #66431231 srgba(102,67,18,0.192157)
default_fence_overlay.png
Histogram:
1: (232,119,119,145) #E8777791 srgba(232,119,119,0.568627)
default_furnace_bottom.png
Histogram:
1: (102, 98, 96) #666260 srgb(102,98,96)
default_furnace_fire_bg.png
Histogram:
1: ( 0, 0, 0,160) #000000A0 graya(0,0,0,0.627451)
default_furnace_fire_fg.png
Histogram:
1: (223,126, 39,160) #DF7E27A0 srgba(223,126,39,0.627451)
default_furnace_front_active.png
Histogram:
1: ( 97, 85, 67) #615543 srgb(97,85,67)
default_furnace_front.png
Histogram:
1: ( 65, 62, 60) #413E3C srgb(65,62,60)
default_furnace_side.png
Histogram:
1: ( 95, 91, 89) #5F5B59 srgb(95,91,89)
default_furnace_top.png
Histogram:
1: (102, 98, 96) #666260 srgb(102,98,96)
default_glass_detail.png
Histogram:
1: (203,203,232, 13) #CBCBE80D srgba(203,203,232,0.0509804)
default_glass.png
Histogram:
1: (195,195,228, 54) #C3C3E436 srgba(195,195,228,0.211765)
default_gold_block.png
Histogram:
1: (233,205, 32) #E9CD20 srgb(233,205,32)
default_gold_ingot.png
Histogram:
1: (204,176, 21,125) #CCB0157D srgba(204,176,21,0.490196)
default_gold_lump.png
Histogram:
1: (220,198, 10, 92) #DCC60A5C srgba(220,198,10,0.360784)
default_grass_1.png
Histogram:
1: ( 89,118, 58, 16) #59763A10 srgba(89,118,58,0.0627451)
default_grass_2.png
Histogram:
1: ( 89,118, 59, 26) #59763B1A srgba(89,118,59,0.101961)
default_grass_3.png
Histogram:
1: ( 86,116, 58, 47) #56743A2F srgba(86,116,58,0.184314)
default_grass_4.png
Histogram:
1: ( 82,114, 53, 85) #52723555 srgba(82,114,53,0.333333)
default_grass_5.png
Histogram:
1: ( 79,107, 53,125) #4F6B357D srgba(79,107,53,0.490196)
default_grass_footsteps.png
Histogram:
1: ( 81,108, 18) #516C12 srgb(81,108,18)
default_grass.png
Histogram:
1: ( 61, 90, 19) #3D5A13 srgb(61,90,19)
default_grass_side.png
Histogram:
1: ( 70, 89, 30, 79) #46591E4F srgba(70,89,30,0.309804)
default_gravel.png
Histogram:
1: ( 86, 86, 85) #565655 srgb(86,86,85)
default_ice.png
Histogram:
1: (164,164,252) #A4A4FC srgb(164,164,252)
default_iron_lump.png
Histogram:
1: (195,108, 71, 92) #C36C475C srgba(195,108,71,0.360784)
default_junglegrass.png
Histogram:
1: ( 63,105, 25,165) #3F6919A5 srgba(63,105,25,0.647059)
default_jungleleaves.png
Histogram:
1: ( 21, 29, 16,160) #151D10A0 srgba(21,29,16,0.627451)
default_junglesapling.png
Histogram:
1: ( 49, 39, 15, 54) #31270F36 srgba(49,39,15,0.211765)
default_jungletree.png
Histogram:
1: ( 80, 74, 37) #504A25 srgb(80,74,37)
default_jungletree_top.png
Histogram:
1: (138,117, 80) #8A7550 srgb(138,117,80)
default_junglewood.png
Histogram:
1: (132,118, 78) #84764E srgb(132,118,78)
default_ladder.png
Histogram:
1: (124, 91, 35,147) #7C5B2393 srgba(124,91,35,0.576471)
default_lava_flowing_animated.png
Histogram:
1: (204, 83, 8) #CC5308 srgb(204,83,8)
default_lava.png
Histogram:
1: (199, 81, 7) #C75107 srgb(199,81,7)
default_lava_source_animated.png
Histogram:
1: (204, 83, 8) #CC5308 srgb(204,83,8)
default_leaves.png
Histogram:
1: ( 35, 52, 30,160) #23341EA0 srgba(35,52,30,0.627451)
default_mese_block.png
Histogram:
1: (226,228, 2) #E2E402 srgb(226,228,2)
default_mese_crystal_fragment.png
Histogram:
1: (241,243, 62, 39) #F1F33E27 srgba(241,243,62,0.152941)
default_mese_crystal.png
Histogram:
1: (243,245, 48,119) #F3F53077 srgba(243,245,48,0.466667)
default_mineral_coal.png
Histogram:
1: ( 5, 5, 5, 55) #05050537 graya(5,5,5,0.215686)
default_mineral_copper.png
Histogram:
1: (164,121, 71, 55) #A4794737 srgba(164,121,71,0.215686)
default_mineral_diamond.png
Histogram:
1: (125,247,245, 55) #7DF7F537 srgba(125,247,245,0.215686)
default_mineral_gold.png
Histogram:
1: (213,192, 11, 55) #D5C00B37 srgba(213,192,11,0.215686)
default_mineral_iron.png
Histogram:
1: (152, 86, 53, 63) #9856353F srgba(152,86,53,0.247059)
default_mineral_mese.png
Histogram:
1: (224,227, 2, 98) #E0E30262 srgba(224,227,2,0.384314)
default_mossycobble.png
Histogram:
1: ( 87, 90, 68) #575A44 srgb(87,90,68)
default_nc_back.png
Histogram:
1: (165, 98,142) #A5628E srgb(165,98,142)
default_nc_front.png
Histogram:
1: ( 95, 80, 82) #5F5052 srgb(95,80,82)
default_nc_rb.png
Histogram:
1: (126,112, 91) #7E705B srgb(126,112,91)
default_nc_side.png
Histogram:
1: (212,116,183) #D474B7 srgb(212,116,183)
default_obsidian_brick.png
Histogram:
1: ( 19, 21, 23) #131517 srgb(19,21,23)
default_obsidian_glass.png
Histogram:
1: ( 20, 22, 24, 46) #1416182E srgba(20,22,24,0.180392)
default_obsidian.png
Histogram:
1: ( 20, 22, 25) #141619 srgb(20,22,25)
default_obsidian_shard.png
Histogram:
1: ( 31, 38, 49, 39) #1F263127 srgba(31,38,49,0.152941)
default_paper.png
Histogram:
1: (222,226,218,100) #DEE2DA64 srgba(222,226,218,0.392157)
default_papyrus.png
Histogram:
1: ( 95,133, 34,137) #5F852289 srgba(95,133,34,0.537255)
default_pine_needles.png
Histogram:
1: ( 14, 36, 21,175) #0E2415AF srgba(14,36,21,0.686275)
default_pine_sapling.png
Histogram:
1: ( 26, 48, 25, 55) #1A301937 srgba(26,48,25,0.215686)
default_pinetree.png
Histogram:
1: ( 80, 69, 60) #50453C srgb(80,69,60)
default_pinetree_top.png
Histogram:
1: (191,164,132) #BFA484 srgb(191,164,132)
default_pinewood.png
Histogram:
1: (221,185,129) #DDB981 srgb(221,185,129)
default_rail_crossing.png
Histogram:
1: (134,120, 91,183) #86785BB7 srgba(134,120,91,0.717647)
default_rail_curved.png
Histogram:
1: (135,114, 78,110) #87724E6E srgba(135,114,78,0.431373)
default_rail.png
Histogram:
1: (135,114, 78,147) #87724E93 srgba(135,114,78,0.576471)
default_rail_t_junction.png
Histogram:
1: (133,120, 94,149) #85785E95 srgba(133,120,94,0.584314)
default_sand.png
Histogram:
1: (214,208,159) #D6D09F srgb(214,208,159)
default_sandstone_brick.png
Histogram:
1: (187,183,135) #BBB787 srgb(187,183,135)
default_sandstone.png
Histogram:
1: (198,193,143) #C6C18F srgb(198,193,143)
default_sapling.png
Histogram:
1: ( 66, 59, 41, 54) #423B2936 srgba(66,59,41,0.211765)
default_sign.png
Histogram:
1: (177,148, 95,202) #B1945FCA srgba(177,148,95,0.792157)
default_sign_wall.png
Histogram:
1: (158,125, 72,159) #9E7D489F srgba(158,125,72,0.623529)
default_snowball.png
Histogram:
1: (221,227,236, 94) #DDE3EC5E srgba(221,227,236,0.368627)
default_snow.png
Histogram:
1: (234,235,255) #EAEBFF srgb(234,235,255)
default_snow_side.png
Histogram:
1: (161,171,162, 77) #A1ABA24D srgba(161,171,162,0.301961)
default_steel_block.png
Histogram:
1: (142,142,142) #8E8E8E gray(142,142,142)
1: ( 1, 1, 1) #010101 gray(1,1,1)
default_steel_ingot.png
Histogram:
1: (184,183,181,125) #B8B7B57D srgba(184,183,181,0.490196)
default_stick.png
Histogram:
1: ( 81, 55, 21, 39) #51371527 srgba(81,55,21,0.152941)
default_stone_brick.png
Histogram:
1: ( 98, 96, 95) #62605F srgb(98,96,95)
default_stone.png
Histogram:
1: ( 97, 94, 93) #615E5D srgb(97,94,93)
default_tnt_bottom.png
Histogram:
1: (146, 45, 31) #922D1F srgb(146,45,31)
default_tnt_side.png
Histogram:
1: (159, 88, 88) #9F5858 srgb(159,88,88)
default_tnt_top.png
Histogram:
1: (121, 37, 26) #79251A srgb(121,37,26)
default_tool_bronzeaxe.png
Histogram:
1: (145, 85, 36, 56) #91552438 srgba(145,85,36,0.219608)
default_tool_bronzepick.png
Histogram:
1: (142, 84, 36, 72) #8E542448 srgba(142,84,36,0.282353)
default_tool_bronzeshovel.png
Histogram:
1: (167, 98, 49, 71) #A7623147 srgba(167,98,49,0.278431)
default_tool_bronzesword.png
Histogram:
1: (168, 92, 36, 78) #A85C244E srgba(168,92,36,0.305882)
default_tool_diamondaxe.png
Histogram:
1: ( 75,110, 92, 56) #4B6E5C38 srgba(75,110,92,0.219608)
default_tool_diamondpick.png
Histogram:
1: ( 79,115, 98, 72) #4F736248 srgba(79,115,98,0.282353)
default_tool_diamondshovel.png
Histogram:
1: ( 87,136,121, 71) #57887947 srgba(87,136,121,0.278431)
default_tool_diamondsword.png
Histogram:
1: ( 53,131,125, 78) #35837D4E srgba(53,131,125,0.305882)
default_tool_meseaxe.png
Histogram:
1: (149,137, 31, 56) #95891F38 srgba(149,137,31,0.219608)
default_tool_mesepick.png
Histogram:
1: (151,140, 26, 72) #978C1A48 srgba(151,140,26,0.282353)
default_tool_meseshovel.png
Histogram:
1: (170,161, 44, 71) #AAA12C47 srgba(170,161,44,0.278431)
default_tool_mesesword.png
Histogram:
1: (127,127, 23, 78) #7F7F174E srgba(127,127,23,0.305882)
default_tool_steelaxe.png
Histogram:
1: (143,129,112, 56) #8F817038 srgba(143,129,112,0.219608)
default_tool_steelpick.png
Histogram:
1: (145,132,116, 72) #91847448 srgba(145,132,116,0.282353)
default_tool_steelshovel.png
Histogram:
1: (163,152,139, 71) #A3988B47 srgba(163,152,139,0.278431)
default_tool_steelsword.png
Histogram:
1: (160,157,153, 78) #A09D994E srgba(160,157,153,0.305882)
default_tool_stoneaxe.png
Histogram:
1: ( 95, 81, 64, 56) #5F514038 srgba(95,81,64,0.219608)
default_tool_stonepick.png
Histogram:
1: ( 94, 80, 64, 70) #5E504046 srgba(94,80,64,0.27451)
default_tool_stoneshovel.png
Histogram:
1: (101, 90, 76, 71) #655A4C47 srgba(101,90,76,0.278431)
default_tool_stonesword.png
Histogram:
1: ( 90, 86, 81, 77) #5A56514D srgba(90,86,81,0.301961)
default_tool_woodaxe.png
Histogram:
1: ( 80, 53, 19, 56) #50351338 srgba(80,53,19,0.219608)
default_tool_woodpick.png
Histogram:
1: ( 83, 56, 21, 68) #53381544 srgba(83,56,21,0.266667)
default_tool_woodshovel.png
Histogram:
1: ( 80, 52, 17, 71) #50341147 srgba(80,52,17,0.278431)
default_tool_woodsword.png
Histogram:
1: ( 81, 54, 21, 78) #5136154E srgba(81,54,21,0.305882)
default_torch_animated.png
Histogram:
1: (131,109, 77, 26) #836D4D1A srgba(131,109,77,0.101961)
default_torch_on_ceiling_animated.png
Histogram:
1: (134,112, 79, 24) #86704F18 srgba(134,112,79,0.0941176)
default_torch_on_ceiling.png
Histogram:
1: (227,123, 19, 36) #E37B1324 srgba(227,123,19,0.141176)
default_torch_on_floor_animated.png
Histogram:
1: (120, 98, 67, 33) #78624321 srgba(120,98,67,0.129412)
default_torch_on_floor.png
Histogram:
1: (128,102, 65, 38) #80664126 srgba(128,102,65,0.14902)
default_torch.png
Histogram:
1: (225,127, 18, 39) #E17F1227 srgba(225,127,18,0.152941)
default_tree.png
Histogram:
1: ( 57, 44, 32) #392C20 srgb(57,44,32)
default_tree_top.png
Histogram:
1: (176,141, 96) #B08D60 srgb(176,141,96)
default_water_flowing_animated.png
Histogram:
1: ( 43,138,226,153) #2B8AE299 srgba(43,138,226,0.6)
default_water.png
Histogram:
1: ( 30,130,224,153) #1E82E099 srgba(30,130,224,0.6)
default_water_source_animated.png
Histogram:
1: ( 30,130,224,153) #1E82E099 srgba(30,130,224,0.6)
default_wood.png
Histogram:
1: (128,100, 56) #806438 srgb(128,100,56)
gui_formbg.png
Histogram:
1: ( 9, 9, 9,248) #090909F8 graya(9,9,9,0.972549)
gui_furnace_arrow_bg.png
Histogram:
1: ( 22, 22, 22, 59) #1616163B graya(22,22,22,0.231373)
gui_furnace_arrow_fg.png
Histogram:
1: ( 0,150,225, 29) #0096E11D srgba(0,150,225,0.113725)
gui_hb_bg.png
Histogram:
1: ( 0, 0, 0, 43) #0000002B graya(0,0,0,0.168627)
gui_hotbar.png
Histogram:
1: ( 2, 2, 2, 98) #02020262 graya(2,2,2,0.384314)
gui_hotbar_selected.png
Histogram:
1: ( 8, 8, 8,173) #080808AD graya(8,8,8,0.678431)
heart.png
Histogram:
1: (212, 19, 19,125) #D413137D srgba(212,19,19,0.490196)
player_back.png
Histogram:
1: ( 0,128, 0,173) #008000AD srgba(0,128,0,0.678431)
player.png
Histogram:
1: ( 0,124, 0,173) #007C00AD srgba(0,124,0,0.678431)
wieldhand.png
Histogram:
1: (223,186,156, 71) #DFBA9C47 srgba(223,186,156,0.278431)
download/file.php?mode=view&id=1683
- Attachments
-
- screenshot_1780274364.png (684.04 KiB) Viewed 960 times
Last edited by Hybrid Dog on Mon Dec 29, 2014 14:51, edited 1 time in total.
- Hybrid Dog
- Member
- Posts: 2834
- Joined: Thu Nov 01, 2012 12:46
- GitHub: HybridDog
Re: [Mod] Image Loader [0.1.0] [imageloader]
I updated the palette:Hybrid Dog wrote:kaeza, would it work better if you use the real colour values for the wool nodes instead of the colour which the wool is coloured with and add the colours of the default textures?Edit: l like this mod.Code: Select all
mogrify -resize 1x1! *.png l found that at minetest irc log for i in *.png; do echo ${i}; identify -verbose $i | grep "Histogram: 1:"; done wool_black.png Histogram: 1: ( 30, 30, 30) #1E1E1E gray(30,30,30) 1: ( 1, 1, 1) #010101 gray(1,1,1) wool_blue.png Histogram: 1: ( 0, 73,145) #004991 srgb(0,73,145) wool_brown.png Histogram: 1: ( 86, 43, 0) #562B00 srgb(86,43,0) wool_cyan.png Histogram: 1: ( 0,131,139) #00838B srgb(0,131,139) wool_dark_green.png Histogram: 1: ( 33,103, 0) #216700 srgb(33,103,0) wool_dark_grey.png Histogram: 1: ( 59, 59, 59) #3B3B3B gray(59,59,59) 1: ( 1, 1, 1) #010101 gray(1,1,1) wool_green.png Histogram: 1: ( 92,216, 28) #5CD81C srgb(92,216,28) wool_grey.png Histogram: 1: (131,131,131) #838383 gray(131,131,131) 1: ( 1, 1, 1) #010101 gray(1,1,1) wool_magenta.png Histogram: 1: (201, 3,109) #C9036D srgb(201,3,109) wool_orange.png Histogram: 1: (213, 82, 22) #D55216 srgb(213,82,22) wool_pink.png Histogram: 1: (255,132,132) #FF8484 srgb(255,132,132) wool_red.png Histogram: 1: (168, 18, 18) #A81212 srgb(168,18,18) wool_violet.png Histogram: 1: ( 93, 3,169) #5D03A9 srgb(93,3,169) wool_white.png Histogram: 1: (220,220,220) #DCDCDC gray(220,220,220) 1: ( 1, 1, 1) #010101 gray(1,1,1) wool_yellow.png Histogram: 1: (254,225, 16) #FEE110 srgb(254,225,16) for i in *.png; do echo ${i}; identify -verbose $i | grep "Histogram: 1:"; done bubble.png Histogram: 1: (191,206,243,110) #BFCEF36E srgba(191,206,243,0.431373) crack_anylength.png Histogram: 1: ( 11, 11, 11, 38) #0B0B0B26 graya(11,11,11,0.14902) default_apple.png Histogram: 1: (149, 22, 10, 79) #95160A4F srgba(149,22,10,0.309804) default_book.png Histogram: 1: (111, 87, 43,141) #6F572B8D srgba(111,87,43,0.552941) default_bookshelf.png Histogram: 1: ( 91, 79, 45) #5B4F2D srgb(91,79,45) default_brick.png Histogram: 1: (118, 71, 69) #764745 srgb(118,71,69) default_bronze_block.png Histogram: 1: (188,112, 16) #BC7010 srgb(188,112,16) default_bronze_ingot.png Histogram: 1: (192,107, 52,125) #C06B347D srgba(192,107,52,0.490196) default_cactus_side.png Histogram: 1: ( 54,112, 21) #367015 srgb(54,112,21) default_cactus_top.png Histogram: 1: ( 52,116, 15) #34740F srgb(52,116,15) default_chest_front.png Histogram: 1: (137,108, 68) #896C44 srgb(137,108,68) default_chest_lock.png Histogram: 1: (141,113, 75) #8D714B srgb(141,113,75) default_chest_side.png Histogram: 1: (139,108, 65) #8B6C41 srgb(139,108,65) default_chest_top.png Histogram: 1: (148,115, 69) #947345 srgb(148,115,69) default_clay_brick.png Histogram: 1: ( 99, 28, 28,114) #631C1C72 srgba(99,28,28,0.447059) default_clay_lump.png Histogram: 1: ( 84, 84, 84, 79) #5454544F graya(84,84,84,0.309804) default_clay.png Histogram: 1: (183,183,183) #B7B7B7 gray(183,183,183) 1: ( 1, 1, 1) #010101 gray(1,1,1) default_cloud.png Histogram: 1: (255,255,255) #FFFFFF gray(255,255,255) 1: (255,255,255) #FFFFFF gray(255,255,255) default_coal_block.png Histogram: 1: ( 58, 58, 58) #3A3A3A gray(58,58,58) 1: ( 1, 1, 1) #010101 gray(1,1,1) default_coal_lump.png Histogram: 1: ( 10, 10, 10, 92) #0A0A0A5C graya(10,10,10,0.360784) default_cobble.png Histogram: 1: ( 88, 85, 83) #585553 srgb(88,85,83) default_copper_block.png Histogram: 1: (194,128, 65) #C28041 srgb(194,128,65) default_copper_ingot.png Histogram: 1: (178,136, 95,125) #B2885F7D srgba(178,136,95,0.490196) default_copper_lump.png Histogram: 1: (148,114, 79, 92) #94724F5C srgba(148,114,79,0.360784) default_desert_cobble.png Histogram: 1: (154, 98, 80) #9A6250 srgb(154,98,80) default_desert_sand.png Histogram: 1: (207,166, 98) #CFA662 srgb(207,166,98) default_desert_stone_brick.png Histogram: 1: (123, 76, 59) #7B4C3B srgb(123,76,59) default_desert_stone.png Histogram: 1: (130, 79, 61) #824F3D srgb(130,79,61) default_diamond_block.png Histogram: 1: ( 93,186,189) #5DBABD srgb(93,186,189) default_diamond.png Histogram: 1: ( 62,160,158,107) #3EA09E6B srgba(62,160,158,0.419608) default_dirt.png Histogram: 1: ( 96, 65, 40) #604128 srgb(96,65,40) default_dry_shrub.png Histogram: 1: (102, 67, 18, 49) #66431231 srgba(102,67,18,0.192157) default_fence_overlay.png Histogram: 1: (232,119,119,145) #E8777791 srgba(232,119,119,0.568627) default_furnace_bottom.png Histogram: 1: (102, 98, 96) #666260 srgb(102,98,96) default_furnace_fire_bg.png Histogram: 1: ( 0, 0, 0,160) #000000A0 graya(0,0,0,0.627451) default_furnace_fire_fg.png Histogram: 1: (223,126, 39,160) #DF7E27A0 srgba(223,126,39,0.627451) default_furnace_front_active.png Histogram: 1: ( 97, 85, 67) #615543 srgb(97,85,67) default_furnace_front.png Histogram: 1: ( 65, 62, 60) #413E3C srgb(65,62,60) default_furnace_side.png Histogram: 1: ( 95, 91, 89) #5F5B59 srgb(95,91,89) default_furnace_top.png Histogram: 1: (102, 98, 96) #666260 srgb(102,98,96) default_glass_detail.png Histogram: 1: (203,203,232, 13) #CBCBE80D srgba(203,203,232,0.0509804) default_glass.png Histogram: 1: (195,195,228, 54) #C3C3E436 srgba(195,195,228,0.211765) default_gold_block.png Histogram: 1: (233,205, 32) #E9CD20 srgb(233,205,32) default_gold_ingot.png Histogram: 1: (204,176, 21,125) #CCB0157D srgba(204,176,21,0.490196) default_gold_lump.png Histogram: 1: (220,198, 10, 92) #DCC60A5C srgba(220,198,10,0.360784) default_grass_1.png Histogram: 1: ( 89,118, 58, 16) #59763A10 srgba(89,118,58,0.0627451) default_grass_2.png Histogram: 1: ( 89,118, 59, 26) #59763B1A srgba(89,118,59,0.101961) default_grass_3.png Histogram: 1: ( 86,116, 58, 47) #56743A2F srgba(86,116,58,0.184314) default_grass_4.png Histogram: 1: ( 82,114, 53, 85) #52723555 srgba(82,114,53,0.333333) default_grass_5.png Histogram: 1: ( 79,107, 53,125) #4F6B357D srgba(79,107,53,0.490196) default_grass_footsteps.png Histogram: 1: ( 81,108, 18) #516C12 srgb(81,108,18) default_grass.png Histogram: 1: ( 61, 90, 19) #3D5A13 srgb(61,90,19) default_grass_side.png Histogram: 1: ( 70, 89, 30, 79) #46591E4F srgba(70,89,30,0.309804) default_gravel.png Histogram: 1: ( 86, 86, 85) #565655 srgb(86,86,85) default_ice.png Histogram: 1: (164,164,252) #A4A4FC srgb(164,164,252) default_iron_lump.png Histogram: 1: (195,108, 71, 92) #C36C475C srgba(195,108,71,0.360784) default_junglegrass.png Histogram: 1: ( 63,105, 25,165) #3F6919A5 srgba(63,105,25,0.647059) default_jungleleaves.png Histogram: 1: ( 21, 29, 16,160) #151D10A0 srgba(21,29,16,0.627451) default_junglesapling.png Histogram: 1: ( 49, 39, 15, 54) #31270F36 srgba(49,39,15,0.211765) default_jungletree.png Histogram: 1: ( 80, 74, 37) #504A25 srgb(80,74,37) default_jungletree_top.png Histogram: 1: (138,117, 80) #8A7550 srgb(138,117,80) default_junglewood.png Histogram: 1: (132,118, 78) #84764E srgb(132,118,78) default_ladder.png Histogram: 1: (124, 91, 35,147) #7C5B2393 srgba(124,91,35,0.576471) default_lava_flowing_animated.png Histogram: 1: (204, 83, 8) #CC5308 srgb(204,83,8) default_lava.png Histogram: 1: (199, 81, 7) #C75107 srgb(199,81,7) default_lava_source_animated.png Histogram: 1: (204, 83, 8) #CC5308 srgb(204,83,8) default_leaves.png Histogram: 1: ( 35, 52, 30,160) #23341EA0 srgba(35,52,30,0.627451) default_mese_block.png Histogram: 1: (226,228, 2) #E2E402 srgb(226,228,2) default_mese_crystal_fragment.png Histogram: 1: (241,243, 62, 39) #F1F33E27 srgba(241,243,62,0.152941) default_mese_crystal.png Histogram: 1: (243,245, 48,119) #F3F53077 srgba(243,245,48,0.466667) default_mineral_coal.png Histogram: 1: ( 5, 5, 5, 55) #05050537 graya(5,5,5,0.215686) default_mineral_copper.png Histogram: 1: (164,121, 71, 55) #A4794737 srgba(164,121,71,0.215686) default_mineral_diamond.png Histogram: 1: (125,247,245, 55) #7DF7F537 srgba(125,247,245,0.215686) default_mineral_gold.png Histogram: 1: (213,192, 11, 55) #D5C00B37 srgba(213,192,11,0.215686) default_mineral_iron.png Histogram: 1: (152, 86, 53, 63) #9856353F srgba(152,86,53,0.247059) default_mineral_mese.png Histogram: 1: (224,227, 2, 98) #E0E30262 srgba(224,227,2,0.384314) default_mossycobble.png Histogram: 1: ( 87, 90, 68) #575A44 srgb(87,90,68) default_nc_back.png Histogram: 1: (165, 98,142) #A5628E srgb(165,98,142) default_nc_front.png Histogram: 1: ( 95, 80, 82) #5F5052 srgb(95,80,82) default_nc_rb.png Histogram: 1: (126,112, 91) #7E705B srgb(126,112,91) default_nc_side.png Histogram: 1: (212,116,183) #D474B7 srgb(212,116,183) default_obsidian_brick.png Histogram: 1: ( 19, 21, 23) #131517 srgb(19,21,23) default_obsidian_glass.png Histogram: 1: ( 20, 22, 24, 46) #1416182E srgba(20,22,24,0.180392) default_obsidian.png Histogram: 1: ( 20, 22, 25) #141619 srgb(20,22,25) default_obsidian_shard.png Histogram: 1: ( 31, 38, 49, 39) #1F263127 srgba(31,38,49,0.152941) default_paper.png Histogram: 1: (222,226,218,100) #DEE2DA64 srgba(222,226,218,0.392157) default_papyrus.png Histogram: 1: ( 95,133, 34,137) #5F852289 srgba(95,133,34,0.537255) default_pine_needles.png Histogram: 1: ( 14, 36, 21,175) #0E2415AF srgba(14,36,21,0.686275) default_pine_sapling.png Histogram: 1: ( 26, 48, 25, 55) #1A301937 srgba(26,48,25,0.215686) default_pinetree.png Histogram: 1: ( 80, 69, 60) #50453C srgb(80,69,60) default_pinetree_top.png Histogram: 1: (191,164,132) #BFA484 srgb(191,164,132) default_pinewood.png Histogram: 1: (221,185,129) #DDB981 srgb(221,185,129) default_rail_crossing.png Histogram: 1: (134,120, 91,183) #86785BB7 srgba(134,120,91,0.717647) default_rail_curved.png Histogram: 1: (135,114, 78,110) #87724E6E srgba(135,114,78,0.431373) default_rail.png Histogram: 1: (135,114, 78,147) #87724E93 srgba(135,114,78,0.576471) default_rail_t_junction.png Histogram: 1: (133,120, 94,149) #85785E95 srgba(133,120,94,0.584314) default_sand.png Histogram: 1: (214,208,159) #D6D09F srgb(214,208,159) default_sandstone_brick.png Histogram: 1: (187,183,135) #BBB787 srgb(187,183,135) default_sandstone.png Histogram: 1: (198,193,143) #C6C18F srgb(198,193,143) default_sapling.png Histogram: 1: ( 66, 59, 41, 54) #423B2936 srgba(66,59,41,0.211765) default_sign.png Histogram: 1: (177,148, 95,202) #B1945FCA srgba(177,148,95,0.792157) default_sign_wall.png Histogram: 1: (158,125, 72,159) #9E7D489F srgba(158,125,72,0.623529) default_snowball.png Histogram: 1: (221,227,236, 94) #DDE3EC5E srgba(221,227,236,0.368627) default_snow.png Histogram: 1: (234,235,255) #EAEBFF srgb(234,235,255) default_snow_side.png Histogram: 1: (161,171,162, 77) #A1ABA24D srgba(161,171,162,0.301961) default_steel_block.png Histogram: 1: (142,142,142) #8E8E8E gray(142,142,142) 1: ( 1, 1, 1) #010101 gray(1,1,1) default_steel_ingot.png Histogram: 1: (184,183,181,125) #B8B7B57D srgba(184,183,181,0.490196) default_stick.png Histogram: 1: ( 81, 55, 21, 39) #51371527 srgba(81,55,21,0.152941) default_stone_brick.png Histogram: 1: ( 98, 96, 95) #62605F srgb(98,96,95) default_stone.png Histogram: 1: ( 97, 94, 93) #615E5D srgb(97,94,93) default_tnt_bottom.png Histogram: 1: (146, 45, 31) #922D1F srgb(146,45,31) default_tnt_side.png Histogram: 1: (159, 88, 88) #9F5858 srgb(159,88,88) default_tnt_top.png Histogram: 1: (121, 37, 26) #79251A srgb(121,37,26) default_tool_bronzeaxe.png Histogram: 1: (145, 85, 36, 56) #91552438 srgba(145,85,36,0.219608) default_tool_bronzepick.png Histogram: 1: (142, 84, 36, 72) #8E542448 srgba(142,84,36,0.282353) default_tool_bronzeshovel.png Histogram: 1: (167, 98, 49, 71) #A7623147 srgba(167,98,49,0.278431) default_tool_bronzesword.png Histogram: 1: (168, 92, 36, 78) #A85C244E srgba(168,92,36,0.305882) default_tool_diamondaxe.png Histogram: 1: ( 75,110, 92, 56) #4B6E5C38 srgba(75,110,92,0.219608) default_tool_diamondpick.png Histogram: 1: ( 79,115, 98, 72) #4F736248 srgba(79,115,98,0.282353) default_tool_diamondshovel.png Histogram: 1: ( 87,136,121, 71) #57887947 srgba(87,136,121,0.278431) default_tool_diamondsword.png Histogram: 1: ( 53,131,125, 78) #35837D4E srgba(53,131,125,0.305882) default_tool_meseaxe.png Histogram: 1: (149,137, 31, 56) #95891F38 srgba(149,137,31,0.219608) default_tool_mesepick.png Histogram: 1: (151,140, 26, 72) #978C1A48 srgba(151,140,26,0.282353) default_tool_meseshovel.png Histogram: 1: (170,161, 44, 71) #AAA12C47 srgba(170,161,44,0.278431) default_tool_mesesword.png Histogram: 1: (127,127, 23, 78) #7F7F174E srgba(127,127,23,0.305882) default_tool_steelaxe.png Histogram: 1: (143,129,112, 56) #8F817038 srgba(143,129,112,0.219608) default_tool_steelpick.png Histogram: 1: (145,132,116, 72) #91847448 srgba(145,132,116,0.282353) default_tool_steelshovel.png Histogram: 1: (163,152,139, 71) #A3988B47 srgba(163,152,139,0.278431) default_tool_steelsword.png Histogram: 1: (160,157,153, 78) #A09D994E srgba(160,157,153,0.305882) default_tool_stoneaxe.png Histogram: 1: ( 95, 81, 64, 56) #5F514038 srgba(95,81,64,0.219608) default_tool_stonepick.png Histogram: 1: ( 94, 80, 64, 70) #5E504046 srgba(94,80,64,0.27451) default_tool_stoneshovel.png Histogram: 1: (101, 90, 76, 71) #655A4C47 srgba(101,90,76,0.278431) default_tool_stonesword.png Histogram: 1: ( 90, 86, 81, 77) #5A56514D srgba(90,86,81,0.301961) default_tool_woodaxe.png Histogram: 1: ( 80, 53, 19, 56) #50351338 srgba(80,53,19,0.219608) default_tool_woodpick.png Histogram: 1: ( 83, 56, 21, 68) #53381544 srgba(83,56,21,0.266667) default_tool_woodshovel.png Histogram: 1: ( 80, 52, 17, 71) #50341147 srgba(80,52,17,0.278431) default_tool_woodsword.png Histogram: 1: ( 81, 54, 21, 78) #5136154E srgba(81,54,21,0.305882) default_torch_animated.png Histogram: 1: (131,109, 77, 26) #836D4D1A srgba(131,109,77,0.101961) default_torch_on_ceiling_animated.png Histogram: 1: (134,112, 79, 24) #86704F18 srgba(134,112,79,0.0941176) default_torch_on_ceiling.png Histogram: 1: (227,123, 19, 36) #E37B1324 srgba(227,123,19,0.141176) default_torch_on_floor_animated.png Histogram: 1: (120, 98, 67, 33) #78624321 srgba(120,98,67,0.129412) default_torch_on_floor.png Histogram: 1: (128,102, 65, 38) #80664126 srgba(128,102,65,0.14902) default_torch.png Histogram: 1: (225,127, 18, 39) #E17F1227 srgba(225,127,18,0.152941) default_tree.png Histogram: 1: ( 57, 44, 32) #392C20 srgb(57,44,32) default_tree_top.png Histogram: 1: (176,141, 96) #B08D60 srgb(176,141,96) default_water_flowing_animated.png Histogram: 1: ( 43,138,226,153) #2B8AE299 srgba(43,138,226,0.6) default_water.png Histogram: 1: ( 30,130,224,153) #1E82E099 srgba(30,130,224,0.6) default_water_source_animated.png Histogram: 1: ( 30,130,224,153) #1E82E099 srgba(30,130,224,0.6) default_wood.png Histogram: 1: (128,100, 56) #806438 srgb(128,100,56) gui_formbg.png Histogram: 1: ( 9, 9, 9,248) #090909F8 graya(9,9,9,0.972549) gui_furnace_arrow_bg.png Histogram: 1: ( 22, 22, 22, 59) #1616163B graya(22,22,22,0.231373) gui_furnace_arrow_fg.png Histogram: 1: ( 0,150,225, 29) #0096E11D srgba(0,150,225,0.113725) gui_hb_bg.png Histogram: 1: ( 0, 0, 0, 43) #0000002B graya(0,0,0,0.168627) gui_hotbar.png Histogram: 1: ( 2, 2, 2, 98) #02020262 graya(2,2,2,0.384314) gui_hotbar_selected.png Histogram: 1: ( 8, 8, 8,173) #080808AD graya(8,8,8,0.678431) heart.png Histogram: 1: (212, 19, 19,125) #D413137D srgba(212,19,19,0.490196) player_back.png Histogram: 1: ( 0,128, 0,173) #008000AD srgba(0,128,0,0.678431) player.png Histogram: 1: ( 0,124, 0,173) #007C00AD srgba(0,124,0,0.678431) wieldhand.png Histogram: 1: (223,186,156, 71) #DFBA9C47 srgba(223,186,156,0.278431)
download/file.php?mode=view&id=1683
download/file.php?mode=view&id=1731
- Attachments
-
- screenshot_2256532264.png (214.97 KiB) Viewed 960 times
Last edited by Hybrid Dog on Mon Dec 29, 2014 14:50, edited 1 time in total.
- kaeza
- Moderator
- Posts: 2162
- Joined: Thu Oct 18, 2012 05:00
- GitHub: kaeza
- IRC: kaeza diemartin blaaaaargh
- In-game: kaeza
- Location: Montevideo, Uruguay
- Contact:
Re: [Mod] Image Loader [0.1.0] [imageloader]
Could you submit a pull request for that?
Your signature is not the place for a blog post. Please keep it as concise as possible. Thank you!
Check out my stuff! | Donations greatly appreciated! PayPal
Check out my stuff! | Donations greatly appreciated! PayPal
- Hybrid Dog
- Member
- Posts: 2834
- Joined: Thu Nov 01, 2012 12:46
- GitHub: HybridDog
Re: [Mod] Image Loader [0.1.0] [imageloader]
Yes, but I need to remove some nodes from my custom palette because I use a texture pack and a different minetest_game.kaeza wrote:Could you submit a pull request for that?
Edit: Done, but I used the new default textures.
https://github.com/kaeza/minetest-imageloader/pull/2
Re: [Mod] Image Loader [0.1.0] [imageloader]
we need a pure lua image handling library to make the opening of different image formats flawless for this and other mods. I need it for realterrain mod: viewtopic.php?f=9&t=12666
- kaeza
- Moderator
- Posts: 2162
- Joined: Thu Oct 18, 2012 05:00
- GitHub: kaeza
- IRC: kaeza diemartin blaaaaargh
- In-game: kaeza
- Location: Montevideo, Uruguay
- Contact:
Re: [Mod] Image Loader [0.1.0] [imageloader]
Update!
By popular demand (??), added PNG file support. One note though: please ensure PNG images are well-formed (i.e. not corrupted). Otherwise the PNG loader may get stuck in an endless loop or simply barf.
By popular demand (??), added PNG file support. One note though: please ensure PNG images are well-formed (i.e. not corrupted). Otherwise the PNG loader may get stuck in an endless loop or simply barf.
Your signature is not the place for a blog post. Please keep it as concise as possible. Thank you!
Check out my stuff! | Donations greatly appreciated! PayPal
Check out my stuff! | Donations greatly appreciated! PayPal
- Diamond knight
- Member
- Posts: 475
- Joined: Sun Apr 19, 2015 19:50
- GitHub: Diamondknight
- In-game: Ferrumprinceps
- Location: Chilling in Constantinople
- Contact:
Re: [Mod] Image Loader [0.1.0] [imageloader]
cluck yea!!!!
i am soooo downloading this mod!!
i am soooo downloading this mod!!
My modding team: https://github.com/basilea-rhomaion
- zak1975
- Member
- Posts: 19
- Joined: Sat Apr 25, 2015 17:59
- GitHub: zak1975
- IRC: zak1975
- In-game: zak1975
- Location: Germany
Re: [Mod] Image Loader [0.1.0] [imageloader]
Just tested this mod in 0.4.13 and in 0.4.12. with loading a large png file. I can load the demo-png-file properly but my own png files do not work.
Ingame I get this message: Failed to load image: imageloader: unknown file type
In debug.txt:
21:44:44: WARNING: Assignment to undeclared global "ch" inside a function at ...netest-0.4.12/bin/../mods/imageloader/lib/pngLua/png.lua:251.
21:44:50: WARNING: Assignment to undeclared global "imStr" inside a function at ...netest-0.4.12/bin/../mods/imageloader/lib/pngLua/png.lua:266.
21:44:50: WARNING: Assignment to undeclared global "bpp" inside a function at ...netest-0.4.12/bin/../mods/imageloader/lib/pngLua/png.lua:136.
21:44:50: WARNING: Assignment to undeclared global "bpl" inside a function at ...netest-0.4.12/bin/../mods/imageloader/lib/pngLua/png.lua:137.
Edit:
Maybe the map isn't explored wide enough to insert a large image? What is the maximum resolution this mod can import?
Ingame I get this message: Failed to load image: imageloader: unknown file type
In debug.txt:
21:44:44: WARNING: Assignment to undeclared global "ch" inside a function at ...netest-0.4.12/bin/../mods/imageloader/lib/pngLua/png.lua:251.
21:44:50: WARNING: Assignment to undeclared global "imStr" inside a function at ...netest-0.4.12/bin/../mods/imageloader/lib/pngLua/png.lua:266.
21:44:50: WARNING: Assignment to undeclared global "bpp" inside a function at ...netest-0.4.12/bin/../mods/imageloader/lib/pngLua/png.lua:136.
21:44:50: WARNING: Assignment to undeclared global "bpl" inside a function at ...netest-0.4.12/bin/../mods/imageloader/lib/pngLua/png.lua:137.
Edit:
Maybe the map isn't explored wide enough to insert a large image? What is the maximum resolution this mod can import?
- kaeza
- Moderator
- Posts: 2162
- Joined: Thu Oct 18, 2012 05:00
- GitHub: kaeza
- IRC: kaeza diemartin blaaaaargh
- In-game: kaeza
- Location: Montevideo, Uruguay
- Contact:
Re: [Mod] Image Loader [0.1.0] [imageloader]
Thank you for the report about the undeclared globals. They can be safely ignored, but I will fix them so it does not generate those spurious warnings.
About max resolution, the short answer is "about 2000x2000".
The long answer: the max resolution is limited to either 2^32-1 columns by 2^32-1 lines (per the PNG spec), or the memory available to the Minetest executable, whichever is smaller. You are also limited by map size (to place the image in the world). In theory, you should be able to load 64000x64000 image and place it in the world. In practice, you should use a conservative limit (e.g. 2000x2000).
Finally, can you post an archive of some PNGs you find are failing? (if possible, keep them small) That error message is unrelated to map being loaded or not; it could be an unsupported compression method or indeed too big an image.
About max resolution, the short answer is "about 2000x2000".
The long answer: the max resolution is limited to either 2^32-1 columns by 2^32-1 lines (per the PNG spec), or the memory available to the Minetest executable, whichever is smaller. You are also limited by map size (to place the image in the world). In theory, you should be able to load 64000x64000 image and place it in the world. In practice, you should use a conservative limit (e.g. 2000x2000).
Finally, can you post an archive of some PNGs you find are failing? (if possible, keep them small) That error message is unrelated to map being loaded or not; it could be an unsupported compression method or indeed too big an image.
Your signature is not the place for a blog post. Please keep it as concise as possible. Thank you!
Check out my stuff! | Donations greatly appreciated! PayPal
Check out my stuff! | Donations greatly appreciated! PayPal
- Hybrid Dog
- Member
- Posts: 2834
- Joined: Thu Nov 01, 2012 12:46
- GitHub: HybridDog
Re: [Mod] Image Loader [0.1.0] [imageloader]
What happens if l try to import an animated png file?
- benrob0329
- Member
- Posts: 1341
- Joined: Thu Aug 06, 2015 22:39
- GitHub: Benrob0329
- IRC: benrob0329
- In-game: benrob03
- Location: Michigan
- Contact:
Re: [Mod] Image Loader [0.1.0] [imageloader]
PNGs can't be animated, at least not in the official specks.
- Hybrid Dog
- Member
- Posts: 2834
- Joined: Thu Nov 01, 2012 12:46
- GitHub: HybridDog
Re: [Mod] Image Loader [0.1.0] [imageloader]
https://en.wikipedia.org/wiki/APNGbenrob0329 wrote:PNGs can't be animated, at least not in the official specks.
lt has a wikipedia article, so l guess it's official.
- benrob0329
- Member
- Posts: 1341
- Joined: Thu Aug 06, 2015 22:39
- GitHub: Benrob0329
- IRC: benrob0329
- In-game: benrob03
- Location: Michigan
- Contact:
Re: [Mod] Image Loader [0.1.0] [imageloader]
That's a PNG add on, the official (as in the PNG website) specks say that PNG does not support it.
- zak1975
- Member
- Posts: 19
- Joined: Sat Apr 25, 2015 17:59
- GitHub: zak1975
- IRC: zak1975
- In-game: zak1975
- Location: Germany
Re: [Mod] Image Loader [0.1.0] [imageloader]
@kaeza:
Now I found out that the images I tried to load were too big.
Trying a png with 100x100 px was able to load. Next try with a 250x250 px image ran about 1 hour and then failed.
Another thing is, the top of the image seems always to face south. I'm trying to import streetmaps into minetest and they have north at top of the image. After import north is south and the sun rises in the west ;)
This is not a big problem because I could rotate the images before loading.
My main Problem is that this mod can not import images above a certain resolution. Any idea?
Now I found out that the images I tried to load were too big.
Trying a png with 100x100 px was able to load. Next try with a 250x250 px image ran about 1 hour and then failed.
Another thing is, the top of the image seems always to face south. I'm trying to import streetmaps into minetest and they have north at top of the image. After import north is south and the sun rises in the west ;)
This is not a big problem because I could rotate the images before loading.
My main Problem is that this mod can not import images above a certain resolution. Any idea?
- Hybrid Dog
- Member
- Posts: 2834
- Joined: Thu Nov 01, 2012 12:46
- GitHub: HybridDog
Re: [Mod] Image Loader [0.1.0] [imageloader]
You could use mogrify to cut them.zak1975 wrote:My main Problem is that this mod can not import images above a certain resolution. Any idea?
- kaeza
- Moderator
- Posts: 2162
- Joined: Thu Oct 18, 2012 05:00
- GitHub: kaeza
- IRC: kaeza diemartin blaaaaargh
- In-game: kaeza
- Location: Montevideo, Uruguay
- Contact:
Re: [Mod] Image Loader [0.1.0] [imageloader]
That is weird. I tested this locally, and a test image (640x640, shown in a spoiler below) loaded fine taking about a minute. Granted, the image was scaled down; the original (1500x1000) crashed minetest itself, probably due to out of memory conditions (I'll concede the loading algorithm is not very efficient, either CPU- or memory-wise).zak1975 wrote:@kaeza:
Now I found out that the images I tried to load were too big.
Trying a png with 100x100 px was able to load. Next try with a 250x250 px image ran about 1 hour and then failed.
[...]
My main Problem is that this mod can not import images above a certain resolution. Any idea?
Again, can you upload an image known to fail? Also, what are your system specs (mainly available memory)? For reference, I have a 3GHz dual core Intel E5700, with 4G of RAM.
Spoiler
Your signature is not the place for a blog post. Please keep it as concise as possible. Thank you!
Check out my stuff! | Donations greatly appreciated! PayPal
Check out my stuff! | Donations greatly appreciated! PayPal
- zak1975
- Member
- Posts: 19
- Joined: Sat Apr 25, 2015 17:59
- GitHub: zak1975
- IRC: zak1975
- In-game: zak1975
- Location: Germany
Re: [Mod] Image Loader [0.1.0] [imageloader]
This png file doesn't load: http://we.tl/2yZkTHJwKgkaeza wrote: That is weird. I tested this locally, and a test image (640x640, shown in a spoiler below) loaded fine taking about a minute. Granted, the image was scaled down; the original (1500x1000) crashed minetest itself, probably due to out of memory conditions (I'll concede the loading algorithm is not very efficient, either CPU- or memory-wise).
Again, can you upload an image known to fail? Also, what are your system specs (mainly available memory)? For reference, I have a 3GHz dual core Intel E5700, with 4G of RAM.
While testing, I converted my png files to bitmap and with bmp I could load files up to 2000x2000.
250.png is a 250x250 px image that I have cut out of my large map. It was created with Maperitive (a tool for generating images from openstreetmap data). With gimp I extracted this piece and saved it over export menu to a new png. While doing this I recognized that there are several options in gimp for exporting to png, but I used the default settings.
When I loaded the bmp files, your mod worked very fast and I just had to wait a few seconds, even with high resolutions. My system is a notebook with 8GB Ram and i5-3230m cpu. OS ist Kubuntu 14.04. Minetest and ImageLoader are latest git versions.
- kaeza
- Moderator
- Posts: 2162
- Joined: Thu Oct 18, 2012 05:00
- GitHub: kaeza
- IRC: kaeza diemartin blaaaaargh
- In-game: kaeza
- Location: Montevideo, Uruguay
- Contact:
Re: [Mod] Image Loader [0.1.0] [imageloader]
I first tested your image, and it locked up. I killed the process after about a minute or so, but an image this size should not take that long given that a much larger image takes about 5 seconds.
Something I noticed is that your image (which is 32bpp (*)), when converted to 8bpp, loads in about a second here. So I'm guessing there's something wrong in pngLua, but haven't had time to track the bug down.
So I suggest converting your images to 8bpp that as a workaround in the meantime.
(*) The image I posted is also 32bpp and it loads fine, so this puzzles me.
Something I noticed is that your image (which is 32bpp (*)), when converted to 8bpp, loads in about a second here. So I'm guessing there's something wrong in pngLua, but haven't had time to track the bug down.
So I suggest converting your images to 8bpp that as a workaround in the meantime.
(*) The image I posted is also 32bpp and it loads fine, so this puzzles me.
Your signature is not the place for a blog post. Please keep it as concise as possible. Thank you!
Check out my stuff! | Donations greatly appreciated! PayPal
Check out my stuff! | Donations greatly appreciated! PayPal
- Hybrid Dog
- Member
- Posts: 2834
- Joined: Thu Nov 01, 2012 12:46
- GitHub: HybridDog
Re: [Mod] Image Loader [0.1.0] [imageloader]
Is it possible to use the loadlib function to use some given library for importing images?
- kaeza
- Moderator
- Posts: 2162
- Joined: Thu Oct 18, 2012 05:00
- GitHub: kaeza
- IRC: kaeza diemartin blaaaaargh
- In-game: kaeza
- Location: Montevideo, Uruguay
- Contact:
Re: [Mod] Image Loader [0.1.0] [imageloader]
It is, but see the IRC mod for problems with this.Hybrid Dog wrote:Is it possible to use the loadlib function to use some given library for importing images?
Long story short, I want the mod to be usable without having to hack around with native libs.
Your signature is not the place for a blog post. Please keep it as concise as possible. Thank you!
Check out my stuff! | Donations greatly appreciated! PayPal
Check out my stuff! | Donations greatly appreciated! PayPal
- Hybrid Dog
- Member
- Posts: 2834
- Joined: Thu Nov 01, 2012 12:46
- GitHub: HybridDog
Re: [Mod] Image Loader [0.1.0] [imageloader]
thanks, and does the mod also work for windows? Somewhere l read that on windows \ is used for paths instead of /kaeza wrote:It is, but see the IRC mod for problems with this.Hybrid Dog wrote:Is it possible to use the loadlib function to use some given library for importing images?
Long story short, I want the mod to be usable without having to hack around with native libs.
https://github.com/kaeza/minetest-image ... lua#L4-L10
https://github.com/kaeza/minetest-image ... png.lua#L4
- kaeza
- Moderator
- Posts: 2162
- Joined: Thu Oct 18, 2012 05:00
- GitHub: kaeza
- IRC: kaeza diemartin blaaaaargh
- In-game: kaeza
- Location: Montevideo, Uruguay
- Contact:
Re: [Mod] Image Loader [0.1.0] [imageloader]
Yes, it works on Windows.
And I don't know why are you asking about the slashes, given that 100% of the mods out there use forward slashes and none of them fail on Windows.
And I don't know why are you asking about the slashes, given that 100% of the mods out there use forward slashes and none of them fail on Windows.
Your signature is not the place for a blog post. Please keep it as concise as possible. Thank you!
Check out my stuff! | Donations greatly appreciated! PayPal
Check out my stuff! | Donations greatly appreciated! PayPal
-
- Member
- Posts: 4289
- Joined: Sun Sep 09, 2012 17:31
- GitHub: Sokomine
- IRC: Sokomine
- In-game: Sokomine
Re: [Mod] Image Loader [0.1.0] [imageloader]
I thought so as well. Until I encountered the problem that minetest.get_worldpath returns a path using backslashes instead of slashes.kaeza wrote: And I don't know why are you asking about the slashes, given that 100% of the mods out there use forward slashes and none of them fail on Windows.
A list of my mods can be found here.
- kaeza
- Moderator
- Posts: 2162
- Joined: Thu Oct 18, 2012 05:00
- GitHub: kaeza
- IRC: kaeza diemartin blaaaaargh
- In-game: kaeza
- Location: Montevideo, Uruguay
- Contact:
Re: [Mod] Image Loader [0.1.0] [imageloader]
Yes, but mod do things like
which translates to C:\whatever\minetest\mods\foo/bar.lua
It still doesn't fail.
Code: Select all
dofile(minetest.get_modpath("foo").."/bar.lua")
It still doesn't fail.
Your signature is not the place for a blog post. Please keep it as concise as possible. Thank you!
Check out my stuff! | Donations greatly appreciated! PayPal
Check out my stuff! | Donations greatly appreciated! PayPal
Who is online
Users browsing this forum: No registered users and 16 guests