Canvas Renderer

Canvas Renderer

202k Downloads

Red Main Menu

Afrocntrik opened this issue · 8 comments

commented

image
Black screen on options
image

commented

I'm using a CyanideX's Unity resource pack but when fading from the Mojang the main menu is red as shown above

commented

Latest Canvas update; Mod Menu:
image

commented

That's an interesting one. Just to confirm, this is build 927, correct?

commented

Do you have AE2 installed by any chance? I get a similar problem with it in the mods folder.

No idea how that could happen but it is.

commented

Yeah I do, this is build 927 and thanks for responding so fast

commented

Thank you for reporting the issue quickly. It’s surprising how long major defects can go unreported.

I’m able to reproduce this reliably with vanilla texture pack. If I make it past the menu it runs normally for me. Same for you?

@shartte, I’m guessing this one is on my side. You’re probably referencing something in startup that instantiates one of my things sooner than it normally happens, and it is probably setting some GL state that needs to be cleaned up.

I will try to track it down. If you get defect reports send them here. Will let you know if it turns out to be your fault. 😜

commented

Alright, yeah we got one already :-D

But let me know what we do. We do inject into Bootstrap.register() to initialize our API, although I am unclear what we'd do in there that messes with anything rendering related hmmm.

commented

This is fixed in build 929, which should be visible on CF in a few minutes. It can also be found in releases.

@shartte Cause here was as I expected. You do some model inspection/transformation for cable busses during init - perhaps a little earlier than other mods - and this was causing Canvas to initialize and upload an information texture that conveys information about the SpriteAtlas to shaders. This upload was setting some GL state that interfered with screen rendering after startup. (Not sure which state - it didn't matter for the fix.)

While the metadata for this texture is needed during model bake, the image doesn't have to be created and uploaded until rendering starts. So this was fixed by deferring texture creation and upload until it is needed during the render loop.