Skip to main content

Questions tagged [camera]

Game worlds are viewed from a camera, which is the viewpoint from which the game world is observed from.

0 votes
0 answers
118 views

Why does this code behave strangely with different camera angles?

Relevant to this issue are two MonoBehaviour scripts: Actor and Player. ...
Bunabyte's user avatar
  • 331
0 votes
2 answers
121 views

Camera Snapping instead of panning

I am trying to make a camera system for a 2D platformer, with three camera modes to begin with: Follow, normally following the player Horizontal: Y is set, X follows player Static: Locked to a certain ...
CheckerT's user avatar
  • 176
0 votes
1 answer
151 views

Is the "View transform" just a change of basis matrix + a translation applied to each point? (to bring them into camera space)

I am learning about the graphics pipeline. My understanding of the view transformation is that you: First create a normalized, separate coordinate system for the camera, based on its position and ...
Jared Kosiba's user avatar
1 vote
1 answer
622 views

Why don't more top-down 3D games use an oblique projection, instead of tilting their models and sprites?

I'm making a 2D game in Unity that is set-up in 3D similarly to Enter the Gungeon, where I have an orthographic camera rotated 45 degrees. This makes sprites look wrong and I've seen two main ways to ...
Volcanis's user avatar
0 votes
1 answer
76 views

Computing camera attitude so points along/follows spline

Assuming I have a spline that I want a camera to follow, is there a simple way to compute the orientation of the camera such that its optical center aligns with the vector defining the derivative of ...
maxical's user avatar
  • 101
0 votes
0 answers
117 views

Camera Shake Issue in UE5

I'm experiencing unexpected camera behavior while implementing a camera shake effect in my first-person project. After adding the camera shake, the camera is not behaving correctly (the camera is not ...
Михаил Байраков's user avatar
0 votes
2 answers
96 views

Position camera to 'head' joint's position in skeletal animation

Finished this great tutorial on skeletal animation: https://learnopengl.com/Guest-Articles/2020/Skeletal-Animation All works as expected, no issues! Here is what matrixes I use to achieve skeletal ...
Avi's user avatar
  • 188
0 votes
0 answers
54 views

Unknown light source in viewport when camera projection is orthogonal

I'm using Godot/Redot for my game development but so far this happens when camera projection is orthogonal, there's unknown light following the viewport when the camera is moving. Here's the example ...
KZulfazriawan's user avatar
2 votes
1 answer
171 views

How can I use multiple monitors in Unity?

I am trying to work with two monitors; I want to have two cameras in my scene, such that each camera projects to a different monitor. I tried to follow this guide, which says that I have to change the ...
Erel Segal-Halevi's user avatar
0 votes
0 answers
37 views

Adjusting Minimap Camera Viewport Indicator to Account for Occlusion of Camera by UI

I am working on a 2D RTS game in Unity. One thing I want to represent is a minimap indicator that shows the camera's viewport. I got it working, but it doesn't reflect how the camera is occluded by ...
Evan Smith's user avatar
0 votes
1 answer
289 views

How to blend camera when switching between 2 characters?

I'm trying to set up a system in UE4.27 where I can switch between 2 characters. It works but when I tried to include a camera blend, it still switches character but the camera just jumps and doesn't ...
Kevin Nisbet's user avatar
0 votes
1 answer
85 views

Coins Not Moving to Canvas Position When Camera Moves

I am currently developing a 2D game in Unity, and I'm having an issue with moving coins to a specific position in the UI Canvas when they are spawned. I want the coins to animate from their spawn ...
Javier Triviño's user avatar
1 vote
3 answers
331 views

How to implement a 2D toroidal map?

I want to implement a toroidal world (all edges "wrap", the map repeats infinitely across its edges). My world is basically a 2D rectangle (it's a 2D game) divided into a grid. The part I'm ...
Ezequiel Kees's user avatar
0 votes
1 answer
91 views

Problem with 2D projection

I have a green circle: Inside the circle, the white frame moves to wherever P, the projection of the targets 3D position into a 2D point, is. However, outside the circle, the frame will move to the ...
KING MOOSE's user avatar
0 votes
0 answers
88 views

Why distant objects are becoming white when camera is still?

I have a shader attached to quads that I'm generating far away using script. The quad is capable of keeping the color when camera is moving however the color becomes white when camera is still. I can'...
Shromi's user avatar
  • 115

15 30 50 per page
1
2 3 4 5
82