Questions tagged [orthographic]

Orthographic projection (or orthogonal projection) is a means of representing a three-dimensional object in two dimensions.

Resources:

315 questions
16
votes
1 answer

Changing From Perspective to Orthographic Matrix

I have the scene with one simple triangle. And i am using perspective projection. I have my MVP matrix set up (with the help of GLM) like this: glm::mat4 Projection = glm::perspective(45.0f, 4.0f / 3.0f, 0.1f, 100.0f); glm::mat4 View =…
IanDess
  • 657
  • 2
  • 11
  • 26
14
votes
1 answer

Difference between glOrthof and glViewPort

On OpenGL-ES i'm confused on what the difference is between setting glOrthof() glViewPort() GLU.gluOrtho2D() with it's respective parameters. Since I believe it's all setting the part you can see to the specified coordinates (width, height).…
user717572
  • 3,626
  • 7
  • 35
  • 60
12
votes
2 answers

Orthographic camera and selecting objects with raycast

I am running into a bit of difficulty selecting objects with the orthographic camera using the raycaster. Though, I have no problem with it when I use a perspective camera. The only thing I am changing when switching between the two is the type…
bobkingof12vs
  • 660
  • 5
  • 22
10
votes
1 answer

Circle clip and projection with D3 orthographic

I'm working on this and I'm having trouble with clipping the red circle elements as they appear on the globe even past the 90˚ clip angle. Also, is there a way you can apply the projection to the red circles, as in so it looks like they're on the…
Tom Stove
  • 177
  • 1
  • 7
9
votes
2 answers

Not understanding the gluOrtho2D function

I am not able to what gluOrtho2D() function is doing? Is it fixing the origin at some particular point on the OpenGL window or something else? This is because gluOrtho2D(1,1,1,1) fixes the origin at the middle of the window. If it is not fixing the…
asn
  • 2,408
  • 5
  • 23
  • 37
8
votes
1 answer

three.js - really strange behaviour with camera changes

I have developed a simple three.js application that renders a cube, and which have several buttons to set fixed camera positions. I have a demo of my code here: https://jsfiddle.net/ph0ropg7/9/ In my application I render a cube, and I can change to…
GLR
  • 1,070
  • 1
  • 11
  • 29
8
votes
4 answers

d3.js. Spinning globe with bars

I am trying to create spinning globe with bars like in this example. You can see my example here. And everything goes fine until bars go over horizon. I have no idea how to cut bars from the bottom when they on other side of planet. Anybody can…
zeleniy
  • 2,232
  • 19
  • 26
7
votes
2 answers

Switching from perspective to orthogonal keeping the same view size of model and zooming

I have fov angle = 60, width = 640 and height = 480 of window, near = 0.01 and far = 100 planes and I get projection matrix using glm::perspective() glm::perspective(glm::radians(fov), width / height, …
NikBond
  • 743
  • 1
  • 5
  • 20
7
votes
1 answer

Use Libgdx and TexturePacker with xxxdpi images get distorted

I'm an android developer, building my first game using LibGDX. After reading A LOT, there is still one thing I don't understand. I realize I should have one set of images, for the highest resolution 2560x1440 (For preventing ugly scaling up not…
Shirane85
  • 2,255
  • 1
  • 26
  • 38
6
votes
2 answers

Drawing Circles with cartopy in orthographic projection

I am trying to draw circles at a given geographical coordinate with a certain radius using cartopy. I want to draw using an orthographic projection, which is centred at the centre of the circle. I use the following python code for testing: import…
Bianfable
  • 237
  • 5
  • 13
6
votes
4 answers

unity3d (2d!) - Camera to centre on player, but never exceed "map" bounds

I am creating a game which has up to 4 orthographic cameras (for up to 4 players), which take up various amounts of the screen, depending on the amount of players. I have a script which controls all the cameras, setting their position relative to…
LairdPleng
  • 948
  • 3
  • 9
  • 28
6
votes
2 answers

Orthographic camera zoom with focus on a specific point

I have an orthographic camera and would like to implement a zoom feature to a specific point. I.e., imagine you have a picture and want to zoom to a specific part of the picture. I know how to zoom in, the problem is to move the camera to a position…
Alex
  • 10,869
  • 28
  • 93
  • 165
5
votes
2 answers

How to use OpenGL orthographic projection with the depth buffer?

I've rendered a 3D scene using glFrustum() perspective mode. I then have a 2D object that I place over the 3D scene to act as a label for a particular 3D object. I have calculated the 2D position of the 3D object using using gluProject() at which…
chris
  • 1,731
  • 4
  • 26
  • 33
5
votes
1 answer

Understanding how glm::ortho()'s arguments affect vertex location after projection

After searching many pages, glm documentation, tutorials...etc, I'm still confused on some things. I'm trying to understand why I need to apply the following transformations to get my 800x600 (fullscreen square, assume the screen of the user is…
Water
  • 3,245
  • 3
  • 28
  • 58
5
votes
1 answer

Plotting world map in orthographic projection is giving "non finite points"

I have a shapefile of world countries, downloaded from here. I can plot it in R using countries <-…
Rodrigo
  • 4,706
  • 6
  • 51
  • 94
1
2 3
20 21