Maniphest T90691

Eevee camera clipping inconsistent when using child of constraint on an armature.
Needs Information from Developers, Normal

Assigned To
None
Authored By
Quentin Wilkes (a3person)
Aug 15 2021, 7:18 PM
Tags
  • BF Blender
Subscribers
Clément Foucault (fclem)
Henrik Dick (weasel)
Pratik Borhade (PratikPB2123)
Quentin Wilkes (a3person)

Description

System Information
Operating system: Windows-10-10.0.19041-SP0 64 Bits
Graphics card: NVIDIA GeForce RTX 3070/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 471.41

Blender Version
Broken: version: 2.83.15, branch: master, commit date: 2021-05-19 11:41, hash: rBfd3036520101
version: 2.83.17, branch: master, commit date: 2021-08-10 09:03, hash: rB430262b133a4
version: 2.83.18 Release Candidate, branch: master, commit date: 2021-08-11 11:54, hash: rBccc6b688fe72
version: 2.93.2, branch: master, commit date: 2021-08-03 05:58, hash: rB1eb06de2607a
version: 2.93.3 Release Candidate, branch: master, commit date: 2021-08-12 15:05, hash: rB1eeae9be1531
version: 3.0.0 Alpha, branch: master, commit date: 2021-08-14 20:50, hash: rBd5261e973b56

Short description of error
Viewport's material preview and viewport's render has different camera cull than F12's render image, despite same clipping settings

Exact steps for others to reproduce the error


Verify viewport is in ACamera's view
Switch to viewport rendered and material preview to verify cubes on foreground are visible
Render to verify cubes in foreground have disappeared
Switch to ACamera.001 and render to verify cubes in foreground are consistent with viewport

Event Timeline

Quentin Wilkes (a3person) created this task.Aug 15 2021, 7:18 PM
Henrik Dick (weasel) added a subscriber: Henrik Dick (weasel).Aug 16 2021, 11:42 AM

I have been trying to get this bug in a simpler example with just an empty and the Child Of constraint, but I couldn't get it to work, can you try this as well?
I have also tried to simplify your file further and it seems like if I remove all kinds of scales on everything, it starts being correct again.
I tried to put non uniform scale into the mix, but even though the issue from T76163 showed, the clipping planes stayed consistent.
Might still be related to T76163 as a scaled view matrix would cause the near and farplane to shift if not handled correctly.

Pratik Borhade (PratikPB2123) added a subscriber: Pratik Borhade (PratikPB2123).Aug 16 2021, 11:43 AM
Quentin Wilkes (a3person) added a comment.Aug 18 2021, 5:06 AM

I was able to replicate the bug with the camera constrained to an empty with the Child of Constraint... but only with some camera angles...

With uniform scale (1,1,1) I set child of constraint to empty, then click set inverse. I gave the empty a non-uniform scale of .95,1,1.05 and rotated the camera around until I got

When I change the camera's clip end it also starts to behave weirdly and clip objects close to the camera the higher clip end goes.

Blend File

Henrik Dick (weasel) added a subscriber: Clément Foucault (fclem).Aug 18 2021, 11:22 AM

@Clément Foucault (fclem) does Eevee calculate the view matrix different in render and viewport?

Henrik Dick (weasel) changed the task status from Needs Triage to Needs Information from Developers.Aug 18 2021, 11:22 AM