Game worlds are viewed from a camera, which is the viewpoint from which the game world is observed from.
0
votes
0answers
20 views
Making Camera Follow Object (2D Platformer)
I recently just setup my camera scene:
Camera Class
class CCamera
{
public:
CCamera();
~CCamera();
glm::mat4 GetViewToWorldMatrix() const;
private:
glm::vec3 ...
0
votes
0answers
16 views
Best AR Sdks for detection of smallest marker on Logitech c270 [on hold]
I want to know best augmented reality sdks for detection of smallest marker_ which is less than 1centimeter in size with Logitech c270 and also having 3D Marker capabilities??
I used vuforia in unity ...
0
votes
1answer
35 views
Unity 3rd person Camera and restrictions done wrong
I have made a camera that rotates around my player according to an Xbox joystick input. The camera is a child of a gameobject called focus on the player. To move the camera the gameobject is rotated ...
3
votes
1answer
30 views
How to translate the accelerometer input by specific angle?
I have an orthographic camera set on position(0,0,-10), rotation(0,0,0) and it's parent - CameraHolder with a transform:
which gives an isometric feel:
Now, I need to move the ball with the ...
0
votes
0answers
30 views
Looking for example of Dynamic Split Screen in Unity 5 (see example)
I'm trying to figure out a dynamic split screen script (or other solution) for Unity 5 using a diagonal divider like in this example video:
When the two objects being followed are close to one ...
0
votes
1answer
37 views
How to calculate view matrix for OpenGL 3.+ 2D Camera Roll
I'm trying to create a camera object for my 2D game engine, but I just can't seem to get the view matrix down right.
Here's the code I'm currently using:
glm::mat4 Camera::GetViewMatrix()
{
glm::...
3
votes
1answer
57 views
Best way for first person view to look at a note/item and add it to inventory?
Implementation question from a beginner. I would like to implement a functionality to a first person game where the player can pick up notes lying around and have the note align itself to the camera ...
1
vote
1answer
40 views
How can I improve my GameCamera class that a 2D tiled map is always rendered in the center of the screen?
For my 2D game I'm using slick2d and tiled maps.
I've a camera which follows the player and works fine, however as soon as the tiledmap is smaller than the gamecontainer window the map gets displayed ...
-1
votes
1answer
50 views
How do I disable fog on specific camera/s
I'm building an FPS with fog and I want to include a dynamic minimap, showing the locations of player and enemies in real time.
This is utilized by a second camera which is orthographic and looks at ...
0
votes
0answers
11 views
Ortbit camera rotation multiplication order with quaternions? [duplicate]
So I switched my camera to use quaternions and the first thing I noticed is that things started to 'roll' even though I'm not using any roll values. I looked it up and I found that people suggest that ...
0
votes
1answer
48 views
View “distortion” or “stretching” when looking up/down? (Software renderer)
I'm not sure distortion is the right way to describe this. I've uploaded a video to show you guys. Apologies if it's long, but I wanted to show the code as well as posting it here. https://youtu.be/...
0
votes
1answer
88 views
GTA style camera - Unity
I am wanting to make a 3d RPG with unity, and I'm in the planning phase. For the camera I decided to make it GTA style. I want the camera to be rotated around the player without effecting the movement ...
0
votes
0answers
21 views
SharpDX C# best way to Pan and Zoom Camera on a Quad
I have an application that work great with a quad fixed to the screen. I need to move to the next phase and allow the user to pan and zoom on the quad. I need to enforce a max and min for pan and zoom....
0
votes
1answer
55 views
FPS Player Camera Rotation using Touch
I am developing an FPS Offline Multiplayer Game.
In my game the player rotates using mouse input.
I want to rotate using Touch input.Touch to Swipe screen and player can rotate or Camera will be ...
0
votes
0answers
33 views
How to create panning effect with mouse input
I need your help with a problem with the camera movement. I'm working in a visualizer of point cloud data (the main purpose is to learn OpenGL) and I'm using Qt5.
Regarding the camera movement, I was ...
0
votes
2answers
42 views
How can I put borders to the camera with gameobjects regardless of the resolution?
I'm making a game in Unity, in my game I have a sphere, what I need is that the
sphere rebound on the edges of the camera.
For that I used a few Gameobjects with 2D box colliders.
The problem is ...
4
votes
2answers
131 views
Third Person Camera Splines
I'm having trouble coming up with a formula/method of creating third person camera with a variable distance from the player given a specific camera pitch.
This image shows something close to my ...
0
votes
1answer
66 views
Moving an object extremely close to the camera at a constant speed makes it visually speed up
I have a quad in 3D space (a billboard in the real-world sense) that I want to move close to the camera so the user can inspect it. The quad is defined by the 3D coordinates of its four corners.
To ...
0
votes
2answers
73 views
How to make proper billboarding trees ? (Unity3D & C#)
I make a 2.5D first person game like Doom, Duke Nukem 3D, and Daggerfall used to be. I'm new to Unity and game development in general, so I'm sorry if this seems obvious to some people.
What I want ...
0
votes
0answers
20 views
How to tell if a vertex is on camera?
My game was originally rendering with a orthagonal projection, but because I wanted a rayman-origins like water effect, I needed to switch to a frustrum projection. And now it doesn't correctly ...
-1
votes
1answer
26 views
Prevent perspective cameras from overlapping using multiple screens
I'm working on a shooting trainer project, where multiple cameras are placed beside each other to show a bigger range of environment. Each camera displays to a different screen. I find that the ...
3
votes
1answer
42 views
Help understanding camera/scene Unity
I'm a brand new unity developer and I watched a few tutorials and then found a game on the Asset Store to provide a nice base for my game. However the setup, especially with multiple scenes is quite ...
0
votes
0answers
19 views
How to pan and zoom the camera smoothly through touch inputs?
I am trying to move my camera smoothly over the terrain with touch inputs but not getting pure smoothness like any other high quality games And after zooming motion starts becoming slower and slower. ...
0
votes
1answer
58 views
What FOV does Unity show in a 16:9 aspect ratio, when set to FOV 60?
Preamble:
I noticed the FOV in Unity is only correct when the screen resolution is square, in other words when the width of the screen is the same as the height.
When you add more width to the ...
0
votes
1answer
60 views
OpenGL 2D camera
I'm trying to implement a 2D camera in modern OpenGL.
Before I moved over to OpenGL, I used SDL to make my games and their concept of a camera is by creating a camera quad and each time the camera ...
0
votes
1answer
56 views
How do I change quaternion rotation to use the local camera axis rather than the world axis in DirectX 11?
I'm currently trying to rotate the camera around its local axis based on keyboard/mouse input and the code I currently have uses DirectXMath and works nicely, however it is using the world axis to ...
0
votes
0answers
23 views
How do I apply camera local space values to world space in Direct X 11
I'm trying to rotate the camera around its local axis, and then apply the new values of the camera to world space. At the moment the camera seems to rotate around the correct axis, but the lookat ...
0
votes
1answer
28 views
How do I get the camera's local XYZ axis in Direct X 11?
I'm currently working on quaternion rotation and I have them working, but it seems to be using the world XYZ axis to rotate around, which is an issue as the camera rotates itself around an axis.
...
0
votes
0answers
29 views
Position a camera so that top left and bottom right corners are both points in 3D space
I would like to place a camera so that it has a specific portion of space in sight. I would like to place it equidistant to two points in space, corresponding to the intended top left corner and the ...
1
vote
1answer
30 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
43 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
35 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
33 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
54 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
40 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
106 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
54 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
72 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
94 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
21 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
88 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
48 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
241 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
76 views
Disable global fog from camera [duplicate]
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 ...
1
vote
2answers
74 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
48 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
52 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
79 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
107 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
60 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 ...