Skip to main content
Share Your Experience: Take the 2024 Developer Survey

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
1 vote
1 answer
82 views

how to to make a camera like scooby-doo game

I'm trying to make a camera like scooby-doo game. Example: https://youtu.be/mkxm7-uw_uc?si=VpywD2wHJGAChw9N&t=238 It seems to be a 3rd person camera but its not always attached to the player. Its ...
anderlaini's user avatar
1 vote
0 answers
50 views

How to calculate a direction vector from a 3x3 rotation matrix?

I have a dataset containing 2D images of telco towers and metadata. Each 2D image has 3x3 rotation matrix which provides orientation info about the drone when it captured the image. Now I have a 3D ...
Moiz Ghuman's user avatar
0 votes
1 answer
50 views

How can I make a camera follow an instantiated object at runtime?

I have an object meant to represent a player that I'd like to spawn in at runtime. Because it is instantiated at runtime, I'm not sure about how to get the main camera in my scene to follow the ...
NJJ_002's user avatar
  • 47
0 votes
0 answers
22 views

UI Button is not working

I have a problem on the canvas. When I remove the camera in the FPS Controller player and UnChecked the FPS Controller it works but when the Camera is inside the the FPS Controller I can't click ...
Christian James Calambro's user avatar
1 vote
1 answer
35 views

how can I distance camera according to player speed?

How can I make the camera move further away from the player according to player's speed? So, the camera is at default distance, but when the player catches a boost (increases speed), the camera ...
jukvox's user avatar
  • 13
0 votes
3 answers
67 views

How to make camera follow player on Y+ axis only

My player is jumping on sticks, endlessly going upwards, and if they fall, it's game over. I want the camera to follow the player only when they move up (ie. only on Y axis), not down. If they move ...
jukvox's user avatar
  • 13
0 votes
1 answer
39 views

Camera rotation in TouchDesigner

I need help on something I'm struggling with very much. I am working on a TouchDesigner patch where I have a Camera COMP with rotation on x, y and z axes. I need the formulas to convert such rotations ...
Alessio Mastrorillo's user avatar
0 votes
1 answer
38 views

Lower Near Clipping Plane

I've searched everywhere and can't really find a good answer... Even with my near clipping plane set to 0.01 the objects are clipping too close. Tried to get a view where you can see it clipping a ...
Mashimaro7's user avatar
0 votes
1 answer
58 views

Mouse Ray Picking: Z-Coordinate of Projected vector (glm::unproject)

I've run into a curious issue when implementing ray picking in my game engine. It seems the Z coordinate of the Projected matrix has to be ever so slightly more than ...
Josh McCord's user avatar
0 votes
0 answers
54 views

Scrolling camera with a tile map stored in JSON and PNG

I'm trying to get a scrolling camera into my SDL2 game and I'd like some advice. The way I'm implementing my map is as follows: I use a tileset to build a map in the Tiled map editor, and I'm ...
Derek Kwon's user avatar
0 votes
2 answers
88 views

Why does everything I've made in Unity begin to vanish when I get close to it?

I've attempted looking into this via. the Unity Manual, and even posts on the Unity forum, although I've found nothing. I have already tried checking Occlusion Culling and general Object Culling. I've ...
Lee's user avatar
  • 1
0 votes
0 answers
38 views

Cinemachine camera does not switch when brain is outside main camera

I have a Main Camera object set up like the screenshot below: And another game object with Cinemachine Brain. So, this way the main camera works but the timeline cinemachine tracks doesn't switch ...
anderlaini's user avatar
0 votes
0 answers
34 views

How do you rotate a BoneAttachment3D during an animation?

I have a case where I want to rotate a bone that is otherwise controlled by an animation. The bone is the head bone of a humanoid skeleton. I have attached a ...
Escoce's user avatar
  • 141
2 votes
1 answer
695 views

Creating a new camera in 2D mode sets it as default, despite not being the main camera

I created a new camera in Unity's 2D mode, and for some reason it's being set as the main camera, despite not being tagged as such. The original main camera is in fact tagged as "main camera"...
Jimbojaggi's user avatar
0 votes
0 answers
37 views

The lighting result is wrong when switching scene in Unity

When I use SceneManager.LoadScene() to switch between scenes the result of lighting in loaded scene is wrong. However if I open the scene solely the lighting ...
Simp Guy's user avatar
0 votes
1 answer
63 views

Camera movement automatically tracking a tool over a surface

I need to create camera movement tracking the clipper hair like this: I already have a script for the movement of the tool. I'm using Snapping Player to the Surface of an Object of this pos How ...
Lưu Anh's user avatar
1 vote
1 answer
98 views

How do real time cutscenes work?

I want to code a real time cutscene editor in my engine but I couldn't find any pdf documents or websites explaining it in detail. Is the cinematic scene file loaded with instructions like ...
user23344561's user avatar
0 votes
2 answers
37 views

Trouble setting camera position in Unity

I'm attempting to set the camera position in Unity through code. I have a simple 2D game and there's not much programming so far. I've attached a script to the camera, and in that script I've added ...
Nightmare Games's user avatar
1 vote
0 answers
108 views

Good practices for making a manager class?

I found this post for designing a camera system the post mentions having a manager where you could register and set different cameras such as debug, player, script, etc and I kind of like this ...
Konjointed's user avatar
0 votes
1 answer
28 views

Camera not following the player after spawn

After my character spawns, the camera just stays in the same place. How can I solve that? Here's my code: ...
TheEpikDuck's user avatar
0 votes
0 answers
18 views

Switching between cameras in blueprints

I'm hoping that someone can help me, I have a blueprint called BP_NPC_Shop that holds some objects and a box collision, when the player runs over that box collision ...
Alestes's user avatar
0 votes
1 answer
72 views

How to achieve camera zoom-In effect and locking view during NPC Interaction in Unity

I am currently working on an interactive game in Unity 3D where, upon pressing the "E" key, the player character interacts with an NPC. During this interaction, I aim to implement a camera ...
Cezar P's user avatar
  • 45
0 votes
1 answer
111 views

How to achieve smooth camera dragging with the mouse in SDL2?

I am working on a 2D isometric perspective game using SDL2 and I would like to implement the ability to pan the map when the right mouse button is held down. I was wondering what is best way to set ...
lancen's user avatar
  • 33
1 vote
1 answer
57 views

Is it possible to add new waypoints to Dolly Track in Unity CinemachineVirtualCamera on the go?

I'm making a racing game "on rails" that utilizes generated map (similar to outrun). The map is made out of chunks that appear every time player crosses a Trigger area on the chunk that is 3 ...
NationalGeographicProgrammer's user avatar
0 votes
1 answer
71 views

Unity RB Controller Jitter on a Moving Platform

Brief Description: I have a RB based character controller that I want to move along with my Train platform (non physics based) when the player steps on it. Main Problem I manage to make the player ...
Vav Avagyan's user avatar
0 votes
0 answers
72 views

Get coordinates of clicked point on screen in model space

There is a 2D object located in the coordinate range -1 to 1. In world space, it is also located in these coordinates, but with a shift along the z axis. The actual initialization of the model, view ...
Ar4's user avatar
  • 1
2 votes
1 answer
61 views

How do I add a function to the sequence of functions which runs pre camera culling in Godot?

In unity you can do: Camera.onPreCull += OnPreCullCamera; void OnPreCullCamera(Camera3D cam){ //... } But in Godot I don't know what the equivalent is. How do you ...
Ethan's user avatar
  • 145
3 votes
0 answers
167 views

How to test for intersection of a cone with infinite camera frustum (no near/far plane)?

I have a given infinite camera frustum defined by four planes, each defined by a normal (left, right, bottom, top). From those planes we can also easily get the camera position and the view direction. ...
Lukas Kalbertodt's user avatar
0 votes
0 answers
30 views

Follow camera is not turning when the followed object turns

I need a camera follow script to chase a moving ball. I've attached the script below to my camera, but when the ball turns left and right the camera does not turn ...
Haseeb Ashraf's user avatar
1 vote
1 answer
229 views

I want to convert world coordinates into camera coordinates

In world space, I have an axis (eg. [-1, 0, 0]) and a point (eg.[2,5,1]). I also have a 4x4 viewmatrix. Now I want to transform that axis and point in camera frame. I am getting really confused. Does ...
Anmol Gupta's user avatar
0 votes
1 answer
385 views

Camera Calibration custom Model-View-Projection matrix in Unity?

Coming from this topic I have a Model-View-Projection Matrix obtained from a Camera Calibration method, from where I want to render the scene: ...
Bontempos's user avatar
0 votes
0 answers
243 views

Implementing Camera Movement and Rotation in 3D Game Engine

Apologies in advance for any mistakes on terminology, I'm really really new to this I'm completely new to 3d (and it's maths) but as a personal exercise I'm doing my own game engine that displays a ...
MiguelP's user avatar
  • 103
0 votes
1 answer
227 views

Why doesn't RectTransform.GetWorldCorners() employ any camera?

Typically, conversion methods from world to screen coordinates and vice versa use a camera to perform these calculations, so I'm wondering how does GetWorldCorners ...
Serg's user avatar
  • 383
1 vote
0 answers
61 views

How to know when should a webcam/phone camera refocus?

This is the code I use to display the camera's footage inside my app: ...
Tudvari's user avatar
  • 751
0 votes
0 answers
19 views

How to set up Unreal camera dimensions to export a book cover?

In the following image, you can see the camera settings of Unreal Engine. Suppose you have a scene. How can I setup the camera dimensions to match perfectly, and ready to export, an Amazon ebook ...
M.N.Raia's user avatar
  • 101
0 votes
0 answers
96 views

How do I move a camera around a tiledmap in Libgdx?

I have the following code for rendering a TiledMap and moving around a Texture representing the player on top of it and the camera is setup to follow the texture around. However, when I try to move ...
Sagnik Dutta's user avatar
-1 votes
1 answer
704 views

How to access webcam in Godot on non-Apple platforms?

When I search for how to access the webcam in Godot, I find the CameraServer, but the docs say: Note: This class is currently only implemented on macOS and iOS. On other platforms, no CameraFeeds ...
Cei's user avatar
  • 863
0 votes
1 answer
60 views

Rotating around 3D cube Camera Controller for Unity

I am Unity game developer with more than 2 years experience. I am working in a personal project, a mobile game for Android in Unity. I am trying to make a camera controller for a 3D Cube Game in Unity....
DamagedCyborg's user avatar
0 votes
2 answers
118 views

Hybrid perspective / orthographic projection

I'm trying to figure out how to setup camera projections such that they fulfill following requirements: main scene is rendered with perspective projection camera / viewport controls allow only zoom (...
skrat's user avatar
  • 173
0 votes
0 answers
26 views

VR Arms in Unity can't be seen through main camera

I am making my first VR game and when I put my arms out in front of me, the forearms and hands do not show or render. They can be seen through the in-game mirror that I have but not through the main ...
skimi's user avatar
  • 1
0 votes
1 answer
60 views

How do i put an entities x,y and z coordinates to a variable(?) in Blitz3D?

I'm making a TEST 3d platformer where the camera follows the player from above. Normally I would make the camera move at the same time when the player moved, for example: ...
Probes's user avatar
  • 1
0 votes
0 answers
346 views

3D Ragdoll, skinned mesh + three.js + cannon.js

I'm trying to develop a ragdoll from a skinned mesh, in three.js using cannon.js as physics engine. I'm struggling with a lookAt problem for bones. Let me explain the method I used. I made a skinned ...
stmaccarelli's user avatar
1 vote
1 answer
45 views

Clamp rotation of a follow camera when its target is falling

I'm using this camera script to follow a cube. The cube has rigid body with gravity enabled. There is a plane on which the cube moves. If it goes off the plane, the cube starts falling. However when ...
single arrow games's user avatar
0 votes
2 answers
153 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
122 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
88 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
29 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
93 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
2 answers
224 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
378 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
2 3 4 5
25