Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Myra.Stride won't stay assigned in the Graphics Composter on recompile. #434

Closed
ulrichanthony opened this issue Nov 7, 2023 · 2 comments

Comments

@ulrichanthony
Copy link

ulrichanthony commented Nov 7, 2023

I went through the documentation and followed the steps to get Myra working in my Stride project. Everything works fine when building the project. The problem is that when I change any code and Stride refreshes the assemblies it removes the MyraRenderer reference in the Graphics Composter.

Here you can see the Graphics Composter configured the same way as the tutorial.
graphics

Myra.Stride is marked as a dependency using NuGet (version 1.5.1 of Myra.Stride)
dependancies

As soon as I update some code and Stride reloads, the reference gets cleared:
graphics_broken

(GraphicsCompositor.sdgfxcomp diff)

Children:
            d39c5ddbf8b7d5ca02bafb6496b1cc3c: !Stride.Rendering.Compositing.ForwardRenderer,Stride.Engine ref!! 4a5f037c-28e4-40cc-ab93-ccfc942b4cfb
            01d338078e9b21121ead0868932613dd: !Stride.Rendering.Compositing.DebugRenderer,Stride.Rendering ref!! 24284074-c3a5-47f9-86e4-50fda471dea4
            79d3aa9f5d78b4b1b33234992d6053a4*: !SpaceMiner.MyraRenderer,SpaceMiner
                Id: 3e70c134-9c0b-4be9-87a8-7821f2bb5abe
            c8955ef334acdd184308a009fbf21dda*: null

And after adding it back manually I looks like the GUID for the MyraRenderer has changed causing the reference to be lost in the first place.

Children:
            d39c5ddbf8b7d5ca02bafb6496b1cc3c: !Stride.Rendering.Compositing.ForwardRenderer,Stride.Engine ref!! 4a5f037c-28e4-40cc-ab93-ccfc942b4cfb
            01d338078e9b21121ead0868932613dd: !Stride.Rendering.Compositing.DebugRenderer,Stride.Rendering ref!! 24284074-c3a5-47f9-86e4-50fda471dea4
            79d3aa9f5d78b4b1b33234992d6053a4*: !SpaceMiner.MyraRenderer,SpaceMiner
                Id: 3e70c134-9c0b-4be9-87a8-7821f2bb5abe
            c8955ef334acdd184308a009fbf21dda*: !SpaceMiner.MyraRenderer,SpaceMiner
                Id: e87704fe-668c-4238-bc94-7fdc091af97c

What could be causing this?

@rds1983
Copy link
Owner

rds1983 commented Dec 6, 2023

Seems like a Stride Engine bug.
There's a workaround though: MyraRenderer could be added to the GraphicsCompositor via Startup Script.
I've updated the tutorial accordingly: https://github.com/rds1983/Myra/wiki/Using-Myra-in-Stride-Engine-Tutorial
The new way is described starting from the step 8.

@ulrichanthony
Copy link
Author

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants