I’m working in HDRP with ClearShot cams in Cinemachine. I’m finding hair and cloth doesn’t render unless they’re near the center of the screen. What am I missing here?
For reference, if I use a standard camera, I don’t have this issue. It’s only with the Cinemachine cameras.
Hmmm… that’s very strange. As you have set it up, Cinemachine is not actually doing anything other than positioning the camera. I can’t see why it wouldn’t work. So you’re saying that if you disable the CM Brain, it starts working properly?
Actually, disabling the brain still does it. I’m also noticing it on my editor camera.
However, if I just add a generic camera into the scene (create → camera) and make that my enabled camera, it renders the hair fine on the screen even when not in the center. The cloth (in this case a blanket on a bed) works better but does disappear at the edges of the screen still. The hair shader is just HDRP/Lit - Transparent. The cloth is HDRP/Lit - Opaque.
Sure. I couldn’t upload it as even with everything stripped down it’s still 50MB (I’m not sure what HDRP stuff I can take out so didn’t remove some of the defaults).
You should see if you move the editor camera around or if you scrub the timeline (or press play and wait for about 5-6 seconds) the girl’s hair won’t render when it’s near the bottom of sides of the screen.
I can repro. Nothing to do with CM, I can make it happen with a normal camera too (just get really close, and zoom in).
Hair stops rendering because for some reason it thinks it’s offscreen. Checking this makes the problem go away:
I don’t know how the hair system determines it’s offscreen. Maybe you can ask on another forum.
One thing: why are you using all those ClearShots for a scene with static cameras? They are useless and just add complexity for nothing. Just use the vcams directly in the timeline, forget the ClearShots. And set their procedural algorithms to “Do Nothing”.
Thanks! That fixed the hair. The cloth still has this issue, but it looks like the bounding box is way bigger than the cloth so when the camera goes inside of it then it doesn’t render. Not sure how to fix as it doesn’t let me change the bounding box size but will play around with it.
As for the ClearShot cams… I’m new to Cinemachine so not sure what I’m doing yet on that front. Thanks for the tips.
Hello! I hate to bump this thread, but I am also facing this issue. I gave my character a cape using the Cloth component and the Camera constantly culls it if it gets relatively close. I use Cinemachine for my camera.
I have the same problem, update when offscreen is checked
Its updating anyway as I can see the cloths shadow moving around animated so the cloth is being animated and rendered into the shadow buffer just not in the main cameras.
The cloth only gets rendered into the main camera if the center of the cloth is onscreen, thus it pops in/out.
2020.1.17 using cinebrain also
edit: OK I think the issue is caused by the automatic bounds calculation, is there any way to turn this off, and let me define a slightly larger bounds value?
Theres no way for me to change the bounds values, clicking on edit bounds does not allow me to change them. Or typing different numbers in the bounds boxes as well, they just get ignored.
I assume this is a bug in unity