Actually Additions

Actually Additions

66M Downloads

Laser Relay incompatibility with EnderIO machine side config

Unatan63 opened this issue ยท 12 comments

commented

When using lasers relays with Ender IO machines you can no longer see the input/output configuration option on the machines, take the lasers off and can use/see them again.

commented

Still don't know what causes this.
Gotta forward this to someone like @HenryLoenwind - Is this on my side? What can I do to fix this?
This is the Laser Relay renderer, and this is the actual method that renders the laser.
I had thought about somehow movig the actual Laser Render to one of the Rendering Events, but haven't played around with that - maybe that's the solution to go for here.

commented

Do you have a screenshot how it looks with the lasers?

commented

Inside of the GUI? The screen just goes completely either grayish-blue or sky colored, depending on (something..?).
Pressing ESC is the only way to get out of that.

commented

ok, "screen going bluish-gray" is a known error pattern for me. If I just could remember what's causing it ;)

commented

It has to be something related to one of the GL things being disabled/enabled wrongly or inappropriately. But I have so little of a clue about rendering code - that's also why I outsourced the Laser Renderer to someone else as you can see at the top of the method :P

commented

Which TESR renderpass are you rendering in? I'd expect pass 1 (second pass) for transparency? Then try to reset state with:

          GlStateManager.enableBlend();
          GlStateManager.depthMask(false);
          GlStateManager.blendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
commented

There are different TESR render passes? I didn't even know that.
But I'll try doing that.

commented

yes, 2 passes, so you can render transparent stuff over solid stuff, just like with blocks.

commented

How do I tell it which pass to render in?

commented
        if (tile.shouldRenderInPass(pass)) {
commented

Thanks for the help. Will see later if that fixes the issue

commented

Which btw, is pure speculation on my side...

If that doesn't help, try to comment out the cleanup gl statements one by one...