cj-mills / Barracuda-PoseNet-Tutorial

This tutorial series provides step-by-step instructions for how to perform human pose estimation in Unity with the Barracuda inference library.
https://christianjmills.com/posts/barracuda-posenet-tutorial-v2/part-1/
MIT License
98 stars 19 forks source link

Unity 2022.2.13 windows 10. pink screen. #5

Closed 99bits closed 1 year ago

99bits commented 1 year ago

Hi Christian,

Many Thank you for your excellent articles, tutorials and project code. It's been an incredible learning resource for me.
I am on the latest version of Unity 2022 and testing this project in the editor and it works perfectly. Then I built the project as a standalone for windows and got a pink screen. Both Standard and URP build.

InEditor pink

cj-mills commented 1 year ago

Hi @99bits, My first guess is the Unlit/Texture shader is not in the "Always Included Shaders" list. You can check if it is in the Project Settings → Graphics section, as in the image below.

unity-always-included-shaders

You can add it manually or include the Editor script linked below, which adds it to projects automatically at build time.

99bits commented 1 year ago

Big Thank you for that tip.
I forgot that part of your tutorial. Adding Unlit/Texture and Unlit/Color fixed on both SR and URP.
Works fantastically.
Cheers.

Edit, btw, on URP the video material was pink, I used another URP material that's not unity's Unlit shader so I thought that's why I didn't need to add the default unlit shader.

Image from your tutorial which I forgot. add-unlit-color-shader