I just purchased AnyPortrait a few days ago and everything is pink. I am using Universal Render Pipeline. Is AnyPortriat incompatible with URP... How do I fix this??
I tried changing the default shader from AnyPortrait shader to unity standard shader but they change back when pressing play. All demo scenes have this problem.
Thanks,
Wael
Hi!
In each case, we will tell you the cause of the problem and how to fix it.
First, the screen looks blue because the demo scenes use two cameras.
In URP, the multi-camera setup is not compatible with the original method, so you need to change the properties.
(1) Find and select a camera for UI.
(2) Change the Render Type to Overlay.
Now it should work without any problems.
The second question you asked us is to change the material of models other than objects created with AnyPortrait.
Since AnyPortrait editor only manages the material of characters created with AnyPortrait, other materials must be manually modified.
(1) If you select 3D models after changing to URP, you can see that it has a material that is not compatible with URP.
(1) Change the shader of the material to the shader for URP.
(2) At this time, the texture properties can be initialized, so assign the texture to the Base Map again.
The fence model should now render properly.
Please refer to the Unity manual for how to create or configure URP material.
If you have more questions about URP, please leave a comment.
Thank you.
Hi,
Thanks for the quick reply.
I followed the steps in the above first link. AP Tutorial Scenes 1, 2, 3, 6 and 7 worked when I baked the URP Unlit material.
AP Tutorial Scenes 4, 5 - when I baked URP Unlit, the characters appeared in the unity scene window, but when I press play, it's just all blue background - the characters do not appear.
AP Tutorial Scene 8 contains Ground, Fence and Block objects which do not appear in the AnyPortrait editor, so I can't bake their materials using AnyPortrait... How do I bake their materials? The remaining characters I baked, which fixed their appearance in the unity scene window but not when I press play... For the fence I tried manually setting the material to Unlit/Texture, which fixed it in the scene but not when I press play either.
Thanks,
Wael Hemdan
Hi, Wael!
URP is a new way that is not compatible with other native shaders in Unity, so you have to swap shaders and materials.
AnyPortrait provides Shaders for URP.
For how to change to URP Shader, check the manual in the link below.
https://rainyrizzle.github.io/en/AdvancedManual/AD_URP.html
Explanations related to the Material Library or Shader Graph in the above manual can be a bit difficult.
We recommend that you also see the links below.
https://rainyrizzle.github.io/en/AdvancedManual/AD_MaterialLibrary.html
https://rainyrizzle.github.io/en/AdvancedManual/AD_ShaderGraph.html
If the problem is not resolved or you have more questions about this issue, please leave a comment.
Thank you!