Stack Exchange Network

Stack Exchange network consists of 174 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
0answers
537 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
312 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
67 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
44 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
134 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
198 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
146 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
266 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 ...
0
votes
0answers
64 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
138 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
97 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
51 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
184 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
178 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
74 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
118 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
371 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
131 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
362 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
208 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
167 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
738 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
311 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
84 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
568 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
45 views

Camera Linecast Bumper Stuttery

I copied a script off the internet and changed it a bit: ...
0
votes
1answer
176 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
149 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
157 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
227 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
109 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
179 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
135 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
5k 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
199 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
238 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
2k 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
124 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
29 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
94 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
157 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
179 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
77 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
133 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
335 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
400 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 ...