Questions tagged [camera]

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

199 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
6
votes
0answers
225 views

How to set the camera projectionmatrix so that it's 4 rays always exactly hit the corners of a defined plane?

I have a camera, and I have a plane. The plane has 4 corner points. I need to find out how to change the projection-matrix of the camera so that the projection-rays of the camera always hit the ...
5
votes
1answer
386 views

Need an option to send camera output as video or frames in Unity3d 2017

Tools I've used in Unity 5.x are breaking my 2017 scene... and I do not see a way to output video or frames from Cinemachine (although I am trying to understand all of its features). What is the best ...
5
votes
1answer
1k views

libGDX using Stage and Actor produces different camera angles on desktop and Android Phone

libGDX using Stage and Actor produces different camera angles on desktop and Android Phone. Here are pictures demonstrating the problem: http://brandonyuh.minus.com/mFpdTSgN17VUq On the desktop ...
4
votes
0answers
4k views

Arcball 3D camera

I have checked multiple threads before posting, but i havent been able to figure this one out. Ok so i have been following this tutorial, but im not using glm, ive been implementing everything up ...
3
votes
0answers
2k views

Unity LWRP alternatives for camera stacking

I am working on upgrading a project in unity from a 2018 version to the latest 2019. One of the mechanics of the game is an AR (augmented reality) system. Some of the UI elements appear in the 3D ...
3
votes
0answers
337 views

How to render texture into box2d objects from Tile Map? Libgdx

I have a problem, when i try to render textures. I read positions of gameObjects, for example coin and create box2d objects circle shape. I have wrote game logic and began make a graphic. But for some ...
3
votes
0answers
2k views

Run Unity standalone in Headless Mode whilst capturing screenshots

I need to create a unity project which runs in Headless mode (using the -batchmode command), but it must capture screenshots e.g. every one second and write them out to a file. I understand that in ...
3
votes
3answers
540 views

How to keep track of camera's rotation while it's being rotated?

I'm building a 2D game where the sole interaction of the player is rotating what they can see (this is currently the camera, though it could be the world) by plus or minus 60 degrees. My current ...
3
votes
0answers
87 views

Problem with rendering in my game when using a following camera

I've got an issue while rendering 2d images with my own simple 2D camera object. First my setup: a star initial position 0,0 a planet circles the star initial position 300, 300, moves at a radius of ...
3
votes
0answers
107 views

Directional, Smooth scaling

I am fairly new to game maker, and I am trying to create a directional smooth scaling camera. Think Civilization 5's camera, when you zoom the camera, it zooms in towards the mouse, keeping the in-...
3
votes
0answers
307 views

Adjust the Camera Viewport Rect in Unreal Engine

Am new to Unreal Engine. I want to adjust the Camera Viewport Rect so that the camera will render to half of the screen. This is achieved in Unity by changing the Camera Viewport Rect property. How ...
2
votes
1answer
75 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 ...
2
votes
2answers
53 views

Multiple cameras using a single skybox with same perspective

I am using the enviro package for weather and to have a moving sun in the background. I'm building an installation with 3 screens and I want to have the sun track across the screens. However what I ...
2
votes
0answers
99 views

Camera that follows a target with sub-pixel movement

As the title says, I have a character that moves at sub pixel movement (no, I can't change this, because this sub pixel movement happens when I normalize the vector during diagonal movements, ...
2
votes
0answers
892 views

How to achieve the top-down (oblique) projection of textures using an OrthographicCamera?

This question is related to (How to calculate the initial velocity of projectile motion by a given distance and angle from point A to B) question. Details In the below image is the graphical ...
2
votes
0answers
374 views

3D Zoom To Mouse Cursor accounting for Change in Camera Pitch

Overview: Simply put, I'm trying to make a zoom to cursor algorithm. This would normally be very simple, but the implementation of the camera is making it difficult. As the camera zooms in and out, ...
2
votes
0answers
114 views

How would I warp a mesh with code?

I recently asked a question about putting a camera at the head of a 3D human model here and it worked out rather well and whatnot, but there is still a problem that bothers me: How would I contort/...
2
votes
0answers
532 views

Camera - View matrix in Android + openGLES 2

I am trying to use the touch screen on the tablet to control my camera movements and generate the view matrix accordingly. I get the x and y coordinates of the screen and after doing some sanity ...
2
votes
0answers
1k views

AndEngine Making Chase Camera Follow Player

I am playing around with the AndEngine Race Game example. I am trying to make the camera follow the car as the player moves around. The Tile Map is larger than the player's screen but the camera ...
2
votes
1answer
385 views

How to fix my camera collision, C# XNA

I am having some weird issues with my camera. I am trying to make it so it is a first person camera, that when the user presses the W or Up key, it moves towards where the camera is looking. My issue ...
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 ...
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 ...
1
vote
0answers
21 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 ...
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 ...
1
vote
0answers
75 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),...
1
vote
0answers
27 views

Drawing a deferred decal when the camera clips its bounding geometry

I have a building grid effect that I decal onto my terrain using a cube that moves to follow the cursor. You can see if the camera gets too close to the cube, it gets clipped by the camera's near ...
1
vote
1answer
280 views

How to do in Godot 2D: game screen in one viewport and minimap in another. Different sprites on each

The second day I google the tutorials, but nothing comes of it. All tutorials link to splitscreen demo, but it is made under the second Godot and does not work in the third. The problem is this: I ...
1
vote
0answers
384 views

Handling zooming in for a spot-the-difference game in different screen resolutions

I am creating a 2D game for Android as a school project. The objective of the game is to find differences between the top image and the bottom image. I have 1 main camera, which views the entire ...
1
vote
0answers
46 views

Follow Camera to Two objects at different time

I am developing simple 2D game in unity. I am locked with the camera movement for last two days. I've camera script that is working as follows: Follow the player to X and Y direction If player stops ...
1
vote
0answers
26 views

Import blender camera with key frames to unity?

I am wondering if I can take a camera tracked camera from blender and import it into unity. Is there any way to do this? Please let me know! Thanks in advance.
1
vote
0answers
60 views

How can I apply my camera to all graphics objects?

Is there a way to have the camera be applied to all objects? Can you have the camera effect objects that where made with glVertex3f(); This is the fourth time I ...
1
vote
0answers
31 views

RTS camera acceleration

I have an RTS game with a camera that can be controlled by either edge-pan, gamepad analog stick or keyboard buttons (WASD). The speed and snappiness are good for the general case, but sometimes feels ...
1
vote
0answers
128 views

The Google Earth solution for panning in a 3D world

About a year ago I made a solution for panning and zooming in a 3D world (Three.js) using a formula provided by @DMGregory. Here is the post: How to panning camera on XZ axis with different angles ...
1
vote
1answer
583 views

How to draw the editor's camera position in play mode Unreal?

The blue camera that is drawn for the CameraComponent in the editor. My intended usage is that when playing a third person template, ejecting from the pawn and then selecting it, will show the Camera ...
1
vote
1answer
182 views

Camera that pivots in the direction that the player is moving

I'm trying to recreate Rocket League's freeform (non ball-locked) camera, which basically is a camera that follows the player but pivots to allows face the direction the player is moving in (not ...
1
vote
0answers
159 views

How to make only-head rotation in UE4?

I've made a character, attached a camera to it and setted input. But now i want only character's head to rotate with mouse, but not a whole character (player capsule rotates with Q and E keys). I ...
1
vote
0answers
381 views

How can I avoid jitter when working with a 2D movement system?

How can I avoid jitter in Unity? Let's suppose that I want to create a 2D movement system using a Rigidbody 2D(Dynamic), and I want make the camera follow the character (which is a pixel art sprite)....
1
vote
0answers
23 views

Fitting Gameobjects within camera view

I am trying to fit a grid of gameobject into the orthographic view but I have a problem whenever I change the amount of grids to display it would overlap the view. What cαn I do to fit a series of ...
1
vote
0answers
19 views

SceneNode transform and Eye and Center position

I am learning some inner workings of game engine development and have come across this confusion. To explain what I am trying to do, I want to start with an example: Let's say that I have an object (...
1
vote
0answers
236 views

Given the size of far and near plane, find other parameters of a frustum

I am trying to find the correct parameters for setting up my perspective camera. But I don't know the mathematics involved in that. Can somebody point me to the right direction? My near plane should ...
1
vote
0answers
46 views

Given N objects in my 3d world, how to set camera zoom to have all framed?

I have N objects and I've done a routine to get the overall objects : min_x, max_x min_y, max_y min_z, max_z and, i have an ...
1
vote
0answers
491 views

get position of GameObject on rendertexture from camera

I'm rendering the camera output to an rendertexture on a plane. This works fine. But I want to put GameObjects on the rendertexture on positions of world objects that are visible on the camera. <...
1
vote
0answers
773 views

Unreal: Y-Axis boundary on a Camera Bounding Box

I was wondering if I could get some help with modifying a Blueprint I'm currently using for a project in Unreal Engine. I am currently attempting to make a side-scrolling platformer game and I'm ...
1
vote
0answers
241 views

How to integrate android camera for LibGDX project? (deprecated material..)

I'm trying to use the Android camera in LibGDX. I tried using this implementation of the API, which is basically the only you will find on Google. https://github.com/libgdx/libgdx/wiki/Integrating-...
1
vote
0answers
341 views

remove sudden upward & downward jerk from camera

I have a scene with low poly assets & NavMesh enabled for character navigation. When player climbs the bridge there's a sudden upward jerk in camera. Also, when the player comes down, there's a ...
1
vote
1answer
928 views

Rotate camera around its center in 2D

I'm currently trying to develop my own little game engine (trying to understand maths in games). I have implemented 4x4 matrices and 2d vectors (I don't need 3d since I'm aiming at orthographic ...
1
vote
0answers
1k views

Null Reference to camera when loading new scene

I am getting the error: MissingReferenceException: The object of type 'Camera' has been destroyed but you are still trying to access it. Your script should either check if it is null or you ...
1
vote
0answers
816 views

How to reproduce this (parallax?) effect?

I'm wondering how to imitate the camera movement like in the gif below. It´s from a Android game. This game for example (via GIPHY) Actually, I am not sure if this can be called a parallax effect, ...
1
vote
1answer
191 views

Camera follows object and has a target object on the y-axis

I have two capsule objects in a split screen shooter. At this moment, the first camera follows player one, and has the target player two. The second camera follows player two, and has the target ...
1
vote
0answers
51 views

Asymetric Perspectiv View

I am building a addon component that will show synthesized 3D view of the world (kind of FLIR camera simulation). The problem I am facing is that currently I am using Symmetric Perspective View with ...