Comments (3)
My best guess is that it's because you have multiple Camera3D
nodes in your scene tree. Since the addon was designed to avoid precisely that, it only looks at the first Camera3D
instance. Not that it should necessarily be like that, given what the error also says about there being an option to have multiple hosts in the future. Suspect it might also be partially resolved in 7.1 with the introduction of PhantomCameraManager
singleton.
The simplest solution that I can think of right now would be to move the Camera3D
, with the PCamHost
, to the top of the scene tree so that is the one being read first.
from phantom-camera.
I am currently looking into using Phantom Camera for 3rd person following, and in the near future group following. I think your algorithms for that are more sophisticated than what I want to code myself. For other situations in the same scene I want the artistic freedom of the pure Godot Camera3D, especially DOF blurring.
I understand the general limitation of only having one PCamHost in the current version. I mainly opened the issue because of the seeming inconsistency between 2 algorithms that determine how many PCamHosts there are in the scene? Maybe there is an opportunity to consolidate this into one?
from phantom-camera.
Do think there's a way to support your setup, but think it'll be a bit of a pain to get it to detect it correctly with the way the addon is currently structured.
The changes coming with #126 should make that much easier to handle, as it will introduce a PhantomCameraManager
singleton, which contains a reference to the Host node. I am not too keen on doing a more complicated fix before that, as it will be effectively somewhat wasted work following that release.
Worth mentioning that the remaining Camera3D
property values and environment resources, such as support for DOF, will be added in #127 and #218. Should hopefully remove the need for having other Camera3D
in a scene.
from phantom-camera.
Related Issues (20)
- C# wrapper HOT 2
- PhantomCameraManager Singleton HOT 1
- Camera3DResource using wrong layers for Cull Mask? HOT 4
- Script assumes presence of a tween HOT 7
- Framed Follow viewfinder conflict with debug_draw_3d addon HOT 7
- Error when switching from a 3D scene with a PCamHost to one with only a PCam HOT 2
- Identifier "PhantomCamera2D" not declared in the current scope HOT 1
- Prevent PCam2D Limit from resetting if an invalid path is applied
- Cannot set "follow_mode" (from c#) HOT 1
- Allow nesting of cameras withinin Nodes HOT 4
- PhantomCameraHost cannot be added as a child for my Camera2D HOT 2
- Unable to update to newest version if PhantomCamera node exists in project HOT 7
- Bug that can cause a PhantomCamera3D set to _not_ tween on load to tween anyway (and suggested fix) HOT 1
- Refactor PhantomCamera and its host HOT 8
- PC Host error: "Nonexistent function 'get_global_transform' in base 'Nil'.` HOT 3
- While in Third Person mode the Offset and SpringArm don't update on editor HOT 9
- Godot 4.3 Beta 1 - 0.7.2 install spams console with errors about "PhantomCameraManager" not declared HOT 18
- _on_phantom_camera_2d_tween_completed': Method not found. HOT 1
- Tweening of FOV/Near/Far properties ends on incorrect values HOT 2
- Errors upon installation into fresh project HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from phantom-camera.