Vswe's Summer Courses | You're not logged in. Sign up or log in | Server time: | Donate
One can now see other persons' badge hunts. Simply head over to their profiles to access them.

Go back to course page

The anatomy of a Minecraft model

How to work with and create models for Minecraft

Rendering block with Tessellator

  • 2013-09-22 13:25:44
    So i'm trying to draw custom block shape with tessellator and i get a problem when try to apply GL_BLEND in renderWorldBlock method, beacuase it apply to all currently drawn blocks. Is there a way around it?

    Block in inventory get rendered without any problems.

    There's the rendering code (not mine):
  • 2013-09-22 18:34:50
    Disable the blend afterwards? I don't get what that code has to do with your problem.
  • 2013-09-22 19:24:14
    I wouldn't have asked if that worked. But if i use blend in block render code all blocks around become transparent as well.
  • 2013-09-22 20:35:48
    To be more clear what's going on:

    Before placing the block:

  • 2013-09-25 22:29:04
    That seems weird. I'm afraid I don't know how to solve that. Do you have to apply the blend?
  • 2013-09-26 05:59:50
    Well i don't HAVE to, but atm it's the only way i know to make vanilla textures see-through. Other than that i'd have to prepare transparent texture and use different rendering pass for vanilla blocks.

    In the end, I'll find some way to do it differently somehow.
  • Log in or sign up to reply to this thread