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
1answer
17 views

How to get the correct Input direction based on the camera angle to use in a rootmotion based third person controller

I move my character based on the rootmotion of their animation using a blend tree that uses 2D Freeform Cartesian input (Vertical, Horizontal) if Vertical = 1, the character moves forward based on the ...
1
vote
1answer
30 views

Player Camera Shaking when Running Into Wall in Unity

I've been working on a 2D RPG game in Unity, and for some reason, whenever my character runs into a wall, the camera begins to shake violently. I have a RigidBody2D and a BoxCollider2D connected to ...
0
votes
0answers
28 views

How do I make the 3rd person camera follow the space ship in my Space Shooter game?

https://youtu.be/13HgaeZWlIA I am making a 3D space shooter game using OpenGL and Bullet Physics. I am having a hard time with the 3rd person Camera though. If you take a look at the video above you ...
0
votes
0answers
11 views

Cinemachine third person camera movement causes misalignment

I'm working on third person movement using CinemachineFreeLook as the player camera. At first I thought it was working fine but I've noticed that moving left/right actually moves the character with a ...
0
votes
0answers
10 views

how to make my camera follow script work for Photon Pun2

I´m currently working on the Multiplayer part for a 2D top-down game. I´m using Photon Pun2, to do this. My problem is, that always just the last player, who joined the game get´s my camera follow ...
0
votes
1answer
16 views

Unity - Camera Moving Vertical

So I want to make a smooth transition with the camera from point A to point B while keeping direction and rotation. My current approach is using Vector3.Lerp : ...
1
vote
0answers
36 views

Follow camera for car object

I have a car object in my game that has a car location like any other object. It is able to steer with bicycle KInematics and even rotates while it drives from a car heading vector. Now I need the ...
0
votes
0answers
25 views

How to make script awake again after sleep?

I disabled gamecontroller for 15.9 seconds and controller not awake again.It's for cutscene cam before the race start. ...
0
votes
0answers
51 views

Cutscene Scripting for CameraController

I have a CameraController script which follows a GameController if it's present in the scene. How can I add cutscene animator to ...
0
votes
0answers
9 views

Something orbital rotation is happening when I added player movement

I think this is happenning because of my player movements which is this: ...
0
votes
0answers
25 views

camera relative movement with GL.Translate

I'm using the OpenTK library, an OpenGL library, for C#. I'm trying to do camera-relative movement and though I'd use GL.Translate for moving and ...
1
vote
0answers
21 views

Parallax camera is not independent from the stage camera

I have a weird camera problem that I can't solve! I add my actors to the main stage and use its camera too. Actors are constrained within the screen viewport. I also have a second camera that I use ...
0
votes
1answer
24 views

How do I set horizonal Field of View by code as in Inspector?

I have a camera that I have set to ...
0
votes
1answer
33 views

Add Camera Dynamically?

I have a "A1" scene, and from there, I want to create a new scene "A2" on button click and then I want to load the same scene. Creating a scene can be done with, ...
0
votes
0answers
14 views

Some meshes are visible in game view while others are not

I have a FPS character in unity. The FPS character is divided into a few different pieces (upper arm, lower arm, hand, fingers, etc). I exported it from blender, so I'm using the camera that got ...
0
votes
0answers
35 views

How to correct mouse position to world position in xna/monogame

I'm making a small game where the player shoots projectiles by clicking the mouse. Everything worked fine before adding in a camera. Now the position of the new projectiles is always off. shoot code:...
0
votes
1answer
12 views

Text mesh not visible on a container

I have probably dumb problem with a text-mesh game object. I want to use it as a title on a top of container. I will give you all information that you need to find a problem. I'm using pixel font <...
0
votes
1answer
65 views

Camera animation stutters on first launch

The camera stutter for a fraction of a second when animating a camera from one position to another position. This issue only happens when the game is launched for the first time after installation. ...
1
vote
1answer
43 views

Unity3D: Convert all game objects to same size irrespective of it's scale

Suppose I have a reference GameObject, Cube, with scale (1,1,1). There is another GameObject with scale (1,1,1), but the size is 3 times bigger than the Cube. How do I dynamically change the scale of ...
0
votes
0answers
23 views

X axis not moving right or left

I've made a script that should have an x and a y axis, it goes up and down but not left or right; what am I doing wrong? ...
0
votes
0answers
10 views

Panel gets transparent when accessing the offsetMin of RectTransform

I need to place 3 panels side by side in my application. It was working fine with Render mode Screen space - Overlay. Now due to some other requirement, I had to ...
0
votes
0answers
19 views

How to draw chunks of a map within view of camera

I want to draw chunks of a map in the screen when it's visible by the camera. I can draw a single chunk using: map(celx, cely, screenx, screeny, 16, 16) This draws ...
0
votes
0answers
25 views

First-person camera script for space game jitters when rotating diagonally

I am working on a first-person shooter that is set in space. Since its set in space, the characters must be able to rotate in 2 directions at once. Currently, I am using 2 transform.rotates which ...
0
votes
1answer
41 views

Can't set the correct camera to current

There are three cameras in my scene - Camera1, Camera2, Camera3. I want to have Camera1 as the only current camera. But whenever I remove the "current" tick from Camera2, Camera3 becomes ...
0
votes
1answer
54 views

How camera works in 2d platformer in level transitions

I want to know how Camera works in game of Celeste. Currently what I have is, camera follows the player using interpolation: ...
0
votes
0answers
21 views

Tracking player on “overview map”

I'm working on a city-based isometric game where the player controls a character moving around in the city. I need to create both an overview map and a minimap similar to both GTA and Mafia 3. Here's ...
0
votes
0answers
23 views

Why does this order of Quaternion multiplication not introduce roll into my fps-style character controller?

I'm working on an OpenGL based project (in C#), employing Quaternions to rotate my camera I first tried to: ...
0
votes
0answers
86 views

How to make a moving camera in 2d with p5.js

I am trying to make a hill climb racing clone. My code: https://editor.p5js.org/saathvik/sketches/-XOFPcukt When I move the car, I want the camera to follow the player, so he can't go off screen.
1
vote
0answers
20 views

Smoothly resize minimap camera rect width and height

I have an orthographic camera that is working as a mini-map. Now I want to make it resizeable using mouse drag. I have applied some UI beside my minimap camera rect and those UI resizing perfectly ...
0
votes
0answers
19 views

How to fix edge scrolling on a 2d scrolling camera?

Afternoon all, I just cannot get this to work properly and I'd really appreciate any help. I have a camera that follows the player around a 2d tile based map. However, I want the camera to move only ...
1
vote
2answers
40 views

More natural camera movement

I have a camera that currently smoothly (ease in and out) linearly interpolates between two positions. The camera also moves in response to user input. While this movement is nice and smooth it does ...
0
votes
0answers
30 views

Unity virtual joystick - jarring movement

I'm creating an infinite flyer game in which you control the plane using a mobile joystick. There are two controls one to rotate the plane and the other to move the plane. While rotating the plane ...
0
votes
1answer
22 views

Orthographic Camera Movement inside Rotated Boundary Rectangle Weird Behaviour [Unity3d]

Basically I have an orthographic camera that is looking at a simple square. The camera is sitting above the square and tilted by x: 45° and y: 45°, so the camera sees the square as a rhombus / diamond ...
2
votes
2answers
122 views

How can I display a 3d object and my player on a canvas?

The main goal is to animate my player with animator on a canvas. The problem is that any 3d object (my player, a cube) I drag over the canvas is transparent/not seen. The main camera is set to Clear ...
0
votes
1answer
270 views

Unity Cinemachine+URP : 2D pixelPerfect zoom issue?

There are many PixelPerfect component that exists and it confuses me. The CM PixelPerfect component doesn't work in my 2D Tilebased game. So I use the Camera component named "Pixel Perfect ...
0
votes
0answers
120 views

Unity custom camera projection only working in scene editor

I've found this article on Gamasutra on a custom camera projection to make 3D look more 2D and decided to implement it to make some gameplay tests. I had to make some changes to make it work on URP(on ...
0
votes
2answers
199 views

Rotating camera in 3D without yawing diagonally

I'm programming a C raytracer. I'm having trouble getting the camera to rotate the way I intend. I would like the camera to rotate by pressing keys: F & H rotate left & right around the world'...
0
votes
1answer
61 views

How do I zoom in and out in a fully tiled based game

I am currently developing a tile based game in Java and trying to add the option of zooming. I do the zoom by reducing and enlarging the tiles, but the problem is that it creates spaces between the ...
0
votes
0answers
8 views

Unity Applying Global Light Settings fog to a non-main camera

Is it possible to apply fog to a non-main camera?
0
votes
0answers
26 views

How to purposely overscan a Unity Camera?

For many shader effects that use the scene color, we want this color to be displaced along the object plane. Think water, glass, heat distortion, etc. However, of course, if this happens near the ...
0
votes
2answers
68 views

How do I stop my player or camera from jittering during player movement?

In my game, I have a third person character. The player moves with a rigidbody and has isKinematic set off with interpolate on. In the script, it moves with ...
0
votes
0answers
10 views

World Canvas InputField cursor precision/control from RenderTexture output in Overlay UI

How do you have a world canvas input field cursor be controllable from the input being mapped from a UI overlay with its raw image supplied from render texture from a render camera? Described another ...
2
votes
1answer
73 views

What is the term for making an object transparent when it blocks the player's view?

In many games if your camera gets too close to certain objects, or the object starts to block your screen, the game turns it transparent so you can still see. What is the name for this effect? It is ...
0
votes
0answers
28 views

Unreal Engine custom camera

I was looking at game engines and found Unreal Engine. I want to make a game where the player has to create a camera by crafting it and can customize how many pixels the camera detects and what the ...
2
votes
1answer
380 views

Linear interpolation: reach moving destination regardless its speed

I'm implementing a camera for a game and I'm using the LERP formula for smooth chasing. However, if the target moves fast enough, the camera can never reach it unless the ...
0
votes
0answers
20 views

player goes off screen as the camera smooth follow interpolation

Sometimes player goes off screen as the camera lags behind it, especially when the player is falling. Also when the player is climbing walls by jumping left and right, the camera moves left and right, ...
1
vote
0answers
26 views

How to show part of the world scaled to screen size?

I have a world size of 100x100 I want to map this world size to screen size using this mapTo function ...
0
votes
1answer
29 views

How can I reset the mouse axes when respawning a player?

I am making a simple parkour game in which the camera will follow the mouse based on the mouse input axis * the sensitivity. This works great, but when I want to reset my character to the start I cant ...
1
vote
0answers
66 views

My arcball camera does a roll when it shouldnt be

I am trying to build an arcball camera and it's mostly working, the problem is that as you rotate around the object you have selected (orbit_target_pos in the code),...
0
votes
1answer
99 views

Unity - Smooth player input direction when changing camera

Preface- I'm very new to Unity. I'm working on an exercise using fixed cameras like how they work in the PSX final fantasy games. I have the camera scripts working fine but it's an aspect of the ...

1
2 3 4 5
22