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
1answer
11 views

(While using a cube map) box-like textures appearing around my scene whenever I move the camera

I've been learning about cube map and I implemented one into my program. It seemed to work well until I started moving the camera around the scene and zooming out. As you can see in the attached gif, ...
0
votes
0answers
19 views

C++ OpenGL Arcball controlls 'flipping direction' after crossing any of the axes

hello graphics developer... I want to implement something like the mouse rotation controls found in 3D modelling software like MeshLab Here is the code in the mouse callback: ...
0
votes
0answers
29 views

Does Unity provide access to a camera's Viewport Rect in a shader?

If I, for example, set a camera's Viewport Rect to W:0.5 H:0.5, is there some way to access that in a shader? Is there some way to extract it from unity_CameraProjection? I thought about comparing ...
0
votes
1answer
16 views

URP cant get Pixel Perfect Camera to work

I am currently using URP to add bloom to my particlesystems. The problem im facing is that I cant pixelate the game. I have tried to implement several methods to post pixelate (via shaders and render ...
0
votes
0answers
24 views

How can I instantiate enemies in a 2D game at a set Viewport Position before my camera enters the room? (Or alternative solution!)

I'm currently working on a 2D game where I'm trying to pre-populate my level with encounters, I want the enemies already in the room when the player enters. Right now the encounter is triggered upon ...
1
vote
1answer
27 views

How to isolate a child object from parent's movement? (Unity)

I currently have a very basic scene that includes a platform (ground), a capsule (player), and a camera rotator (main camera is mounted on it). The object hierarchy is the following. This hierarchy ...
0
votes
0answers
18 views

How to do in Godot 2D: game screen in one viewport and minimap in another. Different sprites on each

The second day I google the tutorials, but nothing comes of it. All tutorials link to splitscreen demo, but it is made under the second Godot and does not work in the third. The problem is this: I ...
0
votes
1answer
31 views

How to convert isometric screen space coordinates to top-down world coordinates in Unity?

I have 2d grid in a 3d world facing the world up. My camera is setup so it shows an isometric view of the grid. I want to get the player's input in screen space (cyan) and find the same point on the ...
0
votes
1answer
24 views

Moving a top-down camera while keeping its height constant

I'm currently writing the script for the player to explore the plane below. The camera view is set to be slightly rotated as to look down. And I have set the code to make the camera move. This is ...
0
votes
1answer
53 views

How do I make my level scroll side-to-side as the player moves?

I am trying to figure out how can I make a side-scrolling view in Pygame. If I am moving right or left, I want the portion of the level shown on-screen to shift to follow the player character. Here ...
0
votes
0answers
25 views

How to define a weak-perspective camera in openGL?

I know how to define the perspective camera as well as weak-perspective camera in the Math. But how to define a weak-perspective camera () in openGL?
0
votes
0answers
46 views

Unity: Dimensions of color surface does not match dimensions of depth surface

I am receiving the error, "Dimensions of color surface does not match dimensions of depth surface" whenever I attempt to use my screenshot code, without any callstack or anything further insight of ...
0
votes
1answer
26 views

Moving camera vertically only after player is too high or too low

In my 2D platformer game, I find it very exhausting for the player if the camera follows the player all the time. So, I looked up for some tricks to make camera movement feel more natural. The first ...
0
votes
0answers
20 views

How to make a fixed angle relative between player and camera when player traverses around sphere

I tried a lot of things as of now but nothing worked for me. This was my latest approach but the camera always stays at a fixed angle relative to world space and not to my player. ...
0
votes
1answer
31 views

How to know when the cameras change?

I'm working on a script that uses raycasting from the camera's perspective to see what the player is looking at. Pretty standard stuff. The only question is, how to reliably find the camera? ...
1
vote
0answers
78 views

Handling zooming in for a spot-the-difference game in different screen resolutions

I am creating a 2D game for Android as a school project. The objective of the game is to find differences between the top image and the bottom image. I have 1 main camera, which views the entire ...
0
votes
0answers
21 views

How can I apply a fullscreen shader on a specific layer?

How do I apply a full screen shader on one layer of objects using LWRP/URP and shader graph? I want to pixelate only my particlesystems, but nothing else. I want the effect of pixelcamera, but only on ...
1
vote
1answer
58 views

Third Person Flying Camera

I am having issues creating a third-person camera for my Rogue Squadron (N64) like game. First I have posted my issue on the official Unity Answers site here. So far my ship is behaving as I want and ...
0
votes
0answers
14 views

How to fix “stretched” textures in LibGDX?

I'm drawing textures using SpriteBatch and all textures are stretched. Previously I was using Stage and StretchViewport and back then everything was fine. My code: ...
0
votes
0answers
30 views

Camera follows the player, but rotates around the wrong point

I'm trying to make the camera follow the player wherever they go AND rotate when I click the right mouse button and drag the mouse. The camera follows the player and rotates but the rotation isn't ...
0
votes
2answers
37 views

World rotation independent mouselook

Preface: I am terrible at using quaternions right. I wanted to create a world rotation independent mouselook script. That is, no matter the 'down' for the camera, the mouselook should feel natural to ...
0
votes
0answers
16 views

How do I get my camera movement fixed?

My problem is that my game is made for a 320 by 320 window. When I try to upscale it I run into problems. The camera's movement is all wrong. When it snaps to a new position it snaps to a grid ...
0
votes
0answers
36 views

How do I create cinematic (trailer like) shots of my game?

Background We are in the midst of developing a trailer for our game. It is a 3rd person adventure platformer. As such, the camera is an over the shoulder position, which is great for gameplay, but ...
0
votes
0answers
31 views

Rigidbody appears to jitter when placed as a sibling to a First Person camera

In my game, the Player can pick up an object (which gets parented to the first-person camera), or the player can push an object (which is parented to the player, but not their first-person camera). ...
0
votes
0answers
9 views

World coordinates on vertical grid game for different aspect ratios (Unity) [duplicate]

new to game development and unity so hopefully someone can help. I want to make a 2D portrait mobile game that will have a grid of constant size where units can move on in Unity. This should support ...
0
votes
0answers
23 views

Java clicking on tiles detection

I am making small isometric game, where I want to do something when user clicks a tile. I can simple do it by mouse location, but I want to be able for zooming and moving camera. It will be 2D game ...
0
votes
0answers
9 views

unity main camera align with view error

When I'm trying to to align the main camera with the scene view GameObject -> Align with view, I get the following error: transform.position assign attempt for 'Main Camera' is not valid. Input ...
0
votes
0answers
30 views

How to prevent weapon clipping WITHOUT camera stacking?

This is a FAQ, and answers involve camera stacking. I am not using a SRP. I do not want camera stacking as various post-processing instructions (e.g. FXAA, MSAA, etc) are all done on the active camera,...
0
votes
0answers
27 views

In Unity, how to hide objects from specific cameras without using Layers

The situation is that there are multiple players that can collect items. When a player collects an item, the item will disappear from that player's screen but still be visible to other players. I know ...
0
votes
0answers
32 views

Make 2d camera rotate around the player

I'm making a simple 2d javascript engine based on a scene graph (all game objects are containers whose children live inside their parent's coordinate space). My camera implementation works by setting ...
0
votes
1answer
56 views

Simplifying Camera Strafing

I have a camera that follows the position and direction of the player. These are updated using spin and velocity. The velocity is updated like so: ...
0
votes
4answers
194 views

What causes this z position change?

This is a follow-up on the following thread. I'm applying a code that will move an object just outside the camera's frustum. I have used the same code in other projects, and it worked fine. However, ...
2
votes
2answers
39 views

Multiple cameras using a single skybox with same perspective

I am using the enviro package for weather and to have a moving sun in the background. I'm building an installation with 3 screens and I want to have the sun track across the screens. However what I ...
0
votes
2answers
110 views

A two player game with a split screen

In the antique game spy vs. spy, two players play on a single computer. The screen is split, with each half showing the viewpoint of one player. Is it possible to create such an effect in Unity? The ...
0
votes
1answer
185 views

How do I properly use Unreal's Lens Distortion plugin?

I am trying to use UE's LensDistortion plugin (seems like it's bundled with the engine but only put to use in the Compositing sample project), and following the same workflow as the sample. ...
1
vote
0answers
40 views

Follow Camera to Two objects at different time

I am developing simple 2D game in unity. I am locked with the camera movement for last two days. I've camera script that is working as follows: Follow the player to X and Y direction If player stops ...
0
votes
0answers
17 views

Import blender camera with key frames to unity?

I am wondering if I can take a camera tracked camera from blender and import it into unity. Is there any way to do this? Please let me know! Thanks in advance.
0
votes
0answers
57 views

Camera looking around with mouse - Unity, C#

I am building a script in C# for camera logic in Unity, the camera is supposed to follow the player (a 3rd person character) around and the user should be able to look around using the mouse, so far ...
0
votes
1answer
98 views

What program was used in Kojima's Death Stranding to create the 3D scans of people? [closed]

I've been unable to find out what program Hideo Kojima used to create his 3D scans of people in his game Death Stranding and presumably Metal Gear V as well. Here is a video of the scanning in ...
0
votes
0answers
95 views

How do I prevent camera jitter when rotating the player - Unreal?

This is a problem that seems to have no reasonable answer anywhere around, yet is a commonly needed aspect of developing game mechanics. Context I'm developing a traditional 3rd person character ...
0
votes
0answers
25 views

Fix camera vector

What I am doing wrong, I have transformed the world camera's vectors with the camera matrix but when I am doing several rotation with the camera ingame, the vector are messed up, they don't move me ...
10
votes
1answer
161 views

Möbius effect in Unity

This morning I've seen the following animation on Twitter. It is a kind of Möbius strip effect. It's cool! Isn't it? So I've decided to build something similar using Unity, just for fun. I want to ...
0
votes
0answers
91 views

Unity 2D Cinemachine weird behavior for non rectangular confiner

I have been trying to emulate a sort of Megaman X4 way of following the player around platforming levels, where the camera is confined to certain boundaries of such levels. However, all the tutorials ...
0
votes
0answers
119 views

Unity Perspective Camera Width & Height In Visible World Units

I'm attempting to create 90 degrees top-down scenes where I'm working with a 4k or larger camera. What I'm trying to do is drop a script on the main camera and have a debug line that updates the main ...
0
votes
0answers
32 views

Parallax effect jitter in libGDX

Basically I'm using this ParallaxCamera class to create the effect in my game, but upon movement, the layers "wiggle". This is especially noticeable when the camera is moving slowly. I have fixed the ...
1
vote
2answers
146 views

Why does my first person camera attached to a rigid body vibrates?

I'm trying to make a first-person character with a rigid body. I need a rigid body because I want to add areas where the gravity comes from different directions so I also need to rotate the character ...
6
votes
0answers
266 views

How does a game like Enter the Gungeon handle forward and backwards movement with their orthographic set up?

So I've been scratching my head at this problem for over a week now, and would love some insight from anyone who might know a bit more. In my game I have the floor flat on the X/Z plane with walls/...
0
votes
1answer
69 views

Moving my character/camera makes environnement jerky

I'm learning to make a Tilebased game with Unity and for that I use the Zelda alttp assets. I just have Tiles, a Camera and a moving Character with a rigidbody2D and a CircleCollider. When the Camera ...
0
votes
2answers
32 views

How do I get my scene view back to 0 or whatever it is by default?

All my tiles/sprites have 0 as their position on the Z axis, except my main cam which has -10. For some reason I suddenly couldn't zoom in without everything disappearing, I switched to 3D view to ...
0
votes
1answer
31 views

How to Bring the Scene View Camera Controls into Game View

I've got a scene with a big sphere in the centre (the Earth) and a lot of smaller spheres around (the stars). Above is a screengrab in Scene View with the camera in the Front View position. I really ...

1
2 3 4 5
21