Questions tagged [camera]
Game worlds are viewed from a camera, which is the viewpoint from which the game world is observed from.
1,149
questions
0
votes
3
answers
47
views
"There is no Camera attached to the Game Object" error
I moved my Visual Scripting from an embedded graph into a State Machine graph as a file.
Suddenly started getting this error...
MissingComponentException: there is no Camera attached to the gameobject ...
0
votes
0
answers
18
views
Virtual Camera with Collision
I am using a VirtualCamera2 Actor for recording sequences using iOS devices + Xbox Controller as input devices.
Everything works well except for collision. I tried to add it in many ways but it doesn'...
0
votes
0
answers
6
views
Calculate focal length and aperture for constant DOF
I am using a Unity camera with a DOF post-processing script attached. This allows me to set the depth of field by updating :
Distance to object
Aperture
Focal length
I would like to set a depth of ...
0
votes
0
answers
21
views
Need help Slerping position and rotation for a death cam
Issue
I have 2 scripts on my camera, one for following the player ( FollowTarget.cs ), and one which is supposed to, over time, Slerp the camera's transform position and rotation around the player on ...
2
votes
1
answer
172
views
How can I achieve a similar look to this "2.5d"-ish art style?
Recently I came across a game concept (New Game Plus @ Superflatgames) that used a very interesting "2.5d" art style where the world is in 3d and the characters & objects are in 2d (see ...
0
votes
1
answer
15
views
How to calculate camera view matrix from world transform, specifically the orientation?
In my engine, camera is just any other object in the scene. It has a transform -- position, rotation (quaternion), and scale (ignored for camera view matrix). I want to convert this to the camera's ...
0
votes
0
answers
15
views
Multiple cameras PostProcessing render in a different order on iOS and Android
I have a setup below:
Unity 2020.2.1f1
Post Processing Stack v2 (2.3.0), Color Grading with High Definition Range, Gamma Rendering
Cinemachine Camera+Brain PostProcess (Depth 0)
Cinemachine Camera+...
0
votes
0
answers
14
views
Can I get an Unreal CaptureComponent to output the pixel differences between the current capture and the previous?
My current set up in UE captures images through this conventional pipeline:
Capture component -> Post process material (specified in component options) -> Render Target
What I need is to be able ...
0
votes
0
answers
22
views
Keeping speeds of camera & mouse movements the same on drag in Unity
So, I am working with Unity's new input system and I have been able to set up movement on the camera so that the user drags the camera around with the middle mouse button. However, there is a parallax-...
0
votes
1
answer
32
views
Correct camera transformation for first person camera
I am making a camera in openGl and I am having troubles with first person camera. So I had a few versions of camera transformation and all of them had their own problems. So at first, I was doing ...
0
votes
0
answers
12
views
How to rotate a players movement axis as camera switches? (Not used to coding)
I am using unity and I have two cinemachine cameras with two seperate camera angles.
For one camera angle I want the players W key to move at a 45* slant while at the other I just want it to be ...
0
votes
1
answer
24
views
Find out (general) orientation of cube faces with rotated and translated camera
I have the following problem. I have a camera that is initially looking at a cube. The cube is with center at (0, 0, 0). The camera that is initially on (0, 0, 60). The camera can rotate and translate ...
0
votes
0
answers
25
views
How to use glLookAt() to rotate around an object orbit
I've been struggling with a school project in which I'm supposed to create a camera like the one in Blender. One of the steps I need to implement is to make the camera rotate around an object's orbit ...
1
vote
0
answers
16
views
Camera not rendering to rendertexture inside class
I have an issue where I created a class to generate a lightprobe atlas texture for me, but the camera don't seem to render properly into teh rendertexture, I have no idea why...
someone can help me ...
0
votes
1
answer
46
views
How to make camera smoothly follow behind player in Unity 3D?
Following the advice posted here, I made a camera that follows a player behind with:
...
0
votes
0
answers
35
views
Networking a custom camera follow script with Mirror?
So I've got a pretty fleshed out game developed where player balls just fly around and attempt to smash one another. It's good fun in theory, but the multiplayer mechanic has proven very difficult.
...
1
vote
1
answer
60
views
Vertex Displacement Shader Graph With The Camera Moving Issue
I have a foliage sway shader, that works well.
But when the camera moves the vertex displacement stops:
And the weird thing also is that if I move the camera to the right nothing seems to happen, ...
0
votes
0
answers
47
views
Rotate the Camera with the Character on Dynamic Gravity UE4
I’m trying to create a world which is not a flat plane on the X and Y axis, and so it will have dynamic gravity. I have been capable of rotating the Character around a Sphere (for testing) by creating ...
0
votes
0
answers
28
views
Isometric Camera Angle Changed When Running On Phone
I want to make an isometric camera for my game, I did it by parenting the camera to an empty object, then adjusting the rotation. It works perfectly in Unity, where the game view shows exactly what I ...
1
vote
1
answer
24
views
change camera angle in unity2d
I am creating a 2d top-down game in Unity where you can press a button and the camera will cycle into different angles, mainly forward, backward, left & right. I have gotten the cycle to work by ...
0
votes
0
answers
34
views
Moving Camera with script
Hey all I am trying to make a scene where the player is experiencing a plane crash however when I try and move the camera with transform. Translate the camera is not moving. The plane moves along as ...
0
votes
0
answers
20
views
Fitting to camera (perspective) an arbitrary 3D model import
Is there a general method for resizing an arbitrary 3D model imported at runtime to fit the camera boundaries (i.e. fill 80% or so) ?
For example, some 3D scanned models often do not have the model ...
1
vote
0
answers
52
views
How do I make a mask that dictates which layers are visible in Unity?
I'm trying to create an effect where the player progresses from one level to the next by a portal appearing as a rip in the fabric of time, and the portal grows until it'd half the screen, then ...
0
votes
0
answers
60
views
Cinemachine Free Look Camera control with joystick for mobile devices
I am a beginner in Unity and I am using Unity 3D Game Kit assets. I want to control Unity 3D Game Kit Cinemachine Free Look Camera with joystick for a mobile game. I am using Unity Input Manager.
2
votes
1
answer
63
views
How do I view the test going on in Unity Playmode?
I'm working on a new project using TDD, and I'm doing a good job of checking everything from the ground up including checking physics interactions on instantiated prefab, but I've gotten about to the ...
0
votes
1
answer
59
views
Need help with locking the Y axis on camera
I am working on a small 2D platformer in Unity for my school project and I would like to lock my camera on Y axis (so it can move horizontally, but when the character jumps it doesn't follow the jump)....
0
votes
0
answers
74
views
Unity Pixel Perfect Camera - parented sprite's children begin to jitter
I currently have a setup using the pixel perfect camera, and found that child sprites moving their localposition begin to jitter if their position is in a decimal point over the hundredths.
Designing ...
0
votes
0
answers
49
views
Cinemachine lock on
I'm using Cinemachine for a free look 3rd person camera and a virtual camera for a lock on cam.
I already have switched Cinemachine brains and movement types done, but I need the player to face the ...
0
votes
0
answers
31
views
How to place my camera to fit a 3D GameObject?
In Unity Editor, when I select a game object and press 'F', the camera will focus on it without rotation and this game object is filled in the view.
I would like to know how the the camera position is ...
0
votes
2
answers
139
views
Smooth rotation to target with separate yaw, pitch and roll smooth times
I'm trying to write a camera script in Unity that would smoothly rotate the camera over time towards the desired rotation, with separate input parameters for yaw, pitch and roll smoothing, and I can't ...
0
votes
1
answer
35
views
LWJGL2 Camera Movement Stutter
I'm having quite some trouble with camera stutter in my LWJGL2 game. The stutter only occurs when moving the camera. When it stands still, the scene is rendered smoothly. I could verify that by ...
0
votes
0
answers
7
views
Why While using Aiming multiple targets by Virtual Camera Dolly and Zoom effect behaving strange? ( Unity )
I am tracking two cubes and I want the camera to always keep them in the frame, as far as they are from each other.
For these purposes I use Group Composer Mode in Aiming settings on Virtual Camera.
...
0
votes
1
answer
17
views
Unity split camera without refit the center
Before attempting to mark this question as duplicate or send me here, hear me out:
I was trying to make a coincidence rangefinder effect, say I have a view like this:
In a coincidence rangefinder, it ...
0
votes
1
answer
50
views
How do I change from virtual camera (e.g dolly track) to main camera?
I want to show a cinematic view of my scene and then be able to play it with the camera attached to my player.
I have set up a dolly track and virtual camera and all works fine but I can't then play ...
0
votes
0
answers
49
views
Unity Mock HMD not rendering with ARCore installed
I am trying to create a mobile vr game with ARCore in Unity for positional tracking, and I can't get the Mock HMD to render. I tried the Cardboard SDK but it didn't work so I am trying to use Mock HMD....
0
votes
0
answers
10
views
Camera with controls in Unity with C# [duplicate]
So I have been making a camera in Unity for my first-person game. Currently, I have gotten the camera to be able to look around, but the camera has two issues. The first, and more pressing, matter is ...
0
votes
1
answer
52
views
How do I track 2 lights in real time with a camera and send it to a phone in Unity?
I am trying to track 2 lights and send that data to Unity for VR controller tracking. How do I get started? Do I make an app that communicates with Wifi or something? And how do I detect the lights? ...
2
votes
1
answer
573
views
Spritesheet with unstable width
I'm working on my 2d game engine using HTML5 and Canvas. I have a sprite sheet, and each frame of this sprite sheet has its own size.
Considering that the Viewport is following this sprite sheet (in ...
0
votes
0
answers
50
views
Arcball camera panning - how to apply mouse coordinates to position regardless of orientation
I have an Arcball camera with panning and rotation working properly; however, panning does not work as intended after rotation is happening. Here are my panning and rotation functions:
...
1
vote
1
answer
65
views
How to rotate a 3D object based on stick Input and the normal of the ground's surface? (Unity3D)
I am making a game where I want to view an object from any angle and use an analog stick to rotate it according to this input and the surface the object is currently resting on. Here's a visualization ...
2
votes
1
answer
85
views
What kind of math is used by this camera panning script?
I'm not fluent in English so I apologize in advance. I have found a source code in order to pan camera by touch - here it is:
...
0
votes
0
answers
41
views
How to make a multiplayer game for multiple screen sizes?
I am making a 2d multiplayer game for Android, targeted to run on every device.
How do I calculate the common position of an asset, independent of screen size?
What size map should I assume is a ...
0
votes
0
answers
119
views
2D Top Down Follow Camera Stuttering
I am making a top down pixel art game and am using a simple follow script for my camera.
...
0
votes
0
answers
77
views
How to make a camera zoom effect in SDL2?
I'm trying to make an pseudo-camera in my SDL2 game. The WASD input movement is already working fine (it's a camera that points aims on the center of the target), but i'm struggling on making an zoom ...
0
votes
0
answers
20
views
Reflection probe "extra camera" glitch
I have a problem, where enabling a reflection probe, renders a camera image in a screen corner. The reflection works fine but I don't know how to disable the little camera image.
If I disable the ...
0
votes
0
answers
19
views
Orthographic camera clip the model when Panned with mouse
I am dragging the camera (point Of View) of scene. I am using orthographic projection
Problem I am facing is suppose the camera is not rotated then I can drag the camera and it is working fine , But ...
0
votes
1
answer
177
views
How to prevent blurry pixel art when the camera is following a character?
I'm developing a top-down pixel-art game and previously I was having the camera follow the player like this in the camera's update function (called every frame):
...
0
votes
1
answer
29
views
Unity Camera resets rotation instead of using existing values
I'm working on a generic camera rig using mouse inputs, kind of like an RTS camera but it will be used to look at models with as a sort of turntable viewer.
The issue I am having is that when I rotate ...
0
votes
3
answers
244
views
How do I keep the camera behind the player?
I am developing a Third Person Shooter.
Until now, I had parented the camera to player. It would therefore automatically stay behind the player.
Because this would not work well with Root Motion, I ...
0
votes
0
answers
48
views
How do I replicate this camera effect?
I am trying to re-construct the camera logic of RE4 that is applied when the player aims a gun.
I have attached a hack to RE4 which enables the user to change the camera's FOV.
Because of that I ...