-
-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Camera Noise Effect #126
Comments
Hi there! The basis idea is to add properties like these in the phantom_camera_2d.gd (those should be put as general properties for all the cameras, but for now I tested this way)
And after that, in the physics_process of the phantom_camera_2D, I just put this code:
And that's all, it works very well. As I said, this is a very early implementation, just to check it works. Hope it helps. |
I have some suggestion, maybe we don't need to implement shaker like parameter to camera. The idea is we can use composition and add child nodes to camera, that can call Edit: |
The current WIP implementation doesn't apply any noise parameters to a |
Project Type
2D, 3D
Feature Description
At the minute, cameras, both 2D and 3D, are very linear when either idling or following/looking at a target.
The introduction of camera noise allows for more diversity of how the camera is being, virtually, held to add an optional degree of roughness to its current linearity. This will open up opportunities to apply a more dynamic behaviour to the camera that's not purely based on a specified target – be it subtle or drastic.
For example, it can allow for a persistent handheld camera-like effect or for situational effects to simulate an in-game earthquake, explosion, or other scene rumbling moments.
Use Cases
Can be useful for cases like:
Importance
Medium - the feature would unlock new possibilities, but it's not a showstopper
Usage
Often - a significant amount of projects can find this useful
(Optional) Proposed Solution
General goals
PhantomCamera
nodes – i.e. should be a resource typeHow to use it
Properties
Should be settable from the property inspector with the following parameters:
bool
) =false
float
) =1
float
) =1
bool
) = falsefloat
) =1
Methods
One-off
PhantomCamera
as needed for only certain amounts of time.Persistent
PhantomCamera
. Will automatically trigger itself once applied, with an optional parameter to not do so.PhantomCamera
.PhantomCamera
.Technical Notes
2D
Camera2D
Offset (Vector2) property to apply the noise, as noted in the official documentation.3D
Camera3D
H/V Offset
to simulate the offset.H/V Offset
property override from theCamera3D
resource property.The text was updated successfully, but these errors were encountered: