Questions tagged [camera]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
9 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
0answers
22 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
0answers
13 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
0answers
16 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
2answers
64 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
1answer
25 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
0answers
5 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
1answer
13 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
1answer
25 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
0answers
29 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
0answers
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
2answers
42 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? ...
0
votes
0answers
33 views

How would I determine the size / camera bounds of a staggered isometric map?

I am currently making an isometric 2D game, and the map grid is of the staggered-isometric type. I want to attempt to create the camera so that it stops at the end of the map bounds. Now I am fully ...
2
votes
1answer
554 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
0answers
44 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
1answer
32 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
1answer
80 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
0answers
33 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
0answers
36 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
0answers
40 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
0answers
18 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
0answers
16 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
1answer
135 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
1answer
24 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
3answers
87 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
0answers
46 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 ...
1
vote
0answers
34 views

How to get world coordinates from a 4X4 camera matrix

I have Intel T265 camera which has a camera coordinates system like following diagram: The camera system has two cameras and the center of the two cameras is the position of the camera system. The ...
0
votes
1answer
30 views

Camera doesnt track player properly on different resolution

Hello i have 2d mobile game where camera follow players car, on my mobile phone with resolution 2960x1440 everything works fine but when i start the game on tablet with resolution 2160x1620 the camera ...
0
votes
0answers
28 views

Unity Light Bug

I saw this while testing my game. I have a light situated behind the Main Camera. All is working perfect, until I get a Game Over, and changes to the Game Over scene. From then, all lights have no ...
1
vote
1answer
161 views

Creating a custom camera in Godot

Allow me to start with what I'm trying to achieve - there might be an easier way to do this and I'm just overcomplicating things. I'm trying to implement a camera, that will be able to rotate around a ...
0
votes
0answers
35 views

Rotating around pivot so target is 25% away from top of screen

I have a camera which rotates around a pivot (green dot) that is always a constant X units away from that pivot. I want to find the pitch to rotate around that green dot so that the target (red square)...
2
votes
1answer
282 views

Drawing OpenGL camera frustum

I am trying to display camera frustum in my OpenGL application. I calculate the vertices of the frustum pyramid using reverse projection from screen space to world space. The camera uses perspective ...
0
votes
1answer
135 views

Why are clipping planes... plane?

A frustum is used to clip geometry, deciding which parts of it are visible. It seems that most cameras use a frustum shaped as a pyramid segment, i.e. a box between two rects of equal alignment on ...
0
votes
0answers
26 views

How to add level-by-level game camera following in 2D java game?

I've been working on my first game recently, and I've built a player tracking camera that works great, but my goal for the game would be to have a camera that is fixed for each area that the player ...
0
votes
1answer
72 views

How do I make 2D Camera Matrix with zoom?

I trying to understand how to make a 2D Camera Matrix. The problem now is when I zoom the world shifts horizontally. The Camera need to zoom on the current Position. ...
0
votes
0answers
10 views

How to dynamically create unique layerMasks and assign it to the player

My goal here is that each player that joins the game will get a unique layer for their player, that way I can set the first person camera's culling mask to only exclude their own body from rendering, ...
0
votes
1answer
36 views

Having issues with 3rd-person Camera Raycasting / Local<->World Space / Clipping

I would like my camera to inherit the player in the hierarchy, and get closer when there is a wall or floor between the player and the camera. Right now I am trying to raycast from the player to the ...
0
votes
0answers
17 views

How to ensure that a randomly-generated velocity vector moves the camera forward within a valid arc?

I spawn a camera in a scene using random coordinates for x and y and setting z=0 and orient ...
0
votes
0answers
33 views

limit orthogonal camera movement to the positive axis(x,z)

What I'm trying to achieve is limiting the orthogonal camera movement to the positive axis(x,z) , so the camera clamp/stop moving to the negative axis. The problem is I can' find any property or ...
0
votes
0answers
41 views

position locking and smooth lerping side scroller camera follows the player with jittering delay

I've seen this question: How to smoothly move camera when the player is climbing a diagonal staircase in 2D tile-based side-scroller? And here's my code: ...
-1
votes
1answer
103 views

How to enable anti-aliasing when camera zoom in libgdx

I develop a game where I draw some textures on the screen and want to zoom in and out the scene. I am using OrthographicCamera and when I zoom in, the textures ...
2
votes
1answer
255 views

Godot label Attached to 3D object gets larger when moving away from the object

I have a scene that consists of a CSGBox and a Label as a child of it. In the script for the ...
1
vote
2answers
39 views

Orthogonal Camera Clip/Hide part of 3D model

How to prevent the Camera from Clipping/Hiding part of the 3D Model/Object? I tried playing around with ...
2
votes
1answer
102 views

How to make a custom 3d view cone that mixes orthographic and perspective cameras

I'm trying to make a camera that displays objects the same height no matter the distance, but still changes width relative to distance. Similar to having an orthographic view vertically and a ...
0
votes
0answers
51 views

LibGDX getting model roll

I'm working on a 3d game in LibGDX, got help on here with my model rotation. Worked great. But now I'm dealing with the model's roll, and it's not behaving as expected. It's controlled by: ...
0
votes
0answers
46 views

Calculating size and position of Tilemap for camera bounds

I'm new to Unity and I'm following a series of tutorials covering off building a 2D Zelda-like game. I'm at a stage where I have two Tilemaps side by side and I'm working on a transition between them, ...
0
votes
1answer
65 views

LibGDX setToRotation canceling out position

I'm working on a 3d project in Libgdx. I've got a camera flying around in 3d space, being controlled with touch. Works great, moves forward and backward, strafes, full 360 look around with no gimbal ...
1
vote
0answers
30 views

About the cameras in the original Metal Gear Solid for PSX [closed]

Since I first played MGS on the PSX I have been wondering about this. To my understanding, MGS loads the geometry of the 'room' where you are and lets you move through it by using semi-fixed cameras ...
1
vote
1answer
82 views

how to center 3d camera vertically and horizontally

How to center the player/camera in the middle of the window/screen , to mimic a 2.5d camera, ...
0
votes
0answers
18 views

Show Camera Inside Object Bounds

I'm making a mobile game, and I want have secondary camera that shows another part of the scene within a box. I'm able to do this easily enough by setting the camera's viewport settings, but the issue ...

1
2 3 4 5
23