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

learn more… | top users | synonyms

0
votes
0answers
30 views

Implementing multiple cameras for multiple objects

Now, I have a Camera, and whenever I need to render elements I call the render function on the element and pass a camera to it like this: elem.render(camera); // Renders only elem, using camera ...
4
votes
1answer
99 views

Unity camera tilt

I'm programming a camera for an RTS and I'm stuck on tilting the camera up and down. I want the camera to tilt between 20 and 70 degrees using the Z and X keys. This is my code: using UnityEngine; ...
2
votes
1answer
223 views

How to avoid gimbal lock in Unreal Engine (c++)?

I created an orbit camera (sometimes called turntable camera; similar to the one with the "use UE3 orbit controls" setting in a static mesh view). I attached the camera to a USpringArmComponent with ...
1
vote
1answer
116 views

How to fix my camera collision, C# XNA

I am having some weird issues with my camera. I am trying to make it so it is a first person camera, that when the user presses the W or Up key, it moves towards where the camera is looking. My issue ...
1
vote
0answers
17 views

Changing the Camera at Some Spots Unreal 4 Blueprint

I'm making a 2D game, and during the level the camera will move together with the player. But in the end, during the final boss, I want the camera to stop and don't move during the fight. How I can ...
1
vote
1answer
111 views

Make game camera stay inside of tiled map boundaries [LibGDX]

I am creating a little 2D platform game, with the LibGDX framework. So far I have created a simple prototype level in Tiled, and loaded this map into my LibGDX game. I can use mouse and keyboard ...
2
votes
1answer
58 views

Recap on how a camera works in 3d Space?

This may be marked as a duplicate, but I have been trouble thinking about a camera. I understand that there is a "camera transform," or view matrix. However, this is multiplied with every vertex in ...
-1
votes
1answer
98 views

How to disable Camera from tilting when following a game object?

I have a game character object which is followed by camera. Camera is child object of Character. Using rigid body makes the character tilt in slopes and camera tilts too. how do i stop camera ...
0
votes
0answers
22 views

Projection type/camera angle in Alien Soldier

I am trying to build a 2D game similar to Alien Soldier from oldies (Sega Genesis). The problem I am having is with assets. What kind of projection/camera angle does the Alien Soldier use for it's ...
1
vote
1answer
87 views

Limiting Bounds of Camera

I'm using the following code which I've taken from Unity and edited it a bit, but I seem to misunderstand the right way to actually add bounds to the camera controls and the way to implement the ...
-1
votes
2answers
67 views

How to create a camera that follows the player?

I have a javascript game where I use a tile grid somewhat like this: var tiles = [ [0, 0, 0], [0, 1, 0], [0, 0, 1] ]; I want a camera to follow the player and when the player moves off the map, ...
0
votes
1answer
41 views

LibGDX: how to implement 2 cameras in a unique stage

I am quite new to LibGDX. I am trying to make a game, where the character is an Actor, and it's controlled by a Touchpad(included in the main Stage as an Actor too). My problem is that I am trying to ...
1
vote
1answer
95 views

How do I snap the Unity camera to a 2D, tile-based map?

I have a 2D, tile-based map. I want to be able to control the number of visible tiles on the screen vertically and horizontally, regardless of resolution. I want the player to be able to move the ...
1
vote
0answers
15 views

Citrus Engine - How do I set-up the camera?

(Would be great if someone with greater rep created the Citrus Engine tag and add it to this question) I want to make a game where my inner starling stage dimensions are 320x240. My game will have ...
0
votes
1answer
93 views

Make Camera Bounds

I'm new here and I have a question. (Help me Google Translate). At first I make camera from this video. First video First script (CameraController) using UnityEngine; using System.Collections; ...
3
votes
1answer
47 views

Camera horizontal shift

I want stretch my game on two monitors. I use Unity 5.3. This version support the multi-display. But, one camera = one monitor. So, have two perspective cameras (at the same position). I search a ...
0
votes
0answers
21 views

How to use camera in unity engine?

i'm new to game development, and i want to learn more about camera programming in unity. I am good in C#, so scripting is not my weak point. I dont really know how to start. Could you please refer ...
1
vote
1answer
62 views

Unity's free look camera too far away

I've been making a game to learn unity and I have been using the free look cam that comes default but have encountered a problem that I don't know how to fix. Basically the camera rig isn't following ...
0
votes
0answers
147 views

Blueprint For Switching Between Cameras In The Unreal Engine

So basically I have a scene in the Unreal Engine which has multiple cameras within it, the cameras are intentionally static as the application should behave more like a viewing gallery than a game. As ...
1
vote
0answers
94 views

Drawing objects in view of camera only in XNA/MonoGame

I am working on a Tower defense style game on mobile that uses a tile map and I am trying to determine the best way to draw overlays of those tiles. In my game, I go into build mode to build towers. ...
3
votes
1answer
122 views

Proper way to draw 1000 billboards that always face the camera

I have up to 1000 visible GameObjects with trivial plane meshes, which are essentially sprites/billboards and which should always face in the relative direction -camera.forward. There are so many ...
0
votes
0answers
96 views

LibGDX: open android camera

I need help, I can't find a solution to open camera device in my libgdx app. I'm developing it only in Android for now but I have this issue. I need only to open the preview view, no snap picture o ...
0
votes
2answers
331 views

Using Unity's `transform.translate()` to translate relative to an object but only using two axis

I'm using transform.translate() to move an object around the world space, relative to the camera that is following it. The camera has an angle of 23 degrees on the X axis. The problem is that when I ...
2
votes
1answer
87 views

How to keep the camera view to within room dimensions

me = self; view_yview[0] += ( me.y-(view_hview[0]/2) - view_yview[0]) * 0.1; view_xview[0] += ( me.x-(view_wview[0]/2) - view_xview[0]) * 0.3; This is the code I use to smooth camera ...
2
votes
1answer
72 views

How to render multiple displays in Unity

I have a scene (lest assume, large glass table I want to looking through) and I want to render with 4 displays (each 1920x1080). How can I set up camera for this, I want the "glass cube" to fill ...
2
votes
0answers
50 views

3D Zoom To Mouse Cursor accounting for Change in Camera Pitch

Overview: Simply put, I'm trying to make a zoom to cursor algorithm. This would normally be very simple, but the implementation of the camera is making it difficult. As the camera zooms in and out, ...
3
votes
1answer
109 views

Make Camera Look at point using a World transformation matrix?

Variants of this question might have been asked on this site, but none of the answers I found worked in my case. I am trying to make a Camera look at a point. The camera has a world transformation ...
7
votes
1answer
232 views

What is the easiest way to Implement a 3rd Person Camera in C++/DirectX9

I'm pretty new to C++ and DirectX9 and I want to Implement a Third Person Camera. After some reading about Quaternion-based Cameras I decided to try Implementing it. But it really blow my mind, so I ...
2
votes
1answer
58 views

Isometric Mouse Camera Panning

I am building an isometric game environemnt and i want to be able to pan the camera around the map by holding the right mouse button, can someone talk me through the logic for this please, i have made ...
2
votes
1answer
46 views

Will performance suffer if I have a really large depth range but not very many objects?

I don't know where the impression came from, but somehow it got in my head that having too small a "near" and too large a "far" in your projection at the same time would impact performance. In general ...
0
votes
1answer
92 views

Unity Animated Player Character Rotation Glitch

I was wondering if anyone experienced this issue in Unity with Mecanim-animated characters ... I have an animated player character with a third-person camera control (Game Camera from the asset ...
2
votes
1answer
50 views

OpenGL pitching problem

I've been trying to implement several camera movements for my application. So far yawing, rolling, strafing, walking has been working properly, but I can't get my pitching to work properly. If I ...
2
votes
1answer
204 views

Keeping an object constrained to a 2d radius based off of the camera

A few weeks back I posted a question about keeping an object on the screen. What I would like to do now is clamping an object around a 2d radius based on the camera. I'm need this for a reticule ...
2
votes
1answer
185 views

How to disable camera moves (mouse drag) in an Unreal Engine editor plugin?

I tried to override FEdMode: virtual bool DisallowMouseDeltaTracking() const override { UE_LOG(LogTemp, Warning, TEXT("do not allow mouse delta tracking!")); return true; // I also tried to ...
2
votes
2answers
133 views

preventing a camera from getting stuck inside a mesh in Unity

I've a 3rd person camera similar to Mario64. Currently, I'm working on preventing the camera from getting stuck inside a mesh. The goal is to move the camera overhead. This much trickier than I'd ...
1
vote
1answer
69 views

Find x and y position with angles in 3D world

I'm actually creating a Tracking Camera (or 3rd person camera), and to do so, I used two angles (X and Y) for the rotation of the camera and an other floating value for the distance between the target ...
2
votes
1answer
82 views

Limiting x and y movement so you can't go off camera

So I want to make an on rails shooter like that of Star-Fox in the Unity engine. What I would like to do is limit the ship from moving off the screen. You move along the X and Y axis so i wont have to ...
2
votes
1answer
259 views

How to implement view bobbing?

I'm developing a First-Person shooter game. Everything is just fine but I've a little problem with my camera moving. My FPS camera is moving smoothly! But the camera should move like a human is ...
1
vote
2answers
128 views

Camera follow rotating ball - ortogonal direction

I have a ball, that has been moved via addForce. It colides in the scene with objects, leading to rotation in all axes. I want a camera to follow this ball but from the side (direction ortogonal to ...
4
votes
0answers
185 views

smoothly recenter view over time

I'm currently using the Google Cardboard SDK for Unity to build a fighter pilot simulator. What I'm currently trying to do is recenter the view(CardboardHead) smoothly over time when the user looks ...
4
votes
2answers
287 views

How to properly rotate towards a local point in Unity C#? (a local LookAt)

I am having a nightmare trying to make a child object rotate towards a given point of its parent object, similar to what is possible at the world level when using LookAt. The problem is that most ...
2
votes
0answers
96 views

Rotate perspective camera to align screen width to procedural object's width (Unity, C#)

I give up. After much trying and searching, I have to say I was unable to achieve the following task, for which I must call for your wise advice. In my current Unity 5 application (using C#), there ...
1
vote
0answers
84 views

How to create 2D cameras in swing?

What is the best way to create a camera for a 2D platformer using swing, and I want to create a camera that moves instead of moving the background. This is because I'm going to have objects rotated by ...
5
votes
2answers
171 views

How far back should I move my camera to fit a given GameObject in frame?

In Unity with C#, I want to calculate the minimum distance that my perspective camera has to be from a given GameObject (a procedurally generated mesh), so that the object is fully framed by the ...
1
vote
1answer
58 views

Camera rotation according to target direction

I am facing issue when camera is following to my target and target rotates to 90 degree or -90 degree than camera is not rotating.i want smooth rotation according to target when target is change the ...
-3
votes
1answer
52 views

In Unity how do i make the camera follow a character in the y axis..? [closed]

I have a character which keeps moving in the y-axis and the camera needs to be fixed to follow with the character for some extent and when the character falls down camera should freeze at the point. ...
0
votes
0answers
47 views

What is pokemon-like game's view called? [duplicate]

I'm trying to make a game with a top down view, but angled, like pokemon, zenonia, zelda(I think), and most rpgs(specially the ones made with rpg maker). But I don't know what is this view called so ...
0
votes
1answer
64 views

Issue creating a dynamic seemless cube map

I have a function for building a cube map, given a location in space. I also have a system for displaying cubemaps (either loaded from images or given as a texture handle), and they work fine and are ...
0
votes
2answers
103 views

LibGDX: Content appears stretched although I'm using a ScreenViewport

I just fixed another issue regarding the scaling inside a ScreenViewport. And yet another problem arises: If I'm understanding the wiki correctly, a ScreenViewport does not scale or stretch the ...
-1
votes
1answer
143 views

Best field of view [closed]

What is the best value for field of view for an FPS?