Questions tagged [perspective]
An approximate representation, on a flat surface, of an image as it is seen by the eye.
125
questions
0
votes
0
answers
22
views
The perspective projection change the sign of z
I have an issue, I am drawing a cube in 3d. I am using z-buffer for hidden surfaces removal.
But the hidden faces are drawn (i see the inside of the cube). After some research And I found that this ...
0
votes
0
answers
26
views
Cube gets squashed after applying perspective matrix
I'm trying to apply perspective to a simple, rotating cube. I created a perspective matrix using glm library, multiplied it with ...
2
votes
1
answer
125
views
Approach to rendering a planet texture
I'm making a space game using Godot 4, and I need to capture the "hugeness" of planets. I figured I'd use spheres with textures on them for planets. The textures have identifiable ...
0
votes
1
answer
94
views
Setting up perspective projection in OpenGL
I'm trying to set up perspective projection in OpenGL but it doesn't work
...
0
votes
2
answers
62
views
Name of 2D Image From Above
What do you call a 2D game where its view is directly from above looking down?
Does the art style have a similar name? (Ie isometric is a art style, but not the art style name I am after.)
When I use &...
0
votes
0
answers
43
views
Manual calc of perspective projection and getting point on the screen
I'm need to draw the red rect on the first vertex of gray platform.
To begin with, I draw a gray platform with a perspective projection and set it using gluPerspective:
...
1
vote
0
answers
45
views
How to Generate a Texture to Make an Obstructing Plane Appear Invisible in a 3D Scene?
I have a 3D scene with a camera. Between the camera and the scene, I have a plane with arbitrary orientation. This plane obscures a portion of the scene from the camera’s perspective (anything behind ...
3
votes
1
answer
344
views
Changing the scale of a character and speed to match the perspective of a 2D background while traveling along the Y axis
I am making a 2D point and click game, just for fun.
I want to create some sense of perspective, so I am trying to change the scale of the player as he travels along the Y axis. Obviously, the speed ...
0
votes
0
answers
43
views
Perspective projection distortions
I'm building my own engine using python and pygame however my cube model is not able to be displayed correctly. This is my result after applying translation, scaling and projection matrices:
...
0
votes
1
answer
93
views
When device is put in landscape mode, a cube in the corner of the screen no longer appears to face forward
I've made a cube in the corner of my screen always face forward:
transform.rotation = Quaternion.LookRotation(Vector3.forward);
If I hold my iPad upright, in ...
0
votes
0
answers
75
views
Include camera movement and calculation in the 3D game
I was sent here by softwareengineering.stackexchange.com.
I am writing a WinForms .NET application using C#. I use SkiaSharp for drawing for performance reasons.
I can already create a cuboid, rotate ...
0
votes
0
answers
115
views
Is it okay to combine 2 "perspective genre"?
I've just started making a RPG and I'm thinking about putting 2 kind of "genre" perspective, like having a Top-Down gameplay for the entire storyline and putting a 2D fighter for the battle ...
-1
votes
2
answers
337
views
3D image projected to 2D image
We know real world images are 3D.when we projects image from real world this image projects into 2D image where Z component is constant or zero. But when capture the below image which seems to 3D(z ...
1
vote
0
answers
31
views
Perspective of a Point Light
I'm trying to calculate shadows by projecting the silhouette of each object seen by the light source.
(The shadows are just going to go on planes.)
To get each silhouette I take a snapshot from the ...
1
vote
1
answer
623
views
Understanding the math behind perspective matrix in OpenGL
I've been trying to figure out the math behind perspective matrix for 2 weeks now but I'm failing badly. I understand the theory behind the perspective matrix but I am not sure how the math works.
The ...