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
1 answer
14 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 ...
user avatar
0 votes
1 answer
27 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. ...
user avatar
  • 13
0 votes
1 answer
80 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 ...
user avatar
0 votes
0 answers
28 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 ...
user avatar
0 votes
0 answers
43 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 ...
user avatar
0 votes
0 answers
23 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 ...
user avatar
  • 101
0 votes
3 answers
58 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 ...
user avatar
  • 101
0 votes
1 answer
30 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 ...
user avatar
  • 47
0 votes
0 answers
62 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 ...
user avatar
  • 7
0 votes
0 answers
23 views

I am trying to make a multiplayer game, and my 2d sprite shows up when I click play normally, but not when I press build and run?

When I press the play button at the top of the screen, I can see my sprite, but not when I press build and run. Why is this? (enter image description here
user avatar
  • 1
0 votes
3 answers
67 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 ...
user avatar
  • 207
0 votes
0 answers
22 views

Virtual Camera with Collision

I am using a VirtualCamera2 Actor for recording sequences using iOS devices + Xbox Controller as input devices. Everything works well except for collision. I tried to add it in many ways but it doesn'...
user avatar
0 votes
0 answers
6 views

Calculate focal length and aperture for constant DOF

I am using a Unity camera with a DOF post-processing script attached. This allows me to set the depth of field by updating : Distance to object Aperture Focal length I would like to set a depth of ...
user avatar
0 votes
0 answers
22 views

Need help Slerping position and rotation for a death cam

Issue I have 2 scripts on my camera, one for following the player ( FollowTarget.cs ), and one which is supposed to, over time, Slerp the camera's transform position and rotation around the player on ...
user avatar
2 votes
1 answer
270 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 ...
user avatar
  • 7,650
0 votes
1 answer
102 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 ...
user avatar
  • 189
0 votes
0 answers
66 views

Multiple cameras PostProcessing render in a different order on iOS and Android

I have a setup below: Unity 2020.2.1f1 Post Processing Stack v2 (2.3.0), Color Grading with High Definition Range, Gamma Rendering Cinemachine Camera+Brain PostProcess (Depth 0) Cinemachine Camera+...
user avatar
  • 2,502
0 votes
0 answers
16 views

Can I get an Unreal CaptureComponent to output the pixel differences between the current capture and the previous?

My current set up in UE captures images through this conventional pipeline: Capture component -> Post process material (specified in component options) -> Render Target What I need is to be able ...
user avatar
0 votes
0 answers
29 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-...
user avatar
0 votes
1 answer
54 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 ...
user avatar
0 votes
1 answer
28 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 ...
user avatar
0 votes
0 answers
59 views

How to use glLookAt() to rotate around an object orbit

I've been struggling with a school project in which I'm supposed to create a camera like the one in Blender. One of the steps I need to implement is to make the camera rotate around an object's orbit ...
user avatar
  • 1
1 vote
0 answers
25 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 ...
user avatar
  • 197
0 votes
1 answer
252 views

How to make camera smoothly follow behind player in Unity 3D?

Following the advice posted here, I made a camera that follows a player behind with: ...
user avatar
  • 227
0 votes
0 answers
54 views

Networking a custom camera follow script with Mirror?

So I've got a pretty fleshed out game developed where player balls just fly around and attempt to smash one another. It's good fun in theory, but the multiplayer mechanic has proven very difficult. ...
user avatar
1 vote
1 answer
173 views

Vertex Displacement Shader Graph With The Camera Moving Issue

I have a foliage sway shader, that works well. But when the camera moves the vertex displacement stops: And the weird thing also is that if I move the camera to the right nothing seems to happen, ...
user avatar
0 votes
0 answers
126 views

Rotate the Camera with the Character on Dynamic Gravity UE4

I’m trying to create a world which is not a flat plane on the X and Y axis, and so it will have dynamic gravity. I have been capable of rotating the Character around a Sphere (for testing) by creating ...
user avatar
0 votes
0 answers
39 views

Isometric Camera Angle Changed When Running On Phone

I want to make an isometric camera for my game, I did it by parenting the camera to an empty object, then adjusting the rotation. It works perfectly in Unity, where the game view shows exactly what I ...
user avatar
  • 1
1 vote
1 answer
34 views

change camera angle in unity2d

I am creating a 2d top-down game in Unity where you can press a button and the camera will cycle into different angles, mainly forward, backward, left & right. I have gotten the cycle to work by ...
user avatar
0 votes
0 answers
35 views

Moving Camera with script

Hey all I am trying to make a scene where the player is experiencing a plane crash however when I try and move the camera with transform. Translate the camera is not moving. The plane moves along as ...
user avatar
  • 137
0 votes
0 answers
25 views

Fitting to camera (perspective) an arbitrary 3D model import

Is there a general method for resizing an arbitrary 3D model imported at runtime to fit the camera boundaries (i.e. fill 80% or so) ? For example, some 3D scanned models often do not have the model ...
user avatar
  • 174
1 vote
0 answers
53 views

How do I make a mask that dictates which layers are visible in Unity?

I'm trying to create an effect where the player progresses from one level to the next by a portal appearing as a rip in the fabric of time, and the portal grows until it'd half the screen, then ...
user avatar
  • 75
0 votes
0 answers
102 views

Cinemachine Free Look Camera control with joystick for mobile devices

I am a beginner in Unity and I am using Unity 3D Game Kit assets. I want to control Unity 3D Game Kit Cinemachine Free Look Camera with joystick for a mobile game. I am using Unity Input Manager.
user avatar
2 votes
1 answer
80 views

How do I view the test going on in Unity Playmode?

I'm working on a new project using TDD, and I'm doing a good job of checking everything from the ground up including checking physics interactions on instantiated prefab, but I've gotten about to the ...
user avatar
  • 75
0 votes
1 answer
159 views

Need help with locking the Y axis on camera

I am working on a small 2D platformer in Unity for my school project and I would like to lock my camera on Y axis (so it can move horizontally, but when the character jumps it doesn't follow the jump)....
user avatar
0 votes
0 answers
101 views

Unity Pixel Perfect Camera - parented sprite's children begin to jitter

I currently have a setup using the pixel perfect camera, and found that child sprites moving their localposition begin to jitter if their position is in a decimal point over the hundredths. Designing ...
user avatar
0 votes
0 answers
93 views

Cinemachine lock on

I'm using Cinemachine for a free look 3rd person camera and a virtual camera for a lock on cam. I already have switched Cinemachine brains and movement types done, but I need the player to face the ...
user avatar
0 votes
0 answers
72 views

How to place my camera to fit a 3D GameObject?

In Unity Editor, when I select a game object and press 'F', the camera will focus on it without rotation and this game object is filled in the view. I would like to know how the the camera position is ...
user avatar
  • 101
0 votes
2 answers
227 views

Smooth rotation to target with separate yaw, pitch and roll smooth times

I'm trying to write a camera script in Unity that would smoothly rotate the camera over time towards the desired rotation, with separate input parameters for yaw, pitch and roll smoothing, and I can't ...
user avatar
  • 1
0 votes
1 answer
43 views

LWJGL2 Camera Movement Stutter

I'm having quite some trouble with camera stutter in my LWJGL2 game. The stutter only occurs when moving the camera. When it stands still, the scene is rendered smoothly. I could verify that by ...
user avatar
0 votes
0 answers
15 views

Why While using Aiming multiple targets by Virtual Camera Dolly and Zoom effect behaving strange? ( Unity )

I am tracking two cubes and I want the camera to always keep them in the frame, as far as they are from each other. For these purposes I use Group Composer Mode in Aiming settings on Virtual Camera. ...
user avatar
0 votes
1 answer
23 views

Unity split camera without refit the center

Before attempting to mark this question as duplicate or send me here, hear me out: I was trying to make a coincidence rangefinder effect, say I have a view like this: In a coincidence rangefinder, it ...
user avatar
0 votes
1 answer
68 views

How do I change from virtual camera (e.g dolly track) to main camera?

I want to show a cinematic view of my scene and then be able to play it with the camera attached to my player. I have set up a dolly track and virtual camera and all works fine but I can't then play ...
user avatar
0 votes
0 answers
52 views

Unity Mock HMD not rendering with ARCore installed

I am trying to create a mobile vr game with ARCore in Unity for positional tracking, and I can't get the Mock HMD to render. I tried the Cardboard SDK but it didn't work so I am trying to use Mock HMD....
user avatar
  • 1
0 votes
0 answers
10 views

Camera with controls in Unity with C# [duplicate]

So I have been making a camera in Unity for my first-person game. Currently, I have gotten the camera to be able to look around, but the camera has two issues. The first, and more pressing, matter is ...
user avatar
0 votes
1 answer
55 views

How do I track 2 lights in real time with a camera and send it to a phone in Unity?

I am trying to track 2 lights and send that data to Unity for VR controller tracking. How do I get started? Do I make an app that communicates with Wifi or something? And how do I detect the lights? ...
user avatar
  • 1
2 votes
1 answer
582 views

Spritesheet with unstable width

I'm working on my 2d game engine using HTML5 and Canvas. I have a sprite sheet, and each frame of this sprite sheet has its own size. Considering that the Viewport is following this sprite sheet (in ...
user avatar
0 votes
0 answers
61 views

Arcball camera panning - how to apply mouse coordinates to position regardless of orientation

I have an Arcball camera with panning and rotation working properly; however, panning does not work as intended after rotation is happening. Here are my panning and rotation functions: ...
user avatar
  • 189
1 vote
1 answer
97 views

How to rotate a 3D object based on stick Input and the normal of the ground's surface? (Unity3D)

I am making a game where I want to view an object from any angle and use an analog stick to rotate it according to this input and the surface the object is currently resting on. Here's a visualization ...
user avatar
2 votes
1 answer
93 views

What kind of math is used by this camera panning script?

I'm not fluent in English so I apologize in advance. I have found a source code in order to pan camera by touch - here it is: ...
user avatar

1
2 3 4 5
24