Typo in Semantic Advanced Tutorial

There looks to be a typo in the Advanced segmentation tutorial.
https://lightship.dev/docs/moderate_semantictextures_tutorial.html

should the name be “sky” lowercase. When I changed this it worked.

    private void OnSemanticsBufferUpdated(ContextAwarenessStreamUpdatedArgs<ISemanticBuffer> args)
    {

        //get the current buffer
        ISemanticBuffer semanticBuffer = args.Sender.AwarenessBuffer;
        //get the index for sky
        int channel = semanticBuffer.GetChannelIndex("Sky");

        semanticBuffer.CreateOrUpdateTextureARGB32(
                ref _semanticTexture, channel
            );
    }

Thanks for finding this. Yes, I believe the channel index string should be lower-case. I’ll follow-up and update the tutorial accordingly.

1 Like