Skip to main content

Questions tagged [coordinates]

The tag has no usage guidance.

0 votes
1 answer
36 views

How are these two projection matrices related?

I have two 3D perspective projection matrices $A,B$ with standard projection parameters $k=\cot(\theta/2)$, where $\theta$ is the field of view, $n$ is the $z$-near value, $f$ is the $z$-far value, ...
Scene's user avatar
  • 157
3 votes
1 answer
46 views

What to do with the homogeneous $w$ during vector operations

As I understand it: In graphics, 3D vectors are usually represented as homogeneous coordinates by storing an additional $w$ component known as the weight. The vector is divided by $w$ to obtain the ...
Scene's user avatar
  • 157
0 votes
1 answer
29 views

How to achieve smooth max of two coordinates in a shader

I am trying to achieve a border effect to a square tile on a xz plane. I am using max of coordinates x and z to achieve that. Here is my ShaderLab code: ...
hungry91's user avatar
0 votes
3 answers
90 views

Texture coordinates

Consider the square shown below on the left, which has been textured with the image shown on the right. What are the texture coordinates of the vertices a, b, c, and d? Does anyone know how to answer ...
ODA's user avatar
  • 1
1 vote
1 answer
247 views

Convert between screen and world coordinates in isometric 3D

I'm working on a a simple 3D scene in WebGL. The purpose is to: Implement an isometric viewing angle in orthographic 3D Translate between XY screen coordinates and XY world coordinates Codepen: ...
Candleout's user avatar
  • 127
0 votes
0 answers
84 views

Computer Graphics Previous Year Question asked in UGC NET 2021

What is the transformation matrix M that transforms a square in the x-y plane defined by (1, 1)T (-1, 1)T (-1, -1)T (1, -1)T to a parallelogram whose corresponding vertices are (2, 1)T (0,1)T (-2, -1)...
Rajesh Prajapati's user avatar
2 votes
1 answer
2k views

How to convert from world coordinates to camera coordinates

In the world coordinate system, there are objects with rotation values rx1,ry1,rz1 and position values px1,py1,pz1. Similarly, ...
taichi's user avatar
  • 123
0 votes
0 answers
19 views

Automate Image resize, scale, position for best quality (size)

I have a process where a web user selects a photo for a profile image. User is then presented with a canvas to zoom, rotate and move their image within a square viewport. Once satisfied, the user ...
johnw182's user avatar
  • 101
0 votes
1 answer
563 views

Understanding orthographic projection matrix clip coordinates

I'm confused about what orthographic projection matrix outputs. Based on what I know so far, orthographic projection matrix converts vertexes in eye coordinates into clip coordinates. But what exactly ...
Jimmy Yang's user avatar
0 votes
1 answer
287 views

How to get coordinates of mouse after left mouse button is released after drag in OpenGL?

I want to get the coordinates of my mouse after the left mouse button is released after being dragged in OpenGL? I am new to this and wanted to know how I can implement it.
Arjan Singh's user avatar
  • 2,511