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
1
vote
2answers
45 views

Free movement in a 3D isometric world

I'm currently experimenting with movement in a isometric perspective world and i'm thinking about how the movement should work. The movement can be either by WASD or gamepad. Since the player can ...
0
votes
0answers
6 views

Retain Position and Scale Values of Render Texture Canvas Elements to another Canvas

Now the title might not be able to express the entirety of the question but here's my problem. In my main scene I have a camera and a canvas in overlay mode, let's call this "View A". In ...
0
votes
1answer
18 views

How does time-dependent camera rotation with a mouse work?

The commonly used equation for camera rotation with a mouse does not involve time. This make sense since higher frame rates have smaller changes in mouse position and vise-versa so it all evens out. ...
0
votes
0answers
35 views

Masking cameras for Voronoi splitscreen

I would like to mask a camera to only render to a certain (non-square) region of the screen, to be used as an overlay, for splitscreen, or any other application. The goal is obviously to prevent any ...
0
votes
0answers
11 views

SpriteKit prevent camera going out of bounds

I've been working on a Mario Bros clone for the first level, trying to learn how to make games with SpriteKit I'm trying to use an ...
3
votes
1answer
57 views

Is it possible to record video, depth map and 6D pose of any games?

I'm not a game developer, but a researcher working on improving video quality in various contexts. For my current problem, I need to collect videos which have both RGB data as well as depth data. ...
0
votes
0answers
19 views

Handling real projectiles with different FOVs on a first person shooter camera stack

I'm prototyping out a First Person Shooter and I'll admit I have little work experience in the genre (though I've played many of them). I'm using a traditional weapon camera stack in which the main ...
1
vote
1answer
44 views

How can I hide the camera gizmo in Unity?

How can I hide the camera gizmo in Unity? As said here I tried to use the gismos menu in the top of my Scene view. But it does not work. Why? Also, I tried saving my scene and project after the gizmo ...
1
vote
1answer
56 views

How to convert screen space to world space?

I have a shader that should do raymarching. But I have problems converting the fragment's position to a worldspace coordinate. This is my vertex shader: ...
0
votes
1answer
38 views

What is the proper way to create a camera matrix?

I am having issues when trying to create a camera transform. It seems to have odd distortions and it does not seem to rotate properly, though it will translate alright. While I have seen issues like ...
0
votes
0answers
39 views

Render texture seems to ignore camera background type (Unity - URP)

I'm currently trying to pull a fog of war for an rts game, and planned it like this. (Unity 2020.2.7, URP 10.3.1) Use units field of view to generate a texture of what is seen (alpha 0). Create other ...
0
votes
1answer
52 views

Lerp performance for camera movement

In my current script responsible for camera movement, I use Mathf.Lerp to smoothly move the camera to the desired position (with WASD movement, panning with MMB, ...
0
votes
1answer
35 views

Correct way to set up camera buffer [DirectX]

I would like to play with two different implementation of particle system in my project (ok, actually not mine, but I am working on it). I copied the particle system successfully, however, faced the ...
0
votes
1answer
48 views

Press and hold camera movement with mouse in new Input System?

I am transitioning to the new movement system and am having trouble figuring out how to move the camera when a mouse button is pressed and held. Here's how I did it before: ...
0
votes
1answer
34 views

How to apply Time.timeScale only to certain scripts?

I have a need to pause my game and the simplest and most clean way that I know of (other than completely designing my own time system) is by using ...
0
votes
0answers
15 views

LibGDX TiledMap Rendering

For the life of me I cannot figure out why these lines keep appearing on my rendered tiled map. Every time I resize my libgdx window, the tiled map creates lines all across the screen. I have adjusted ...
0
votes
0answers
18 views

Terrain does not show up in distance in play mode, but does in editor

I'm trying to make a big landscape with high mountains but the terrain doesn't show in the distance in play mode. Which settings should I change, or what can I do? My terrain is divided in many pieces ...
0
votes
0answers
10 views

Camera field of view for far objects

Dears, I am building a flight simulator game with third person camera. I facing a problem that when I go high with the plane, objects, land and farms didn't look very far. I tried to change the field ...
0
votes
2answers
33 views

Main Camera re-sizing in 2d

My UI : An UI from YouTube video : Look my camera's size is 10 and his camera's size is only 5. But, my camera's width is larger than height. If you look at scale (x,y,z)=(1,1,1). I tried to change ...
0
votes
0answers
15 views

Rotate an object's scale according camera Y rotation?

I have a circle-shaped object to which I want to apply a scale of 2, 1, 1. Then I would like to rotate this scale according to camera's Y axis. Let me explain with ...
0
votes
0answers
13 views

Rendertexture skips channels sometimes

When rendering a camera to a render texture (for a portal effect), it seems to under certain circumstances skip rendering the red channel entirely. I cannot put my finger on why this might be ...
0
votes
0answers
13 views

Unity Lerping & Following Camera is too slow

I'm using this script to follow a game object in 2D : ...
0
votes
0answers
22 views

stop the camera clipping objects

I'm using RTS_camera as it is the player in my scene, how can I stop the camera clipping into buildings?
0
votes
1answer
96 views

How to move a player (with camera) towards a target object until camera fill target object?

I'm trying to solve this 'algorithm' problem. I have a player and a camera on it. I want to automatically move this player towards a target object and stop it when target object completely "fit&...
2
votes
2answers
73 views

How to smoothly interpolate 2D camera with pan and zoom

I'm developing an animation application with 2D virtual camera. The camera viewport can be positioned and scaled in the keyframes and is then interpolated to render the final animation from the ...
0
votes
1answer
31 views

Cannot change main camera's inital position in Unity inspector

I modify the Unity Platformer Minigame and want the main camera to display less of the lower part of the view. The Y coordinate in the inspector of the main camera is always -0.2777786 and I cannot ...
0
votes
3answers
44 views

Rotate camera around offset to player position (third person shooter view)

I'm trying to rotate my camera 'next to' the player object so that the player is not in the way of the screen-centered reticle. What I am trying to achieve is something like the targetting system of ...
0
votes
1answer
19 views

Player not moving camera to the other side of the screen when hitting the screen edge

I'm working on a game where I want the player to appear on the other side of the screen when they get to the edge of the screen, essentially mimicking the background moving. When the player gets to ...
0
votes
1answer
31 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
42 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
42 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
15 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
23 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
17 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
38 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
27 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
10 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
28 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
28 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
36 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
43 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
19 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
78 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
72 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
25 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
13 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
22 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 ...

1
2 3 4 5
22