lrf8643
http://ww4.sinaimg.cn/bmiddle/42 ... i3t4j20sw0g9juu.jpg


我实在想不通,为什么贴图会崩掉。下面是两个json

cube_bottom_top.json
  1. {
  2.     "elements": [
  3.         {   "from": [ 0, 0, -16 ],
  4.             "to": [ 16, 16, 32 ],
  5.             "faces": {
  6.                 "down":  { "texture": "#down", "cullface": "down" },
  7.                 "up":    { "texture": "#up", "cullface": "up" },
  8.                 "north": { "texture": "#bian", "cullface": "north" },
  9.                 "south": { "texture": "#bian", "cullface": "south" },
  10.                 "west":  { "texture": "#bian", "cullface": "west" },
  11.                 "east":  { "texture": "#bian", "cullface": "east" }
  12.             }
  13.         }
  14.     ]
  15. }
复制代码


lit_redstone_lamp.json
  1. {
  2.     "parent": "block/cube_bottom_top",
  3.     "textures": {
  4.         "particle":"blocks/on",
  5.         "down": "blocks/on",
  6.         "up": "blocks/bian",
  7.         "bian": "blocks/bian"
  8.     }
  9. }
复制代码



@⊙v⊙  @719220502

fs200
导入模型编辑器试试

⊙v⊙
因为你没弄uv,所以崩了。
崩材质的情况一般都是没弄好uv,材质分辨率之类的。
崩模型(变回16x16黑紫块)的一般就是json格式错了(少打符号,括号不对等什么的.....)
而你是前者。

或许你需要看下贴图uv那部分,所以....
度盘有我刚才弄的示范材质包...

  1. {
  2.     "textures": {
  3.         "particle":"blocks/on",
  4.         "bian":"blocks/bian",
  5.         "R":"blocks/resize"
  6.     },
  7.     "elements": [{
  8.         "from": [0, 0, -16],"to": [16, 16, 32],
  9.             "faces": {
  10.                 "north": { "texture":"#bian","cullface":"north","uv":[0,0,16,16]},
  11.                 "south": { "texture":"#bian","cullface":"south","uv":[0,0,16,16]},
  12.                 "west": { "texture":"#bian","cullface":"west","uv":[0,0,16,16]},
  13.                 "east": { "texture":"#R","cullface":"east","uv":[0,0,12,4]},
  14.                 "up": { "texture":"#bian","cullface":"up","uv":[0,0,16,16]},
  15.                 "down": { "texture":"#particle","cullface":"down","uv":[0,0,16,16]}
  16.         }
  17.     }]
  18. }
复制代码
以上是把你那两部分结合的(个人习惯...)
先是texture那部分,同样的可以不用重复填加,所以我简化了。
然后你图上的原因,因为from to那里已经不是平常的0 0 0 到 16 16 16,所以你要加uv确定材质的选位。
因为model是长方体了,而这样选uv(0 0 16 16)的话,上下和west east这4个面的材质也就会有拉伸。
所以我弄的材质包里 把east面调整了下(所以texture那多加了个R...恩)

以上


lrf8643
⊙v⊙ 发表于 2016-3-4 05:19
因为你没弄uv,所以崩了。
崩材质的情况一般都是没弄好uv,材质分辨率之类的。
崩模型(变回16x16黑紫块)的 ...

其实后来想了下我也知道哪里错了。我直接把做好的1536*512的贴图弄上去了。应该弄成1536*1536然后UV切割的。

lrf8643
⊙v⊙ 发表于 2016-3-4 05:19
因为你没弄uv,所以崩了。
崩材质的情况一般都是没弄好uv,材质分辨率之类的。
崩模型(变回16x16黑紫块)的 ...

总算做好了,这效果确实不错。
http://ww1.sinaimg.cn/mw1024/4273367bgw1f1kpzn0y0pj20sw0g90ve.jpg


  1. {
  2.         "textures": {
  3.             "particle":"blocks/on",
  4.                 "on":"blocks/on",
  5.                 "bian":"blocks/bian",
  6.                 "ce":"blocks/nether_brick"
  7.         },
  8.     "elements": [
  9.         {   "from": [ 0, 0, -16 ],
  10.             "to": [ 16, 16, 32 ],
  11.             "faces": {
  12.                 "down":
  13. { "texture": "#on","cullface":"down","uv":[0,0,16,5.333],"rotation":90},
  14.                 "up":
  15. { "texture": "#bian", "cullface": "up","uv":[0,0,16,3]},
  16.                 "north":
  17. { "texture": "#ce","cullface":"north","uv":[0,0,16,16]},
  18.                 "south":
  19. { "texture": "#ce","cullface":"south","uv":[0,0,16,16]},
  20.                 "west":
  21. { "texture": "#bian", "cullface": "west","uv":[0,0,16,3]},
  22.                 "east":
  23. { "texture": "#bian", "cullface": "east","uv":[0,0,16,3]}
  24.             }
  25.         }
  26.     ]
  27. }
复制代码