Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [camera]

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

0
votes
1answer
188 views

How to swap between two player objects in Unity?

I have two object for the player. Whenever I press space I'd like to swap between them and also I would like to change the first player main camera to the second player camera and equally for the ...
-1
votes
1answer
57 views

How do I move a target camera along Y axis

I have a camera that rotates around a target point on mouse move. How can I move the camera's position upwards/downwards related to the target position? So when camera is moved upwards the object is ...
4
votes
2answers
236 views

How to calculate Camera “correct” position and distance to Frame all my Scene?

Consider I have N dynamic points on my Scene, I would like to "frame" all them, with my Camera. How can i calculate (at runtime) Vector3 Position to correctly frame all my scene ? This is my idea: ...
0
votes
2answers
245 views

Move Camera is an order so that the background doesn't move fast

I have created a game where I am moving my player on a platform. The car moves fine on the platform and the camera follows the car as well. My problem is that I wanted my background to move slowly. I ...
0
votes
0answers
77 views

Make zoomable Camera and Environment follow player smoothly

I am making a 2D side-scroller racing game. The Player is a car that moves on a 2D terrain already created. The Camera follows the Player. I also wanted to created more depth by making the background ...
1
vote
1answer
215 views

3D camera - window resolution relation

I'm having a bit of an issue when it comes to 3D- and 2D camera(s), in relation to a game's window resolution. I want to let the player choose from different window resolutions, either from a menu or ...
0
votes
1answer
640 views

Moving camera in 3D - directX12

I begin to learn graphic programming on directx12. I try to make a camera wich can move dans rotate around the world. I take this code as a basis: https://www.braynzarsoft.net/viewtutorial/q16390-...
0
votes
1answer
159 views

Problem with FPS camera in Software Renderer

I am currently creating a software renderer (I know they aren't particularly useful anymore, it is purely from a knowledge and learning standpoint). I am using GLM and following OpenGL rules(as GLM is ...
0
votes
1answer
555 views

LibGDX - Move camera not working

I'm starting with LibGDX and I loving it so far, but I have found some troubles and I'm getting a little frustrated. I've searched a lot for a solution and tried many things, but nothing seems to work....
1
vote
1answer
3k views

How to place same canvas on multiple cameras in Unity?

I know how to do It on one, but I don't know how to do it using multiple cameras, 3 of them are important, i want to show the whole UI except for the minimap. I need to change the camera angle on some ...
1
vote
1answer
239 views

Can not connect HTC Vive headset - Steam VR plugin error Failed to load IVRRenderModels

When I add SteamVR plugin I receive error: Failed to load IVRRenderModels interface version IVRRenderModels_005. The plugin works for my other projects, camera and controllers are detected and ...
1
vote
1answer
392 views

Add Lerp on only the Y axis

I want my camera to be smooth on only the Y axis.How do I do that it? Current code: ...
2
votes
1answer
1k views

Get the up vector of the camera in ARKit

I'm trying to get the four vectors that make up the boundaries of the frustum in ARKit, and the solution I came up with is as follows: Find the field of view angles of the camera Then find the ...
-1
votes
1answer
474 views

Does Game Maker Studio 2 have a 'room edge' variable or similar?

I made a sort of "floating camera" for a 2-D platforming game set to follow the player by default but can be made to snap to a stationary point in a room for boss battles and the like, but I've ...
4
votes
1answer
91 views

Camera rotation deforms objects

I'm working on a ray-tracer in C++ with an adjustable camera for a university assignment. I'm entirely new with graphics and I'm struggling with one thing. I have a matrix as a mat4 object (4x4 ...
1
vote
2answers
791 views

libGDX - orthographic camera and world units

I've followed the advice in this post to handle world/screen coordinates, but I'm getting results I don't quite understand, as I'm not terribly good in math. So, when I use this code: ...
1
vote
1answer
64 views

Camera Linecast Bumper Stuttery

I copied a script off the internet and changed it a bit: ...
0
votes
1answer
188 views

Same dimension feel no matter what FOV

Does anyone know a formula, way, ... to make a FPS player feel like an object has the same size on different FOVs (given that it's at the same distance of the player, of course)? I know that this can'...
0
votes
1answer
193 views

Black Area in skybox in opengl [duplicate]

Hi I am using opengl and I am having a problem if I go further from the skybox with the camera I get black areas, a smaller radius of the skybox will make the camera too close to the object to stay ...
0
votes
1answer
336 views

Can't find Model Substance Painter - Lost in the Void

I must have zoomed out too far, turned the camera in the wrong direction, whatever. The model is lost, I cannot find it in the 3D View. This is a complex project and I don't want to start over. I have ...
1
vote
1answer
250 views

Any idea why my openGL camera is stuttering only on the X axis? and only when using nvidia drivers?

As part of my assignment, I've been building a scene graph framework in C++/OpenGL. My camera works absolutely fine going backwards and forwards, but when I strafe / move on the X axis, the camera ...
1
vote
1answer
186 views

Unity - Sprite disappears completely when just a part of it is outside the camera's FOV

I'm making a game in Unity, and when the player walks past a sprite, the sprite disappears, and when the player walks back toward it, it reappears. You can see a video of the problem here https://www....
2
votes
0answers
204 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 ...
0
votes
2answers
164 views

LibGDX - GameWorld Dimensions vs ViewPort Dimensions vs Camera Dimensions

Before someone mark it duplicate - I am aware that there are few questions already on this topic but the explanations are all theoretical and no graphical elaboration was provided which I think will ...
5
votes
3answers
8k views

How can I make my Camera's RenderTexture output have a transparent background?

I'm writing a 3D game using Unity 2017.1.0b1. I have a disabled Camera that takes a "snapshot" of the current scene and stores it in a RenderTexture when a button is clicked. I then display the ...
1
vote
0answers
285 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. <...
3
votes
1answer
310 views

How do I move a camera to a new X and Y position when the player collides with a certain object?

The lowdown is this: I'm making a 2D overhead game that takes place in separate screens in a room. Each screen is separated by a few blocks of black space (to give the impression of screens being ...
3
votes
1answer
3k views

lookAt with orthographic camera (gl-matrix)

Technically this is a webgl question though I think it's generic enough to get some opengl, erm, perspective on it too... If I setup an orthographic camera (perspective matrix) like this: ...
0
votes
1answer
131 views

First-person shooter -style controls [duplicate]

This is not in regard to a video game, but to a 3D model viewer someone else created and I am modifying. I would like to implement first-person -style mouse and keyboard controls in the viewer, so ...
0
votes
1answer
35 views

In AGK2 Basic, how would I attach a camera to the player charater?

I've started making a game in AppGameKit and I'm using Tier 1/AGK2 Basic. I'm trying to make a sort of endless runner. I've made it so that the player stays still and the rest of the world moves ...
1
vote
1answer
107 views

Camera math: How to calculate the horizontal and vertical angle from the look at vector

I'm using the PerspectiveCamera class in C#/WPF to implement an FPS style camera. For that, I would need to offset the camera's horizontal and vertical angles every time the mouse is moved. The ...
0
votes
1answer
228 views

Implementing a scrolling UI in Libgdx

I am using the LibGDX framework. I'm not using Scene2D but I want to implement my own "scrolling UI". This is only what I could think of (see image below): I will make the 2nd camera look at very far ...
1
vote
1answer
28 views

Stop displaying a camera sign in a Scene view in Unity

How can I stop displaying a camera sign in a Scene view in Unity? I mean that white thing you see below:
1
vote
0answers
315 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 ...
0
votes
1answer
82 views

Field of view or resolution?

I'm new to CG and I'm building a ray tracer. I don't quite understand how to set camera parameters and film(pixel plane) parameters. Say I want to get an image of 400x300 resolution. I can set an ...
1
vote
0answers
164 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-...
0
votes
0answers
444 views

Unity : orthographic camera and shadow

When using an Orthographic Camera, the shadows appear to be of poor quality. How can I display smooth shadows?
0
votes
1answer
583 views

Fixed camera rotate to follow character

I have a camera in a fixed position in the middle of a field, and I would like to rotate the camera to follow the character as it moves around. There is no point lower than the camera, but I would ...
0
votes
1answer
93 views

How to simulate camera turbulence for in-game cinematics [closed]

Are there any good algorithms for generating a convincing turbulence effect that can be applied to an in-game camera. For example, in use cases such as the viewpoint of a plane flying low and fast ...
1
vote
1answer
80 views

How do I make the camera aware of the position of the object it is tracking?

I'm making a 2D game with a Camera that tracks GameObjects (usually the player). At the moment, a ...
1
vote
1answer
53 views

Why is my camera movement not working as expected?

I'm doing a 2D Tile Game in Java. It should be the right calculations to make the camera following the player only if it is located at a distance from the center of the window, but this only works the ...
0
votes
1answer
976 views

Move Camera After Player Moves Certain Distance

I've got a 3D mobile game with the player centered in the middle of the screen, and a camera looking down on top of the player. The player is controller by an on-screen joystick. Currently when the ...
0
votes
1answer
881 views

Visualizing NavMesh to Camera

When Unity builds a NavMesh, you can see it in the scene view if you have the Navigation window open and select "Show NavMesh" in the Navmesh Display box. I'd like to use the exact same overlay in a ...
0
votes
0answers
51 views

How to abstract mouse movement event streams for networked multiplayer?

I'm building a mouse driven 3rd person shooter with client-server network architecture. My input system is event based. Keyboard input is captured by keys.S.onUp() ...
-1
votes
4answers
5k views

Only make camera follow player on x axis?

I need a script to make the camera follow the player but only on the x axis so its like mario where when I jump the camera doesnt go up.
0
votes
1answer
57 views

Restrict the rotation of the camera using button

I've been trying to limit the Y-axis of the camera rotation but I'm out of depth until now. I'd looked up many tutorials and I found the clamping method, but I seem can't get it to work on my code, ...
3
votes
1answer
932 views

Unity- how to render-to-texture with VR distortion

I've also asked the question here http://answers.unity3d.com/questions/1392099/how-to-set-a-render-to-texture-camera-to-be-a-vr-c.html (but it's currently "under moderation") So, I want to do some ...
1
vote
1answer
409 views

Room-based camera movement

I'm trying to make a camera system where the camera never goes outside the edges of the current room (like Link to the Past or Mega Man, for example) This is what I have right now: ...
1
vote
0answers
226 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
51 views

Why “polar angle” should be restricted to the range of [0,PI] when moving camera?

In the sample code d3d12book-master\Chapter 6 Drawing in Direct3D\Box\BoxApp.cpp of "Introduction to 3D Game Programming with DirectX12 : Frank D. Luna", the camera ...