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

Problem Rendering texture with net6 #463

Open
aznarepse opened this issue Oct 22, 2022 · 4 comments
Open

Problem Rendering texture with net6 #463

aznarepse opened this issue Oct 22, 2022 · 4 comments

Comments

@aznarepse
Copy link

I am trying to use the examples from https://github.com/mellinoe/veldrid-samples using net6 in VS2022. I have updated the frameworks and some dependencies so that I could run the projects.
In the project Textured Cube, my texture does not render correctly. It appears to only render close to the top vertices of the cube (note that the image is taken from a rotation).
image

If I use VS2019, the example runs correctly.
Please, could someone advise if there is an incompatibility with net6 or whether I am doing something wrong? I am not getting any error.

@aznarepse
Copy link
Author

So, after many hours trying to find the problem, I have identified that it is in the AssetProcessor console app.
Using RenderDoc I can see that the texture resource is actually as it is shown in the rendered frame. The AssetsResource creates a bad binary. This is traced to ImageSharp version. I have uplifted the Nuget to latest version and corrected the braking changes and it works now.
Thanks to anybody that looked into this.

@mellinoe
Copy link
Collaborator

Thanks for looking into it @aznarepse . Do you think you could create a PR to the samples repository with the fix that you found?

@aznarepse
Copy link
Author

Sure thing! I'll do it over the weekend. I have made too many changes into the project; it will be better from a fresh pull.

Best, Adan

@aznarepse
Copy link
Author

PR with you already mellinoe/veldrid-samples#46
Thank you very much for this great library.

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