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

GLFW - Camera rotation system

I need to make a camera rotation system similar to the one here http://madebyevan.com/webgl-path-tracing/ To rotate, press the Left mouse button and drag. So far I figured a basic idea of how this ...
0
votes
1answer
229 views

How to remove horizontal black bar at the bottom of the game screen in libgdx?

Here is the screenshot .Here is my Play constructor in Play class.
0
votes
0answers
55 views

Camera zoom to point in Monogame

I'm currently working on a 2d isometric tile-based game with a camera and the functionality to zoom in and out. So far I'll take the center of the screen as "zoom point" using the following lines of ...
0
votes
2answers
56 views

Why is the Tilemap not fitting the screen?

I have a background image which I made it in tiled map editor of width 40tiles and height of 8tiles.When I run the game the tilemap bounces with the player and I can see the black portion of the ...
3
votes
2answers
201 views

How to make the camera follow the player in Libgdx?

In Play class I have the viewport of game height=320 and game width=240unitswith camera cam. I have set the camera(cam) viewport width to 10 and viewport height to 7.I have another camera hud whose ...
1
vote
1answer
39 views

My Canvas has an image which I am using for my background but it is blocking my Camera from seeing my Game Scene

So I am not entirely sure how to explain this as I have not had any luck searching online and I'm sure this is a simple problem but I'm being stupid and can't see it. I have a Canvas which is for my ...
1
vote
1answer
133 views

Follow Player which moves over a sphere

After hours of googling and pulling several hairs out, I decided to open this thread. I want to make a game, in which the player walks around a sphere (like super Mario galaxy) and the camera should ...
0
votes
0answers
117 views

Vulkan: Unable to render using multiple view ports

I have been trying to enable multiple viewports in my Vulkan Pipeline but have been unsucsessfull. I used this code sample as a reference point. The problem is that when I attempt to draw two side by ...
3
votes
1answer
137 views

SteamVR locks position of dynamically created cameras

I'm having trouble tracking down a problem with SteamVR. Here is a quick way to set up an MWE: Create a new Unity project. Import the SteamVR package from the Asset Store. Create the following script:...
2
votes
2answers
60 views

Custom Camera View Fustrum in Unity

Is it possible in Unity to make some sort of bounding box (with a running application) within the current viewpoint of the actual screen? Let me explain: I'm working on a project which uses a ...
0
votes
0answers
24 views

GLM: Camera attached to model moves in opposite direction from the model

I have been working on a component based engine with nested game objects each with there own transformation's. Each game object calculates its position in the world based on its parents world ...
4
votes
1answer
764 views

How can the board fit the screen perfectly in Unity's 2D Roguelike tutorial?

I follow the tutorial 2D Roguelike tutorial. I want to understand how happen that 10x10 board of 32x32 sprites covers screen perfectly? Like what does this depend on?
0
votes
0answers
16 views

Performance: Culling done right- farplane and other things

I have more and more "hipoly" characters in my scene now. One way to solve this "more or less beautiful" is making a farplane and adding some fog. But the performance still is quite bad. Isnt there ...
0
votes
0answers
29 views

Relative camera movement with character in center

I'm trying to translate and scale a 2D space from world space to camera space with my character in the center. Adding in the scaling is tripping me up. Here's what I've got so far, without the ...
0
votes
1answer
297 views

Camera with zoom that follows the player in javascript

I'm passing the time programming a little game in javascript, I've done what I'm trying this in several in game engine. And what I'm trying to do is generate the world while the player walks around ...
0
votes
0answers
14 views

Orbiting camera, that can move even if direction pararell to top

I am working on a 3D editor and for that I would like to implement orbiting camera. The camera works well, but when the camera's direction vector gets parallel to the world up axis, it gets stuck. At ...
1
vote
1answer
47 views

Does gluLookAt add or set the view matrix variables?

I'm trying to rotate the camera view in PyOpenGL, but it's not working well. The weirdest behavior I've noticed is that putting gluLookAt in a loop seems to change the camera view, even when I'm not ...
0
votes
0answers
27 views

anything wrong with a spherical camera view matrix?

Is there anything inherently wrong, if you derive your view matrix from 2 spherical coordinates (say, phi and theta) on the unit sphere? The z-axis vector would be at, say (phi, theta), the y-axis at (...
0
votes
1answer
117 views

How do I access device camera in GameMaker Studio 1.4?

I've looked everywhere in the documentation for GameMaker and I didn't find anything about how to access the camera.
0
votes
1answer
58 views

What is the most efficient way to render a 2D scene objects?

What is the most efficient way to render scene objects according to the current position of the camera (which will follow the player position)? A friend told me that since processors are powerful ...
0
votes
2answers
35 views

Swapping Y and Z causes problems with Camera

I am trying to swap the Y and Z axis in my program. Everything worked great when Y used to be the axis coming out of the plane. After having swapped y and x, I have been able to draw my terrain ...
1
vote
0answers
12 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 (...
0
votes
2answers
67 views

Camera scrolling hiccups

I'm working on a 2D side-scroller, and I've got the technical aspects working. OpenGL renderer, camera movement using acceleration. However, while scrolling I'm constantly seeing tiny random hiccups. ...
0
votes
0answers
23 views

Unity: camera moving up and down for no reason

I have a standard camera in my scene. With standard I mean the camera you get when you click right mouse > Camera, with no modification except for the transform position and rotation. Then I attached ...
0
votes
0answers
33 views

Change axis to view world from above in Unity

Developing a 2d game where you view the "table" from above (think of a card game being played on a table). I have a candlestick on the table, but I must have something wrong because when I run it, it ...
0
votes
0answers
66 views

Cocos2dx Follow action is not working

I am making a 2D platformer game and I want my camera to move with the player sprite. There's a Follow action in cocos2dx which I used but Its not moving the scene as expected. Please take a look at ...
0
votes
1answer
486 views

How can I emulate Diablo 3's Isometric view using Perspective?

Using DX11, SimpleMath I am building a isometric game like Diablo 3 in 3D and I want to use a perspective camera that emulates their top down view. Projection Matrix: ...
0
votes
1answer
92 views

LibGdx Positioning the camera

I've been following some tutorials about libGdx and I've tried to create a 2d platformer but I've got stuck at how would be the right way to make the camera not go out of the screen when the player ...
1
vote
1answer
376 views

Implementing Screen Shake

I'm looking to implement screen shake in a 2D top down game. From an earlier Q on this exchange, I learned that noise values could be a good candidate, so I intent to try that. But I wonder: is a ...
16
votes
3answers
3k views

What is “simulated human operator” cutscene camera movement called?

I have some questions related to the non-smooth camera movement in cutscenes of quite a few games which appears to try and simulate the nervousness of a human operator holding it. This is opposed to ...
0
votes
1answer
76 views

How to Keep Unity From Changing Sprite When Changing Orthographic Size?

so I have a simple X animation, and at the end (when it looks like a full X), it looks good on one orthographic size, but bad on another. Here's what it looks like when the size is 3: Now you can ...
0
votes
2answers
150 views

Parts of sprite disappear when zoomed out

I'm playing around with making a roguelike and I want to use ascii characters as tiles in the game. I'm using a 256x256 sprite map where each character ends up being a 32x32 box. This works fine, ...
1
vote
1answer
489 views

Record video and sound from device camera and show it as a texture

I need to record and show video from a real camera device in iOS/Unity and show that video as a texture in RawImage (Image of what I want) What I have tried so far: Unity WebCamTexture API: It ...
0
votes
0answers
35 views

Projective texturing in DirectX11

I'm trying to implement reflections on flat surfaces and render a simple scene with a reflection. So I'm rendering the scene from the point of view of a camera symmetrical to the reflection plane and ...
0
votes
0answers
105 views

Tried to make Quake/Half-Life camera act like it does in Mario64/Sonic Adventure but run into a weird bug

So I am trying to implement such a system of controls and camera where moving left would mean moving to the left of the camera's current view direction, etc. I think this is also called movement in ...
0
votes
0answers
36 views

Calculate 3d object size to fill all screen.

I have a 4 rectangle 3d objects with size of entire screen that make a cube together and rotate. And i have problem with responsive on different aspect ratios and rotating. A calculated the size ...
0
votes
0answers
23 views

Determine how far from the camera bounds the player is in Unity

I am using native Unity Camera component. How could I get the distance from the bounds of the camera to a GameObject? In my ...
1
vote
1answer
62 views

LibGdx Camera Movement

I just started learning a few things about libGdx and i don't really understand how the camera works because i've created a camera, then set the camera position to viewport.getWorldWidth()/2 and ...
0
votes
1answer
72 views

What am I missing for this flycam to work correctly?

Through reverse engineering, I've found an instruction to inject on which allows me to obtain the XYZ coordinates of the camera, as well as pitch and yaw. Thus, I have the following: camX (Plane)...
1
vote
0answers
101 views

GLFW shift key not behvaing like other keys

I am using GLFW 3.2.1 Currently I am implementing a camera. For the vertical controls I am using space to go up and shift to go down. For all other keys, pressing the key results in the section of ...
1
vote
1answer
116 views

Unintended stuttering when moving camera

I am using opengl and GLFW to make a rendering engine. Things work per se, but there is some weird flickering happening when I move the camera. Due the nature of the problem I need to link a ...
2
votes
1answer
239 views

One pixel lines flash on tile map when camera moves

I'm writing a simple game using Phaser 3.5.1. I made a 20X20 over world tile map for my hero to walk around on with the camera following the hero. I was able to implement tile based movement using ...
0
votes
1answer
71 views

Camera follow while dragging object

I am working on Bowlingball game. And when I move the ball left and right by touching or clicking the camera moves, but it also makes ball keeps moving in the same direction even though I just moved ...
0
votes
2answers
48 views

How to keep an object in a certain part of the camera view?

I have a 3d camera that is viewing a character that is moving. As the character is moving i want the camera to adjust itself so as to keep the character in the left third of the camera view. I ...
0
votes
1answer
33 views

Zooming versus panning in a 3D FPS fly camera

Imagine you have a strategy game, and it's rendered in openGL, in 3D. You have an overview of the map and the camera is currently looking at the direction of the ground at some angle (but is not ...
3
votes
1answer
83 views

Why does this work? - camera rotation from screen space

I do not understand the math behind the linked function or why it works. I would like to know this. https://sidvind.com/wiki/Yaw,_pitch,_roll_camera ...
0
votes
0answers
20 views

Unexpected Camera Rotation in Unity

I've been writing a custom third person controller and I almost have the camera working the way I want for basic movement. The problem I am having is that whenever I rotate the camera with the right ...
0
votes
0answers
134 views

Best way to dynamically assign a camera?

(cross-posted on answers.unity.com, no answer there so trying over here) I want to change the camera dynamically at runtime, to see the view from a player, an enemy, etc. when I fire an event like ...
0
votes
2answers
237 views

Monogame Move objects while having a moving 2D camera

I am writing my first game. In this game, I have a heroEntity object, which has fields: ...
1
vote
1answer
115 views

Camera movement issue with pitch and yaw angles

I'm trying to implement a simple first person camera using pitch and yaw angles (no quaternions, I want a simple camera for debugging purposes). An Input class processes mouse input and translate the ...