Questions tagged [frustum]

A frustum is a region of space delimited by a solid geometrical shape and two parallel planes cutting it, in particular the region of (virtual) space that is rendered on screen in computer graphics applications.

A frustum is a region of space delimited by a solid geometrical shape and two parallel planes cutting it. It may also refer to the region of (virtual) space that is rendered on screen in computer graphics applications (e.g. the visible area of a first-person shooter computer game or of a virtual reality application, like a virtual planetarium - Viewing frustum).

159 questions
2
votes
1 answer

Determine if point is in frustum

I'm trying to work out the best way to determine whether a point is inside a frustum. I have something working, but not sure whether it is too cumbersome, and perhaps there is a more elegant / efficient way I should be doing this. Suppose I want to…
kinkersnick
  • 1,301
  • 1
  • 13
  • 19
2
votes
0 answers

How to extract frustum planes from Ortho matrix?

I have extracted the frustum planes from a perspective matrix with some help from this homepage. Can I use the same equations for an orthographic matrix? ************************UPDATED************************ I'm using cascaded shadow mapping(CSM)…
karl88
  • 341
  • 2
  • 13
2
votes
1 answer

QSGGeometryNode depth (z) problems with 3 vertices

I am drawing a 3D geometry (Point3D vertices) in a Qml scene graph with a custom QSGGeometryNode and QSGTransformNode. This works except that the 3D model is cut off at a certain z-coordinate (z is the depth axis in Qml). First I expected that the…
Hyndrix
  • 4,282
  • 7
  • 41
  • 82
2
votes
1 answer

rendering two overlapped FOV using glFrustum without GLUT_STEREO

I have a program that reads a 360 mono panorama and reads an IMU, drawing the correct part of the panorama based on the head location. I am creating two windows, one per display, and do not want to rely on GLUT_STEREO. The draw() calls for each…
Jary316
  • 291
  • 1
  • 4
  • 15
2
votes
1 answer

Setting a 3D environment reference

I'm setting a Frustum camera to create a Virtual Reality environment that looks like a window when you look at the screen. I've checked all the documentation of the SoCamera, SoFrustumCamera, SoPerspectiveCamera and SoOrtographicCamera, but culdn't…
Joao Vitor
  • 23
  • 3
2
votes
2 answers

glFrustum, gluPerspective and FOV

I have a program to do augmented reality and in OpenGL I use : glFrustum(-near*centerImageX/(GLfloat)fx, near*(imageWidth-centerImageX)/(GLfloat)fx, near*(centerImageY-imageHeight)/(GLfloat)fy, near*centerImageY/(GLfloat)fy, near, far); This is ok,…
SteveTJS
  • 635
  • 17
  • 32
2
votes
0 answers

Why is my frustum culling not culling on certain angles?

My frustum culling implementation isn't working properly; what happens is it will cull when I rotate the camera to the left, but not to the right. It will also "cull" if I move the camera backward, though the distance at which the object disappears…
zeboidlund
  • 9,731
  • 31
  • 118
  • 180
2
votes
2 answers

Determining intersection with frustum in GLScene

using GLScene in delphi I need to find the intersection between an object (a line or plane is enough) and the visible space, to determine what part of this object is currently showing. I tried getting the view frustum but I couldn't find how. I was…
mabi
  • 522
  • 1
  • 6
  • 20
2
votes
3 answers

Optimize Frustum Culling

i am writing a game in C++ and have a level consisting of many seperate meshes, each with their own vertex buffer. i am using vmmlib ( brilliant free gl compat. vector/matrix library ) to create my frustum culler and testing it against the bounding…
DavidG
  • 1,796
  • 4
  • 21
  • 33
2
votes
2 answers

Normalised coordinates for OpenGL

I was trying to clip an image on my screen by limiting the viewing volume using glFrustum. In the official documentation for Glfrustum, it is mentioned that the left, right, top, bottom, near, far are the coordinates for the clipping. I thought them…
user1240679
  • 6,829
  • 17
  • 60
  • 89
2
votes
0 answers

How to define MODELVIEW matrix in Open GL

I am doing Camera Calibration, and I have my intrinsic and extrinsic parameters. I have few virtual cameras, and need to draw frustums for each. I have almost solved that, finding out Projection matrix (m[int]*m[ext]=Projection Matrix), but I still…
SuTron
  • 387
  • 5
  • 16
2
votes
1 answer

Unity Frustum culling Issue

I'm creating a game that utilizes off center projection. I've got my game set up in a CAVE being rendered in a cluster, over 8 PC's with 4 of these PC's being used for each eye (this creates a stereoscopic effect). To help with alignment in the CAVE…
N0xus
  • 2,674
  • 12
  • 65
  • 126
1
vote
1 answer

frustumM / setLookAtM in OpenGL ES 2.0 on Android

I am playing around with OpenGL on the Android platform using the OpenGL ES 2.0 tutorial as a basis. The code in question is: public void onSurfaceChanged( GL10 unused, int width, int height ) { GLES20.glViewport( 0, 0, width, height ); float…
Kevin Gilbert
  • 671
  • 10
  • 18
1
vote
0 answers

How to implement correct cube frustum culling

I'm trying to implement frustum culling for my directx application. Each geometry in my application is surrounded by a bounding volume, which I'm trying to use to determine whether it's inside the view frustum or not. The bounding volume is a cube…
Gregor Sattel
  • 352
  • 3
  • 12
1
vote
1 answer

Flutter canvas. How to draw frustum or add a frustum to a basic graphic?

I know how to draw a basic graphics, canvas.drawCircle(); canvas.drawPolygon(); ... Is there any way to draw a frustum make it to 3d? Like those:
HarrisonQi
  • 183
  • 7