phantom-camera icon indicating copy to clipboard operation
phantom-camera copied to clipboard

Framed Follow viewfinder conflict with debug_draw_3d addon

Open fhgaha opened this issue 1 year ago • 7 comments

Issue description

In this release after running the res://addons/phantom_camera/examples/example_scenes/3D/3d_follow_framed_example_scene.tscn I see this ga9bOiQkbR No reaction on mouse movement or keys pressed

Steps to reproduce

In this release run scene res://addons/phantom_camera/examples/example_scenes/3D/3d_follow_framed_example_scene.tscn

(Optional) Minimal reproduction project

No response

I use Godot 4.2.1 GDScript version

fhgaha avatar May 09 '24 18:05 fhgaha

That doesn't look right. Have no never seen that issue before.

I tried downloading the addon from the AssetLib on a freshly made project. When I'm running it, I'm seeing the below: image

ramokz avatar May 09 '24 21:05 ramokz

Are you getting any errors in the Output tab?

ramokz avatar May 09 '24 21:05 ramokz

Are you getting any errors in the Output tab?

There are no errors. If you are interested, you can try it in my project, where I ran into a problem: https://github.com/fhgaha/snow-car

fhgaha avatar May 14 '24 08:05 fhgaha

It appears to be caused by the debug_draw_3d addon in your project. I am not sure why.

ramokz avatar May 14 '24 09:05 ramokz

Huh! Interesting

fhgaha avatar May 14 '24 11:05 fhgaha

I see the same issue in my project - it appears that, somewhere, a CanvasLayer with a ViewfinderPanel control is being instanced and added as a child to the first node in the scene tree. I have to disable all of my Autoload scripts/scenes to see the intended effect (where the CanvasLayer becomes a child of the "Root" Node3D), otherwise it attaches itself to the first Autoload node in the tree. PhantomCameraViewfinderTreeBug

skison avatar May 21 '24 23:05 skison

Had another look at this. Don't think the issue is related to where the Viewfinder is instantiated / nested within the scene tree. Reason being that even when it's a child of the root node, it still has the issue:

image

My suspicion is that there is something within that Debug addon that is conflicting with the viewfinder overlay, but don't know what that would be. The white overlay is related to the SubViewport node within the ViewfinderPanel control group, as turning that off makes it go away, but the problem goes deeper than that.

Weirder still is that changing the dead zone width or height doesn't work during runtime, but once you remove the debug addon it does. So there are definitely some addon conflicts going on.

ramokz avatar May 29 '24 23:05 ramokz