Jump to content

Recommended Posts

Posted

Hey there,

 

I can't seem to get the correct texture from the block texture map to display on my OBJ model.

 

1.7.10:

g4GRNZS.png

 

1.8.9:

sUuOPXt.png

 

1.7.10 code:

 

  Reveal hidden contents

 

 

1.8.9 code:

 

  Reveal hidden contents

 

 

OBJ File

 

  Reveal hidden contents

 

 

Material File

 

  Reveal hidden contents

 

 

If anyone has any ideas about why the texture is not being mapped properly, it would be much appreciated.

Posted

Greetings. I am thinking you need to register your textures. Everything else looks good as far as I can tell. In 1.8.9 we need to @SubscribeEvent the client side event: "TextureStitchEvent" and then you can register your textures in that.

For example:

event.map.registerSprite(new ResourceLocation("bibliocraft:models/bookcase_books"));

 

Hope that helps.

 

 

Posted

Thank you, it was a combination of not stitching the texture into the block map, and the texture not being square. The non-square texture worked in <1.8 but the error got lost in the log with a lot of other problems on the go.

Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

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