Jump to content

Xumuk

Members
  • Posts

    36
  • Joined

  • Last visited

Everything posted by Xumuk

  1. While I was waiting for an answer, I already did it. Now I have a problem in another. I there is some conflict of dimensions. Getting into my world, it's like I'm in the same place I came from. Besides, miracles happen in it. I do not know how to explain it and what is the error, but I can show:
  2. Hello! I created my world and now I'm trying to get into it. Is it possible to somehow get into this world without creating a custom Teleporter? I tried this: public class EventTeleport { @SubscribeEvent public void travel(PlayerInteractEvent.Clone e) { e.getEntityPlayer().changeDimension(14); } } My world’s download starts and it hangs. Crash log attached:
  3. I understood. If I do this: { "forge_marker": 1, "variants": { "normal": { "model": "realism:testobj.obj","flip-v": true} } } But the texture is still missing, only gray. Gray, but not white default, because to the loader writed , that it takes the color from the material. But the texture is still present. If mtl insert row "map_Ke realism:blocks\appletop", nothing will change Console writed: [13:36:16] [main/INFO] [FML]: OBJLoader.MaterialLibrary: key '' (model: 'realism:models/block/testobj.mtl') is not currently supported, skipping [13:36:16] [main/INFO] [FML]: OBJLoader.MaterialLibrary: key 'Ni' (model: 'realism:models/block/testobj.mtl') is not currently supported, skipping [13:36:16] [main/INFO] [FML]: OBJModel: A color has already been defined for material 'mylib' in 'realism:models/block/testobj.mtl'. The color defined by key 'Ks' will not be applied! [13:36:16] [main/INFO] [FML]: OBJLoader.MaterialLibrary: key 'Ke' (model: 'realism:models/block/testobj.mtl') is not currently supported, skipping [13:36:16] [main/INFO] [FML]: OBJLoader.Parser: command 's' (model: 'realism:models/block/testobj.obj') is not currently supported, skipping. Line: 37 's 2' File testobj with "s 2" line mtllib testobj.mtl # # object Box001 # v 0.1500 -0.0000 0.8500 v 0.1500 -0.0000 0.1500 v 0.8500 -0.0000 0.1500 v 0.8500 -0.0000 0.8500 v 0.1500 0.7000 0.8500 v 0.8500 0.7000 0.8500 v 0.8500 0.7000 0.1500 v 0.1500 0.7000 0.1500 # 8 vertices vn 0.0000 -1.0000 -0.0000 vn 0.0000 1.0000 -0.0000 vn 0.0000 0.0000 1.0000 vn 1.0000 0.0000 -0.0000 vn 0.0000 0.0000 -1.0000 vn -1.0000 0.0000 -0.0000 # 6 vertex normals vt 1.0000 0.0000 0.0000 vt 1.0000 1.0000 0.0000 vt 0.0000 1.0000 0.0000 vt 0.0000 0.0000 0.0000 # 4 texture coords o Box001 g Box001 usemtl mylib s 2 f 1/1/1 2/2/1 3/3/1 f 3/3/1 4/4/1 1/1/1 s 4 f 5/4/2 6/1/2 7/2/2 f 7/2/2 8/3/2 5/4/2 s 8 f 1/4/3 4/1/3 6/2/3 f 6/2/3 5/3/3 1/4/3 s 16 f 4/4/4 3/1/4 7/2/4 f 7/2/4 6/3/4 4/4/4 s 32 f 3/4/5 2/1/5 8/2/5 f 8/2/5 7/3/5 3/4/5 s 64 f 2/4/6 1/1/6 5/2/6 f 5/2/6 8/3/6 2/4/6 # 12 faces
  4. If you do as you said, in the end it will simply be loaded default model specified in the blockstate. OBJ model is not loaded at all... { "forge_marker": 1, "defaults": { "model": "realism:beton" }, "variants": { "normal": [ { } ], "inventory": [ { } ], "multi": { "invalid": { "model": "realism:beton" }, "center":{}, "render": { "custom": { "flip-v": true }, "model": "realism:testobj.obj", "transform": { "scale": [ 1, 1, 1 ], "translation": [ 0.5, 0, 0.5 ] } }, "structure": { } } } }
  5. 3ds Max ~~~ I haven't created blockstate for this model since I don't know what it should look like for .obj
  6. @Pheenixm I did everything you said, but the white color just got a little darker. And texture my still there is no? My mtl file now: # 3ds Max Wavefront OBJ Exporter v0.97b - (c)2007 guruware # File Created: 20.08.2018 18:34:47 newmtl mymtl Ns 96.078431 Ni 1.000000 d 1.000000 Tr 0.0000 Tf 1.0000 1.0000 1.0000 illum 2 Ka 1.000000 1.000000 1.000000 Kd 0.640000 0.640000 0.640000 Ks 0.500000 0.500000 0.500000 Ke 0.000000 0.000000 0.000000 map_Ka realism:blocks\appletop map_Kd realism:blocks\appletop What's that ? There are no such values in your mtl file. Tr 0.0000 Tf 1.0000 1.0000 1.0000
  7. It didn't help me
  8. I'm use custom name. But still does not work
  9. # 3ds Max Wavefront OBJ Exporter v0.97b - (c)2007 guruware # File Created: 20.08.2018 18:34:47 newmtl 01___Default Ns 10.0000 Ni 1.5000 d 1.0000 Tr 0.0000 Tf 1.0000 1.0000 1.0000 illum 2 Ka 0.5882 0.5882 0.5882 Kd 0.5882 0.5882 0.5882 Ks 0.0000 0.0000 0.0000 Ke 0.0000 0.0000 0.0000 map_Ka realism:textures\blocks\appletop.png map_Kd realism:textures\blocks\appletop.png Maybe the wrong way to textures?
  10. Your advice didn't help. The model is now less than one block size, located inside the coordinates 1x1x1, but still has no texture.
  11. Hello eweryone! The loading of the mtl library. More precisely, it works, but the texture of it is not loaded. The model is loaded, but the texture is not. Forge does not throw an error. Only the notification that the texture I use for my model is not supported and is skipping. My MC version - 1.12.2 Loading the model like this: public static void registerRenderObj(Block block) { ModelLoader.setCustomModelResourceLocation(Item.getItemFromBlock(block),0, new ModelResourceLocation(new ResourceLocation(block.getRegistryName().getResourceDomain(), block.getRegistryName().getResourcePath().concat(".obj")),"inventory")); } I export the model like this:
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.