MC.cdasc
我用的 Cubik Studio 软件里有注释:tint index是草方块、刷怪蛋、药水的着色通道
(cubik里的模型及其配置)
尝试1:tintindex设为0,结果游戏中直接不显示那个元素 (瓶子在我手上和快捷栏里,物品栏里是两个不同的药水瓶)
尝试2:下载vanilla3D材质(有3D药水瓶模型),解包分析,没发现什么差别(除了他在cullface信息里注释了作者信息,不过物品模型应该不影响)
我的代码

vanilla3D的代码



⊙v⊙
本帖最后由 ⊙v⊙ 于 2018-3-31 11:42 编辑

告诉你...为什么...

你的Box14就是药水那块对吧,
而这块用的是#particle路径的材质,items/potion_overlay
uv的范围是 10.5, 0.5 ~ 14.5, 4.5

那么,potion_overlay这个贴图的10.5, 0.5 ~ 14.5, 4.5的这个位置,是完全透明的
所以以你uv得出的位置,就算不加tintindex,也是透明的呢,没毛病


解决办法
直接修改Box14贴图的uv 成这样  [0.01,0.01,15.99,15.99] ,也是可以的,不过还是建议...
给Box14加张(比如纯白色的)贴图



至于你其他那些可能不是问题的问题...
如果不是方块模型,cullface无意义。至于他的cullface...是乱填的
快捷栏和手上的是同一个模型

MC.cdasc
本帖最后由 MC.cdasc 于 2018-4-1 10:11 编辑
⊙v⊙ 发表于 2018-4-1 05:29
告诉你...为什么...

你的Box14就是药水那块对吧,

问题是我那是半透明的呀?半透明不能用吗?另外改成纯白试过了也不能用。

⊙v⊙
本帖最后由 ⊙v⊙ 于 2018-4-1 09:37 编辑
MC.cdasc 发表于 2018-3-31 16:08
问题是我那是半透明的呀?半透明不能用吗?

你这么问的话,
要么是你没读懂我在说什么
要么是你不清楚为什么加了tintindex会无显示
要么,根本就不知道你自己在做什么...

emmm...把使用tintindex的element放在elements里的首位

⊙v⊙
本帖最后由 ⊙v⊙ 于 2018-3-31 18:15 编辑

等等 我再看看  感觉有什么不对劲.......除了前面提到的你选取错误之外...
暂时得出的另一个原因是你瓶身的贴图透明度不够
这是我用的例子,穿过玻璃看不到中间的羊毛的话,说明你玻璃的贴图还需再透明一点,也不要太低(低于10%的话就是完全透明了)
  1. {
  2.         "textures": {
  3.                 "0": "3dres/potion_bottle",
  4.                 "1": "blocks/wool_colored_white"
  5.         },
  6.         "elements": [
  7.                 {
  8.                         "from": [5.5, 2, 5.5],"to": [10.5, 6, 10.5],
  9.                         "faces": {
  10.                                 "north": {"uv": [0, 0, 16, 16],"texture": "#1","tintindex": 0},
  11.                                 "east": {"uv": [0, 0, 16, 16],"texture": "#1","tintindex": 0},
  12.                                 "south": {"uv": [0, 0, 16, 16],"texture": "#1","tintindex": 0},
  13.                                 "west": {"uv": [0, 0, 16, 16],"texture": "#1","tintindex": 0},
  14.                                 "up": {"uv": [0, 0, 16, 16],"texture": "#1","tintindex": 0},
  15.                                 "down": {"uv": [0, 0, 16, 16],"texture": "#1","tintindex": 0}
  16.                         }
  17.                 },
  18.                 {
  19.                         "from": [4.5, 1, 3.5],"to": [11.5, 8, 4.5],
  20.                         "faces": {
  21.                                 "north": {"uv": [0, 0, 16, 16],"texture": "#0"},
  22.                                 "east": {"uv": [0, 0, 16, 16],"texture": "#0"},
  23.                                 "south": {"uv": [0, 0, 16, 16],"texture": "#0"},
  24.                                 "west": {"uv": [0, 0, 16, 16],"texture": "#0"},
  25.                                 "up": {"uv": [0, 0, 16, 16],"texture": "#0"},
  26.                                 "down": {"uv": [0, 0, 16, 16],"texture": "#0"}
  27.                         }
  28.                 }
  29.         ]
  30. }
复制代码




chyx
⊙v⊙ 发表于 2018-4-1 10:11
你这么问的话,
要么是你没读懂我在说什么
要么是你不清楚为什么加了tintindex会无显示

这个半透明的东西说不定和element的顺序有关系

⊙v⊙
  1. {
  2.         "__comment": "Designed by Blue_Beaker with Cubik Studio - https://cubik.studio",
  3.         "textures": {
  4.                 "texture": "3dres/potion_bottle",
  5.                 "particle": "items/potion_overlay"
  6.         },
  7.         "elements": [         
  8.                 {
  9.                         "__comment": "Box14",
  10.                         "from": [ 4, 1, 4 ],
  11.                         "to": [ 12, 7, 12 ],
  12.                         "faces": {
  13.                                 "down": { "uv": [ 10.5, 0.5, 14.5, 4.5 ], "texture": "#particle", "tintindex": 0 },
  14.                                 "up": { "uv": [ 10.5, 0.5, 14.5, 4.5 ], "texture": "#particle", "tintindex": 0 },
  15.                                 "north": { "uv": [ 10.5, 0.5, 14.5, 4.5 ], "texture": "#particle", "tintindex": 0 },
  16.                                 "south": { "uv": [ 10.5, 0.5, 14.5, 4.5 ], "texture": "#particle", "tintindex": 0 },
  17.                                 "west": { "uv": [ 10.5, 0.5, 14.5, 4.5 ], "texture": "#particle", "tintindex": 0 },
  18.                                 "east": { "uv": [ 10.5, 0.5, 14.5, 4.5 ], "texture": "#particle", "tintindex": 0 }
  19.                         }
  20.                 },
  21.                 {
  22.                         "__comment": "Box1",
  23.                         "from": [ 3, 0, 3 ],
  24.                         "to": [ 13, 1, 13 ],
  25.                         "faces": {
  26.                                 "down": { "uv": [ 0, 0, 5, 5 ], "texture": "#texture" },
  27.                                 "up": { "uv": [ 5, 0, 10, 5 ], "texture": "#texture" }
  28.                         }
  29.                 },
  30.                 {
  31.                         "__comment": "Box1",
  32.                         "from": [ 3, 0, 3 ],
  33.                         "to": [ 13, 10, 4 ],
  34.                         "faces": {
  35.                                 "north": { "uv": [ 0, 0, 5, 5 ], "texture": "#texture" },
  36.                                 "south": { "uv": [ 5, 0, 10, 5 ], "texture": "#texture" }
  37.                         }
  38.                 },
  39.                 {
  40.                         "__comment": "Box1",
  41.                         "from": [ 3, 0, 12 ],
  42.                         "to": [ 13, 10, 13 ],
  43.                         "faces": {
  44.                                 "north": { "uv": [ 5, 0, 10, 5 ], "texture": "#texture" },
  45.                                 "south": { "uv": [ 0, 0, 5, 5 ], "texture": "#texture" }
  46.                         }
  47.                 },
  48.                 {
  49.                         "__comment": "Box1",
  50.                         "from": [ 3, 0, 3 ],
  51.                         "to": [ 4, 10, 13 ],
  52.                         "faces": {
  53.                                 "west": { "uv": [ 0, 0, 5, 5 ], "texture": "#texture" },
  54.                                 "east": { "uv": [ 5, 0, 10, 5 ], "texture": "#texture" }
  55.                         }
  56.                 },
  57.                 {
  58.                         "__comment": "Box1",
  59.                         "from": [ 12, 0, 3 ],
  60.                         "to": [ 13, 10, 13 ],
  61.                         "faces": {
  62.                                 "west": { "uv": [ 5, 0, 10, 5 ], "texture": "#texture" },
  63.                                 "east": { "uv": [ 0, 0, 5, 5 ], "texture": "#texture" }
  64.                         }
  65.                 },
  66.                 {
  67.                         "__comment": "Box1",
  68.                         "from": [ 3, 9, 3 ],
  69.                         "to": [ 13, 10, 13 ],
  70.                         "faces": {
  71.                                 "down": { "uv": [ 10, 5.5, 15, 10.5 ], "texture": "#texture" },
  72.                                 "up": { "uv": [ 10, 10.5, 15, 15.5 ], "texture": "#texture" }
  73.                         }
  74.                 },
  75.                 {
  76.                         "__comment": "Box7",
  77.                         "from": [ 6, 9, 6 ],
  78.                         "to": [ 7, 13, 10 ],
  79.                         "faces": {
  80.                                 "west": { "uv": [ 6, 6.5, 8, 8.5 ], "texture": "#texture" },
  81.                                 "east": { "uv": [ 8, 6.5, 10, 8.5 ], "texture": "#texture" }
  82.                         }
  83.                 },
  84.                 {
  85.                         "__comment": "Box7",
  86.                         "from": [ 9, 9, 6 ],
  87.                         "to": [ 10, 13, 10 ],
  88.                         "faces": {
  89.                                 "west": { "uv": [ 8, 6.5, 10, 8.5 ], "texture": "#texture" },
  90.                                 "east": { "uv": [ 6, 6.5, 8, 8.5 ], "texture": "#texture" }
  91.                         }
  92.                 },
  93.                 {
  94.                         "__comment": "Box7",
  95.                         "from": [ 6, 9, 6 ],
  96.                         "to": [ 10, 13, 7 ],
  97.                         "faces": {
  98.                                 "north": { "uv": [ 6, 6.5, 8, 8.5 ], "texture": "#texture" },
  99.                                 "south": { "uv": [ 8, 6.5, 10, 8.5 ], "texture": "#texture" }
  100.                         }
  101.                 },
  102.                 {
  103.                         "__comment": "Box7",
  104.                         "from": [ 6, 9, 9 ],
  105.                         "to": [ 10, 13, 10 ],
  106.                         "faces": {
  107.                                 "north": { "uv": [ 8, 6.5, 10, 8.5 ], "texture": "#texture" },
  108.                                 "south": { "uv": [ 6, 6.5, 8, 8.5 ], "texture": "#texture" }
  109.                         }
  110.                 },
  111.                 {
  112.                         "__comment": "Box11",
  113.                         "from": [ 5, 12, 5 ],
  114.                         "to": [ 11, 13, 11 ],
  115.                         "faces": {
  116.                                 "down": { "uv": [ 6, 10, 9, 13 ], "texture": "#texture" },
  117.                                 "up": { "uv": [ 6, 10, 9, 13 ], "texture": "#texture" },
  118.                                 "north": { "uv": [ 6, 9, 9, 9.5 ], "texture": "#texture" },
  119.                                 "south": { "uv": [ 6, 9, 9, 9.5 ], "texture": "#texture" },
  120.                                 "west": { "uv": [ 6, 9, 9, 9.5 ], "texture": "#texture" },
  121.                                 "east": { "uv": [ 6, 9, 9, 9.5 ], "texture": "#texture" }
  122.                         }
  123.                 },
  124.                 {
  125.                         "__comment": "Box12",
  126.                         "from": [ 6, 13, 6 ],
  127.                         "to": [ 10, 13.5, 10 ],
  128.                         "faces": {
  129.                                 "down": { "uv": [ 0, 5.5, 4, 9.5 ], "texture": "#texture" },
  130.                                 "up": { "uv": [ 0, 5.5, 4, 9.5 ], "texture": "#texture" },
  131.                                 "north": { "uv": [ 6, 5.5, 10, 6.5 ], "texture": "#texture" },
  132.                                 "south": { "uv": [ 6, 5.5, 10, 6.5 ], "texture": "#texture" },
  133.                                 "west": { "uv": [ 6, 5.5, 10, 6.5 ], "texture": "#texture" },
  134.                                 "east": { "uv": [ 6, 5.5, 10, 6.5 ], "texture": "#texture" }
  135.                         }
  136.                 },
  137.                 {
  138.                         "__comment": "Box12",
  139.                         "from": [ 7, 10.5, 7 ],
  140.                         "to": [ 9, 13.5, 9 ],
  141.                         "faces": {
  142.                                 "down": { "uv": [ 4, 5.5, 6, 7.5 ], "texture": "#texture" },
  143.                                 "north": { "uv": [ 4, 7.5, 6, 10.5 ], "texture": "#texture" },
  144.                                 "south": { "uv": [ 4, 7.5, 6, 10.5 ], "texture": "#texture" },
  145.                                 "west": { "uv": [ 4, 7.5, 6, 10.5 ], "texture": "#texture" },
  146.                                 "east": { "uv": [ 4, 7.5, 6, 10.5 ], "texture": "#texture" }
  147.                         }
  148.                 }
  149.         ],
  150.         "display": {
  151.                 "thirdperson_righthand": {
  152.                         "rotation":  [ 75, 45, 0 ],
  153.                         "translation":  [ 0, 2.5, 0 ],
  154.                         "scale":  [ 0.375, 0.375, 0.375 ]
  155.                 },
  156.                 "thirdperson_lefthand": {
  157.                         "rotation":  [ 75, 45, 0 ],
  158.                         "translation":  [ 0, 2.5, 0 ],
  159.                         "scale":  [ 0.375, 0.375, 0.375 ]
  160.                 },
  161.                 "firstperson_righthand": {
  162.                         "rotation":  [ 0, 45, 0 ],
  163.                         "translation":  [ 0, 3, 0 ],
  164.                         "scale":  [ 0.4, 0.4, 0.4 ]
  165.                 },
  166.                 "firstperson_lefthand": {
  167.                         "rotation":  [ 0, 45, 0 ],
  168.                         "translation":  [ 0, 3, 0 ],
  169.                         "scale":  [ 0.4, 0.4, 0.4 ]
  170.                 },
  171.                 "gui": {
  172.                         "rotation":  [ 30, 225, 0 ],
  173.                         "scale":  [ 0.625, 0.625, 0.625 ]
  174.                 },
  175.                 "ground": {
  176.                         "translation":  [ 0, 2, 0 ],
  177.                         "scale":  [ 0.5, 0.5, 0.5 ]
  178.                 }
  179.         }
  180. }
复制代码


这个试试,把Box14拉到了最前,原来还和element的顺序有关...学到了