Questions tagged [camera]

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

Filter by
Sorted by
Tagged with
0 votes
2 answers
44 views

3D First person Rotate Character Unity

I'm facing the problem that my chacter is spinning around itself when I try to move, that's because Im trying to make my player move in the direction of the camera, but when I move it keeps rotating ...
Jamelaumn's user avatar
0 votes
1 answer
32 views

How do I make my player rotate in the current direction of my camera in Unity using C#?

I have a player with third and first person camera, I want to make my player move in the direction that my camera is looking at when I hold the right mouse in third person and move(Like my player is ...
Jamelaumn's user avatar
0 votes
0 answers
24 views

How to mod position of camera when crouching in 7 Days To Die?

I am talking about the first person camera. It is not glued at the player's head position; it moves away a bit. It seems linked to the 3D model and not to the capsule collider that shrinks when we ...
VeganEye's user avatar
0 votes
0 answers
29 views

3d camera control on XY plane controlled by mouse

I am creating a 3d game with a isometric view. I have a problem implementing camera controls. I can control angles of camera, but my view is scrollable only in the XY axis (camera is always up, Z axis)...
Darek Naurecki's user avatar
0 votes
0 answers
50 views

Well tuned orbit camera

I have been trying to make an orbit camera using glfw. I got a working solution which is as in the following. ...
atg's user avatar
  • 1
0 votes
1 answer
26 views

Moving Camera2D along with custom KinematicBody2D causes both to stop

I want to design a rigid body that moves up at a constant speed and can only be moved left and right manually. When I set the Camera2D to go vertically with the ...
Nina Monti's user avatar
1 vote
0 answers
64 views

How to achieve partial transparent effect like Diablo and Path of Exile Series

In Diablo and similar games, when the player is behind an object from the point of view of the camera, the object will (partially) become transparent or disappears. For example, in the picture below (...
Amarth Gûl's user avatar
0 votes
0 answers
38 views

How is it possible to display the crosshairs and the spaceship correctly in a 3rd person space shooter game?

I am working on a 3D space shooter game. It has a 3rd person camera, so the spaceship is always visible. I am wondering about how the aiming can be solved, since the camera is not directly behind the ...
Iter Ator's user avatar
  • 257
0 votes
0 answers
23 views

Transforming a rectangle to make sure it stays fully inside another

I am building a 2D top-down game in a custom engine. I am trying to build the camera system which allows the user to zoom and pan around the world. However, I am stuck at the point of preventing the ...
Fabrizio's user avatar
  • 125
0 votes
2 answers
54 views

How do I determine parallax scroll factor?

Implementing parallax scrolling is easy enough. This question is about improving its presentation. Hand-tuning some parallax scroll factors on multiple layers works, but parallax scrolling is meant to ...
Lake's user avatar
  • 191
-1 votes
1 answer
65 views

How do I recreate the default 2D camera in my Unity project

I was using Unity but my PC shut down suddenly; when I reopened my project, all my GameObjects, including my camera, had disappeared. The good thing is that I created prefabs of all of them (except ...
Rediet Workneh's user avatar
1 vote
1 answer
169 views

Implementing a Maya-like orbit camera in Vulkan/OpenGL

I want to create an orbit camera with zooming, panning, and rotation. I used the following examples to create cameras: https://stackoverflow.com/questions/54400422/how-to-implement-altmmb-camera-...
Wusiki Jeronii's user avatar
0 votes
1 answer
52 views

Dealing with Camera "bump" during floating origin reset

I am asking this question because my Google searches have yielded little results. My problem is basically this: I've implemented a very simple smooth follow on my camera to trail the player (who is ...
ACour008's user avatar
0 votes
1 answer
138 views

Calculating LookAt position from rotation and translation matrix

I was wondering if it was possible to calculate a lookat position from the translation and rotation matrices (aka the building blocks of my view matrix). I need the lookAt position to implement a ...
oli2's user avatar
  • 3
0 votes
1 answer
42 views

Remove transparency from second camera

I have a scene with two cameras. The goal is to display the content of one (little) camera ontop of the content of the other camera (fills the entire screen) Current problem: the content of the ...
mcExchange's user avatar
1 vote
1 answer
52 views

How to render picture-in-picture effect with libGDX camera

libGDX cameras are mostly used for layered rendering with different "world unit size," but I wonder is there a way of showing the view of for example a libGDX Orthographic camera in the ...
CallOfVoid's user avatar
0 votes
0 answers
64 views

Downscaling from 1080 to 768 in Unity 2D

I have an orthographic camera of size = 10.8 and I use it as base and have developed the game for a 1080 display. On a ...
FunnelScr's user avatar
0 votes
1 answer
62 views

GUI Using WorldToScreenPoint is Out of Control

I want to have a GUI float over a game object using WorldToScreenPoint, similar to this tutorial. However, I am experiencing strange behavior with the GUI. I assume ...
Sapphire's user avatar
0 votes
1 answer
92 views

Best Approach For Static Background Image?

I want to have a static background image of a sky that stays completely flat on screen and perfectly fits my games 1920 x 1080 display. Similar to what most old 2D side scrollers did. In other words, ...
PayasoPrince's user avatar
0 votes
0 answers
77 views

Issue with excluding object from post-processing in VR

I wanted to exclude some objects from a specific layer from rendering in the post processing. I followed both : https://www.youtube.com/watch?v=LAopDQDCwak and https://www.youtube.com/watch?v=...
Felox's user avatar
  • 65
0 votes
2 answers
54 views

How to change from gameplay camera to menu camera when colliding with a game object?

I want to know how to change which camera is outputting to the screen when colliding with another game object in Unity. I'm making platformer, and at the end of the level I want to switch from the ...
TheElectricWolf _'s user avatar
0 votes
1 answer
57 views

correct matrix to draw mesh as flat object

I need to draw a tilemap for a 2d game. For that I created vertices with their relative positions already hard baked. The coordinates start top-left with (0f, 0f) and z is always 0. I rendered them to ...
codymanix's user avatar
  • 364
1 vote
2 answers
145 views

How to create a camera that combines both forced movement and smooth player following

Context So I'm making a clone of Crossy Roads where the camera follows the player. It does some linear interpolation (Lerp) after moving, and the camera starts moving away from the player in the ...
Zeid Tisnes's user avatar
0 votes
1 answer
298 views

How do you limit the Pitch of the UE4 and UE5 camera which is on a Springarm in C++

I want to limit the pitch of the Player camera, which is connected to the spring arm attached to the player capsule. I want to do this in C++ rather than Blueprints. Does anyone know how to implement ...
emorphus's user avatar
  • 101
0 votes
1 answer
121 views

There are no body properties in Cinemachine's virtual camera

Why are there no body properties in Cinemachine's virtual camera? Unity version: 2021.3.11f1 Cinemachine Version: 2.8.9
Dhruv Agarwal's user avatar
0 votes
2 answers
218 views

Picture-in-picture in Unity

This is my first post here and I'm not too experienced with Unity, so keep that in mind. I am working on a project (a virtual streaming app specifically) where I have four cameras that the user can ...
zenzicubic's user avatar
0 votes
0 answers
202 views

How to render and interact with a seamless wraparound world map, in the style of e.g. Civ 5, in Godot 3?

I asked a similar question on the Godot subreddit but I want to ask here as well in hope of getting more detailed/different answers. I'm making a world map for a turn-based tile-based 3D strategy game ...
bluegreen1024's user avatar
1 vote
1 answer
815 views

How to calculate screen space UV coordinates from a specific camera

In Unreal Engine 4.27 I am currently trying to create a material (shader) that maps a texture onto a quad using the screen space coordinates from a specific camera. If I am using the current active ...
Benjamin Danger Johnson's user avatar
0 votes
1 answer
55 views

SDL2 - Camera only scrolls in x direction, but not y direction

I'm following along with the LazyFoo tutorial to create the basis for a simple arcade space shooter. I'm trying to get the sprite moving through the map while being tracked by the camera. The code I ...
Kevin Shaughnessy's user avatar
0 votes
1 answer
317 views

How to make a concisely, elegantly, and human-friendly Quaternion camera?

I have spent three weeks struggling with the quaternion camera! Now I have two Implementations. One has some kind of gimbal lock issue or something like that. Another one is totally anti-human ( I ...
potter john's user avatar
0 votes
1 answer
86 views

Move player towards screen

I've got a fixed projection perspective camera with a vertical FOV of 70 deg and rotated 45deg on Y axis. Player movement is along Camera's X axis (right/left), Z axis (front/back), Y axis is set to 0....
michaeltintiuc's user avatar
0 votes
0 answers
144 views

Setting glOrtho and glViewport so top-left of window has coordinates (0,0)

I haven't used OpenGL for a long time and have trouble setting up a 2D screen where the upper left window coordinates are (0,0) and the width and height of the ...
stuv_2028's user avatar
1 vote
2 answers
51 views

Detecting the avatar's position in relation to the camera's angle

How to detect the avatar's position in relation to the camera's angle. I want to detect whether the camera is facing the avatar's lef, right or back side. What's the best way to do this?
利维坦's user avatar
1 vote
1 answer
537 views

How to achieve 2.5D billboard sprite effect? (Don't Starve-like)

I'm trying to re-create the same effect of sprites/billboards that all entities in a game such as Don't Starve have. What is the best way of doing this in Unity? Certain things come to mind: Have a ...
caleidon's user avatar
  • 561
0 votes
1 answer
149 views

How do I accomplish viewing a 2D game board in 3D space?

So I'm making a 2D board game in 3D space and I don't want to use paper2D because I'm not really using sprites. What I want is to be able to make a grid of cubes positioned such that I can have a ...
Josh Sanders's user avatar
0 votes
2 answers
336 views

Game Maker Studio 2 Camera Jitter

I am trying to follow an RPG tutorial. I used the code for the camera following from there, but in my case for some reason all sprites jitter every time the camera moves, and also when some NPCs move. ...
nadiavi's user avatar
  • 23
0 votes
1 answer
232 views

Why does pulling the camera back in a 2D game not affect ortho size?

I have a 2.5D game. I have multiple layers of objects to simulate parallax, and for maximum flexibility, I am using Unity3D to create it. I have "Free Aspect" selected. I have an ...
user15916373's user avatar
0 votes
0 answers
32 views

Adding Z rotation to XY rotation without polluting the result

For context, I'm trying to make a 3rd person space game. The spaceship orientation is determined by the camera orientation. I also want to be able to control the roll of the ship(in my case, that is ...
Neo_verbatim's user avatar
0 votes
0 answers
113 views

Camera moving weirdly in godot

Camera moves like a zigzag in godot and makes me very uncomfortable I tried several solutions including how to fix jitter videos and an addon but none seemed to fix the problem I use an interpolated ...
Stanery Man's user avatar
0 votes
0 answers
58 views

How do I implement a camera orbit from scratch?

I'm doing my own small game engine from scratch and needed to orbit my camera around about the origin but I have no Idea how to do that. All I can find on the internet is how to use camera properties ...
MiguelP's user avatar
  • 101
0 votes
5 answers
322 views

When moving the "camera" should one move the projection matrix or move the world?

I'm making my own game engine as an exercise and I've gotten really confused with what I've read so far. When I want to move my camera do I simply just move the world or move the position of the ...
MiguelP's user avatar
  • 101
0 votes
1 answer
33 views

How to do local mirroing of object from the camera point of view?

I would like to render an object as if mirrored but on its own world position and with a mirrored orientation being camera view dependant. Something like the billboarding but keeping the 3D shape and ...
philB's user avatar
  • 99
0 votes
0 answers
364 views

How to limit camera rotation angle

I want to rotate my camera horizontally around the object 360 degree and want to limit my vertical rotation from -45 to 45 degrees. I have found some solution over internet but none of them are work ...
Zishan's user avatar
  • 7
0 votes
3 answers
337 views

"There is no Camera attached to the Game Object" error

I moved my Visual Scripting from an embedded graph into a State Machine graph as a file. Suddenly started getting this error... MissingComponentException: there is no Camera attached to the gameobject ...
kanamekun's user avatar
  • 359
2 votes
1 answer
765 views

How can I achieve a similar look to this "2.5D"-ish art style?

Recently I came across a game concept (New Game Plus @ Superflatgames) that used a very interesting "2.5D" art style where the world is in 3D and the characters & objects are in 2D (see ...
Charanor's user avatar
  • 7,750
0 votes
1 answer
803 views

How to calculate camera view matrix from world transform, specifically the orientation?

In my engine, camera is just any other object in the scene. It has a transform -- position, rotation (quaternion), and scale (ignored for camera view matrix). I want to convert this to the camera's ...
Gasim's user avatar
  • 189
0 votes
0 answers
87 views

Keeping speeds of camera & mouse movements the same on drag in Unity

So, I am working with Unity's new input system and I have been able to set up movement on the camera so that the user drags the camera around with the middle mouse button. However, there is a parallax-...
ACour008's user avatar
1 vote
1 answer
334 views

Correct camera transformation for first person camera

I am making a camera in openGl and I am having troubles with first person camera. So I had a few versions of camera transformation and all of them had their own problems. So at first, I was doing ...
Žarko Tomičić's user avatar
0 votes
1 answer
89 views

Find out (general) orientation of cube faces with rotated and translated camera

I have the following problem. I have a camera that is initially looking at a cube. The cube is with center at (0, 0, 0). The camera that is initially on (0, 0, 60). The camera can rotate and translate ...
Teodor Dyakov's user avatar
1 vote
0 answers
95 views

Camera not rendering to rendertexture inside class

I have an issue where I created a class to generate a lightprobe atlas texture for me, but the camera don't seem to render properly into teh rendertexture, I have no idea why... someone can help me ...
user29244's user avatar
  • 327

1
2 3 4 5
24