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
21 views

Pull OVRCameraRig over RTS map via touch controller grabbing gesture

Currently developing a little prototype RTS with the Oculus VR devkit. I want to implement camera movement via "grabbing" onto the world space with a touch controller and move the OVRCameraRig object ...
0
votes
0answers
29 views

using batch.setProjectionMatrix puts sprites out of cameras view range

I'm slowly following games from scratch tutorials and although through my mistakes in figuring out a lot of things I'm struggling to understand cameras and viewports. So far I have managed to grasp ...
0
votes
1answer
26 views

Camera not in sync with player

I am currently working on a game in XNA and MonoGame. This game is supposed to be a port of KidsCanCode's tutorial series of creating tile-based games in Python. Here is a link to one of the videos in ...
2
votes
1answer
724 views

Is there a way to make a game object invisible to only certain players?

I have found a few posts and blogs here and there. But all of the solutions they provide seem to be global. Is there a way for let's say a multiplayer scenario where maybe an enemy has a cloaking ...
0
votes
0answers
117 views

Why do I see blurring lines when moving a camera, and how can I fix it?

I am using Monogame and I'm rendering the terrain as tiles. I am bringing in the tiles from Tiled. When I move my camera up, I get these lines that seem to be blurring the tiles together. Please ...
0
votes
2answers
31 views

What information would I need to calculate proper placement of my Unity 3D orthographic HUD elements?

I have a Unity project and I have managed to create a 3D HUD by creating a separate (orthographic) camera for rendering elements on the UI layer. I already have some objects appearing in the HUD and ...
1
vote
1answer
156 views

Keeping 2D camera within game bounds

I have a simple camera class which works for following my character around, and has an adjustable zoom. However, I cannot figure out how to keep the camera within the bounds of the world. As far as ...
0
votes
1answer
39 views

Box2D and OrthographicCamera working incorrectly

I'm trying to build a simple game where TileMapRenderer renders a labyrinth, a ball moves in it and camera follows it. I'm currently having the following bug: For some reason, the game renders the ...
0
votes
0answers
64 views

Unity smooth following 2D camera not working properly on different resolutions

I´m working in a third person 2D game with oblique camera view in Unity and I want the camera to follow the character smoothly. I´m using Vector3.lerp and works like a charm in mostly all the ...
2
votes
1answer
110 views

Pitch becomes yaw as camera gets near object

I have been having trouble with my camera, first encountering the roll tilt that is so many times asked... I fixed that issue by following the instructions at this link: Unwanted roll when rotating ...
1
vote
0answers
81 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 ...
0
votes
1answer
46 views

Unity 2D camera behaviour

I am trying to create camera behavior where camera moving slightly forward the player along his movement direction to extend the visible area. For camera movement, I use an empty object which moves ...
0
votes
1answer
58 views

Camera rotation is weird when it's a child of another object

I implemented scene graph hierarchy into my 3D game engine, and there seems to be a problem with the camera's rotation when it is a child of another object. It only happens with the camera, not any ...
1
vote
0answers
99 views

Sharpdx 2D Camera not moving

I am trying to move a camera to the right, but it isn't moving. i use this code to move: Camera.Position.X = gameobject.transform.Position.X; This is the camera ...
0
votes
0answers
733 views

How to implement a curved world effect without using a shader?

Curving your game world can be a very effective yet simple effect to add a lot of flavor to your games. This is mostly used in endless runners and other mobile games, but also used in big titles ...
1
vote
1answer
395 views

How to stop the RotateAround function to rotate after Keypress in Unity

I have a camera follow script and I am rotating the camera with Q and E key to right and left. The Camera is a child of a ...
0
votes
2answers
75 views

Why do I need offset on my camera?

So I've been away from Unity and game development in general for a bit, so I'm working through Unity's UFO Tutorial and had a question about the camera set up. I don't understand why you need the ...
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 ...
4
votes
0answers
156 views

How to draw a Voronoi Splitscreen view in GMS, where each player's screen area is a polygon shape?

I'm trying to implement the Voronoi Splitscreen effect that Squirrel Eiserloh described at GDC 2016, and I'm having trouble figuring out how to 'clip' the rendered scene for one player along a ...
0
votes
2answers
256 views

Unity 2d - Vector3.Lerp Not Working as Expected

I have asked this question on other community but still get no response after a month, so I decided to ask it here. I am trying to put player position to the middle of camera when it is reaching near ...
1
vote
3answers
2k views

How do I rotate the Camera around the player by Keypress in Unity?

I want to rotate the camera around the player by pressing E and Q but it doesnt rotates around the player. I tried RotateAround but didnt worked. Code: ...
1
vote
1answer
214 views

Simulating a real camera's perspective projection

I'm trying to simulate a real camera's perspective projection of straight, parallel lines running along the ground (one-point perspective) by mapping the real-world 3D coordinates of the lines to 2D ...
0
votes
1answer
318 views

Camera and multiple shaders

What is the best way to handle a moving camera inside many shader programs? I believe most games need to have one common projection matrix inside all shader programs to use a moving camera. Currently ...
-1
votes
0answers
71 views

How to Use My Third Person Camera Correctly When Rotating Around Another Object

I am creating an OpenGL 3D space game and when my ship enters a planet’s atmosphere, the ship starts rotating along with the planet. In first person everything looks great but when I go into third ...
0
votes
1answer
259 views

360 Orbital Camera Controller

I have a stationary cube in my scene that I'm orbiting a camera around. I have my MainCamera nested under a GameObject that I'm calling 'OrbitalCamera'. I setup the script so that a click (or tap) ...
0
votes
1answer
132 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
53 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
204 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
220 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
75 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
158 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
489 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
145 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
441 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
2k 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
226 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
281 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
933 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
397 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 ...
0
votes
0answers
27 views

How to give a camera full rotation capabilities

So I have placed a CameraActor which changes location based on a button press, I also have it set to rotate on the x and y axis with my mouse, however it is very restricted. I would prefer for it to ...
4
votes
1answer
87 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
678 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
49 views

Camera Linecast Bumper Stuttery

I copied a script off the internet and changed it a bit: ...
0
votes
1answer
178 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
165 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
232 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
239 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
145 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
190 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
153 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 ...