Oculus

Oculus

48M Downloads

1.20.1 JourneyMap Incompatibility

mysticdrew opened this issue ยท 1 comments

commented

Minecraft Version

1.20.1

Oculus Version

1.6.5

Sodium Version

rubidium 0.6.5

Operating System

win10

What is your GPU?

5700xt

Java Version

17

Reproduction Steps

When JourneyMap gets the rendertype for the icon.

You have seen a bunch of crash logs related to JourneyMap I am sure. I am the dev of JourneyMap.

From WaypointDecorationRenderer to get the renderType before the icon is rendered.

        RenderType type = WaypointRenderTypes.getIcon(location);
        VertexConsumer vertexBuilder = buffers.getBuffer(type);

My Icon RenderType

    public static RenderType getIcon(ResourceLocation resourceLocation)
    {
        return ICON_RENDER_TYPE_MAP.putIfAbsent(resourceLocation,
                create("waypoint_icon" + resourceLocation.toDebugFileName(),
                        DefaultVertexFormat.POSITION_COLOR_TEX_LIGHTMAP,
                        VertexFormat.Mode.QUADS,
                        256,
                        false,
                        true,
                        RenderType.CompositeState.builder()
                                .setTextureState(new RenderStateShard.TextureStateShard(resourceLocation, true, false))
                                .setDepthTestState(NO_DEPTH_TEST)
                                .setTransparencyState(ICON_TRANSPARENCY)
                                .setWriteMaskState(COLOR_WRITE)
                                .setLightmapState(LIGHTMAP)
                                .setCullState(CULL)
                                .setLayeringState(NO_LAYERING)
                                .setShaderState(POSITION_COLOR_TEX_LIGHTMAP_SHADER)
                                .createCompositeState(false)));
    }

    protected static final RenderStateShard.TransparencyStateShard ICON_TRANSPARENCY = new RenderStateShard.TransparencyStateShard("icon_transparency", () ->
    {
        RenderWrapper.enableBlend();

        RenderWrapper.blendFuncSeparate(RenderWrapper.GL_SRC_ALPHA, RenderWrapper.GL_ONE_MINUS_SRC_ALPHA, 1, 0);
        RenderWrapper.texParameter(RenderWrapper.GL_TEXTURE_2D, RenderWrapper.GL_TEXTURE_MIN_FILTER, RenderWrapper.GL_LINEAR);
        RenderWrapper.texParameter(RenderWrapper.GL_TEXTURE_2D, RenderWrapper.GL_TEXTURE_MAG_FILTER, RenderWrapper.GL_LINEAR);
        RenderWrapper.texParameter(RenderWrapper.GL_TEXTURE_2D, RenderWrapper.GL_TEXTURE_WRAP_S, RenderWrapper.GL_REPEAT);
        RenderWrapper.texParameter(RenderWrapper.GL_TEXTURE_2D, RenderWrapper.GL_TEXTURE_WRAP_T, RenderWrapper.GL_REPEAT);
    }, () ->
    {
        RenderWrapper.disableBlend();
        RenderWrapper.defaultBlendFunc();
    });

Crash Report file and latest.log

No response

Additional context

crash-2023-06-28_20.57.16-client.txt
latest.log
debug.log

I've joined your discord, let's chat and get this resolved.

commented

I found a solution