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

learn more… | top users | synonyms

1
vote
1answer
24 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 ...
0
votes
0answers
36 views

get pixels in a rectangle

i'm trying to get the values of pixels inside a rectangle in LibGDx but i'm having trouble converting the coordinates from the word to the x, y in the Frame-buffer i used the code bellow : ...
0
votes
1answer
25 views

Problem calculating screen point for a point in a 3D world with view matrix and projection matrix

I am trying to calculate the 2D screen point of a 3D world position. For this I use the multiplication ViewMatrix * ProjectionMatrix. But I am not getting good results and I think I am messing up my ...
0
votes
1answer
23 views

2D HUD overlay drawing based on 3D coordinates and camera azimuth and elevation

Assume you have the 3d coordinates of the player and another unit N as well as the azimuth and elevation of a camera always looking at the player. In the following illustration the sun would be the ...
0
votes
1answer
46 views

Camera type for puzzle game like tetris

I can't find what is the name of the camera type. Sided camera view seems logical but not correct thought
0
votes
1answer
23 views

OpenGL camera movement with mouse buttons

I am using modern OpenGL with glfw. I made a FPS camera with mouse and it works very well. But I want to move my mouse like Blender's model view mode. When I press the middle mouse button and move the ...
3
votes
0answers
45 views

Blur just one object in Unity

I've recently encountered a problem where I needed to blur an object that is inside another object. I've tried several methods to fix this but none of them works properly. In the screenshot below, ...
0
votes
1answer
34 views

Creating a 3rd Person Flying Camera for 3D asteroids game

In order to learn PyOpenGL and test out an engine I am developing, I am trying to write a 3D asteroids flying space shooter game. Currently, I am implementing the camera using a "look at" function ...
0
votes
1answer
62 views

If I want to create a top-down 2D game should I rotate the camera?

Do I have to rotate the camera to top-down view if I want to crate a top-down 2D game or just disable gravity?
1
vote
2answers
54 views

Unity 5.5 android scaling

The questions I've seen are outdated, explained, not to my liking, or just don't work. PROBLEM: -I want to be able to create a game that can scale on all mobile devices with ease and with no ...
0
votes
0answers
14 views

Unity2D: How to disable all lights and add a spotlight which follows my player?

this is my first 2D project. back in 3D i could just simply delete the light and add new ones as i please but here there are no light items and the camera has its own light somehow. i want to make ...
0
votes
2answers
63 views

How to import camera from Blender into Unity3D

I have a few cameras in Blender to export to Unity3D. They're exported as empty GameObjects, and that's what is expected. The idea is to have the main camera be a child of one of the camera empty ...
1
vote
1answer
32 views

Help Understanding Cameras/View Matrices in DirectX11 (C#)

So I'm designing a soft game engine in C# on top of the SharpDX API (a C# wrapper for DirectX). As I'm designing the camera, though, I'm running into some issues getting the 3D perspective correct. I'...
-1
votes
2answers
117 views

What are some common FOV for third person games? [closed]

I am trying to decide on a field of view (FOV) for a third person game and I really don't know where to start. It would be very helpful to have some points of reference from recent TPS games and the ...
0
votes
0answers
37 views

Disable global fog from camera

Does anyone know how to disable global fog from a particular camera? I have two cameras in my scene; one is a mini map camera, where I need to disable global fog. I have checked this answer and the ...
0
votes
1answer
30 views

javascript game camera that follows my player

I am experimenting with game developement here but my player disapears my player is alowed to just walk of the screen and never be seen again so i was wondering if someone could help me with adding a ...
0
votes
0answers
39 views

Camera with physical parameters

I need to create a Camera following this parameters : [camera] focal_length = 1.119968176 width = 4912 height = 3264 pixel_aspect = 1 principal_point = 0.5 0.5 rotation = -0.9926100969 -0.1198614389 ...
-1
votes
1answer
40 views

Unity-How to use one scene's camera in another scene?

i have two scenes in my game, one is the menu scene with the UI and stuff and the other is the scene where all my game items are. right now my UI looks too plain so what i want is to display my actual ...
1
vote
2answers
69 views

How do I create a view matrix that does not contain the camera translation?

I'm looking at this tutorial https://capnramses.github.io/opengl/cubemaps.html about half way down the webpage, there is a description of a vertex shader #version 400 in vec3 vp; uniform mat4 P, V; ...
0
votes
2answers
74 views

How do I show a camera's field of view area through another camera?

I have a side camera that can be set on run-time with changeable field of view with GUI. I am searching for a way to show the field of view of the side camera using my main camera. I am thinking about ...
0
votes
1answer
36 views

Unity, Does camera ALWAYS render to RenderTexture?

I have a camera that renders a simple model to a RenderTexture. I then use that RenderTexture as a texture for my UI with a RawImage component. However, sometimes I disable my UI and therefore you can ...
1
vote
1answer
29 views

Unity reflections going white with camera movement

Please refer to this video to understand the issue I am facing. With camera movement, there is a strong white reflection that appears over the complete model. What settings do I need to change to fix ...
-1
votes
1answer
16 views

How to de/activate HDR option in camera with code?

I have some glowing objects in my scene, that with HDR off are inactive, so i want to add the option to turn HDR off in my settings to increase performance. If the code bellow is correct, what should ...
0
votes
0answers
68 views

Libgdx OrthographicCamera culling incorrectly when panning around the map

I'm using an Orthographic camera for the isometric effect and when i pan around to view the lower areas of my map, i get this weird culling effect where it shows less of the map when it should be ...
1
vote
0answers
34 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 ...
0
votes
2answers
86 views

Move relative to screen

I use top down 60 degree tilted camera and want move always visually straight directions relative to screen (up, down, left, right). When object is near screen edges it starts moving diagonally (...
-2
votes
2answers
61 views

UnityEngine.Camera doesn't contain definition for “active”

So I'm just trying to create a simple script in C# which will allow me to switch between two cameras, named Camera1 and Camera2. But I have run into the error UnityEngine.Camera doesn't contain ...
0
votes
3answers
80 views

Rotating camera based on player's rotation

I'm trying to have a camera rotate mirror the player's rotation, however, this isn't happening and the camera isn't rotating at all. Can anyone explain what I'm doing wrong and how to fix it? public ...
0
votes
2answers
71 views

Control Camera with gyroscope and place a gameobject always in front of it

Actually I have came here after searching from past 5-6 hours. Actually I am making a small game in which I have a camera and a gameobject. The Game Object is place in the center of the scene at 0,0,0 ...
0
votes
1answer
46 views

Libgdx OrthographicCamera culling problem with zooming

When I set zoom on an orthographic camera to anything above 1 I get a strange black border on the bottom of the screen. I suspect that this might be some sort of culling problem. I use a viewport to ...
0
votes
2answers
53 views

glm::perspective isn't working?

So I'm learning how to make games and program, and while trying to setup a projection camera using GLM in GFLW, this line of code refuses to work and I can't figuire out why. The code is in the image ...
0
votes
0answers
74 views

Constructing FPS camera transformation matrix using yaw and pitch

I'm trying to construct a FPS view matrix for my OpenGL renderer using yaw and pitch angles instead of the typical LookAt view matrix. I'm using the standard OpenGL coordiante, right-handed system ...
0
votes
2answers
44 views

GL how to look at the center of the viewport

I'm using GLFW3 and OpenGL to visualize measurements from an IMU that I have. I've gotten the simple cube example working and I can rotate it successfully with quaternions that I've input. However ...
1
vote
0answers
32 views

LibGDX limit the PerspectiveCamera for a FPS view

I'm using LibGDX and I'm trying to implement a FPS camera into my game. I'm not using the FirstPersonCameraController for multiple reasons: I don't want to touch to roll (only yaw and pitch), with ...
0
votes
1answer
30 views

Questions on camera view and buffer updates

I am quite confused with how the game engine handles camera view in DirectX. I know all the matrix stuffs, but where the projection matrix goes finally seems rarely mentioned. I looked up in the ...
0
votes
1answer
38 views

Xna c# picking model with Ray mouse cursor select the wrong model

i made a small 3D game and i just try to apply a basic sample from here : http://rbwhitaker.wikidot.com/picking for picking model by the mouse cursor. For that i use the Ray object and check if some ...
0
votes
0answers
44 views

Change Post Process on Camera

Using unreal engine 4, and attempting to change the post process settings on a camera attached to my player character. I can do this in blueprint, but was wondering how it was done in c++. So far in ...
0
votes
0answers
26 views

Depth test against culled objects

I have two cameras rendering 2 sets of geometry. (Achieved by setting clipping plane) The first set contains two planes, and the second set contains a single plane. Each set sits on its own layer. (...
2
votes
1answer
160 views

2d Tile Movement and Camera

Let's imagine we have a 60x60 grid (where a Tile is 64x64px). Within the viewport there should be 10 tiles. The player object is 32x32px. To have smooth movement, I have to take delta time in ...
0
votes
1answer
54 views

Unity2D - Horizontal Scaling to Support Various Aspect Ratios?

I am trying to work out how to support various resolutions for my Android game. I have come up with a solution, but do not know how to implement it. Automatically, I am told that Unity vertically ...
-1
votes
1answer
84 views

Camera not working in a Game Maker mod I am creating

I wrote an object, in Game Maker. My problem is that the camera appears to be nonexistent. It does not follow the player, and from the perspective it displays on the screen, I believe I simply do not ...
3
votes
0answers
56 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 ...
0
votes
1answer
46 views

XNA - 2D camera orbit around sprite

OK, I have a 2d sprite in a scene and I would like to know the theory behind the camera orbiting around it with an analog stick. I know the basic code to get the input from the gamepad, but I'm having ...
1
vote
3answers
68 views

Unity turn the camera when the player turns

I have a 3rd person view of my player. I wish my camera to follow the player both when he moves and when he rotates. So far i have the movement correct: public class CameraController : ...
0
votes
0answers
75 views

Libdgx Sub-Pixel Camera Scrolling

I read this post about sub-pixel rendering: http://code-disaster.com/2016/02/subpixel-perfect-smooth-scrolling.html The idea is you draw your game to a FrameBuffer at a resolution like 320x180 and ...
0
votes
2answers
66 views

How To Have My Character Turn When The Camera View Moves

So I have recently finished animating my character, having it move with key presses and have applied a camera to it. But I am stumped on how to have the player turn when the camera view moves, and ...
0
votes
1answer
51 views

Unity Camera - Clamping when Zoom changes?

I've got a basic camera I am working on for a 2D game that moves with the player and clamps to the area of the map. To the basics I've introduced a combination of player and eventual height-based zoom ...
1
vote
1answer
81 views

How do I make a quake-style camera tilt in Unity?

I want to make a retro-styled game with a modern look to it, and to do so I wish to make a quake-styled camera tilt. By that I mean when moving sideways the FPS Camera tilts a little bit, and the ...
1
vote
1answer
65 views

Unity - Static Camera Perspective, Walls Obscure Player

Pretty simple and common problem here. The world I'm designing is fully explorable, no invisible walls or tricks. It's presented as a single seamless area, a School complex with 9 buildings, some of ...
0
votes
0answers
210 views

How to scale Textures in libgdx?

I am playing with creating a simulation of a solar system, the coordinates for my object obviously get really huge. I started off with an example code from libgdx wiki about an Orthographic camera. ...