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
0
votes
1 answer

what is exactly the connection between glViewport and glFrustum?

Suppose I would like to draw the following lines: const GLfloat lineX[] = { FrustumData.left * FrustumData.ratio , (FrustumData.top + FrustumData.bottom) / 2 * FrustumData.ratio, FrustumData.zFar, //point A FrustumData.right *…
Alex Fish
  • 768
  • 6
  • 18
0
votes
1 answer

Setting Up a Coordinate System For Perspective Viewing?

I understand the concept behind a frustrum viewing system; it's shaped like a pyramid, and as objects get closer to the center, they get smaller until they're finally clipped off. However, when using a viewing projecting in say, OpenGL (heads up: I…
Shokwav
  • 654
  • 8
  • 19
0
votes
1 answer

3D view frustum culling, ray casting

I need additional theory on view frustum culling to better understand how to implement it. I understand that ray casting is involved in order to figure out what objects are in front, thus figuring out which objects not to render. I am concerned…
Johnathan
  • 787
  • 4
  • 10
  • 21
0
votes
2 answers

OpenGL/GLM - Calculating frustum problems

I am trying to calculate my frustum to do some simple bounding box tests. Here is my function: void CFrustum::calculateFrustum(glm::mat4* mat) { // Calculate the LEFT side m_Frustum[LEFT][A] = *glm::value_ptr(mat[0][3]) +…
Pladnius Brooks
  • 1,248
  • 3
  • 19
  • 36
0
votes
1 answer

How can I make the glOrtho parallelepiped rotating?

I have my world rendered. Based on some specific requirements it includes (some time) some lights on the floor. I am rendering these lights using triangle primitives. Right now I have the following code to zoom and limit the rendering area: …
elect
  • 6,765
  • 10
  • 53
  • 119
-1
votes
2 answers

XNA 4.0 Frustum Culling

I need to add frustum-culling rendering technique to my project but I don't know how to do it. Can someone share some code/explanations so I'll have a better idea of how to do it?
Omer Eli
  • 19
  • 7
-1
votes
1 answer

How to implement Frustum Culling? (Lag when rendering many blocks)

I'm creating a game, in which when I render many blocks. The fps goes seriously down and everything lags. I know why it is lagging, because of many objects being rendered at once, but I can't figure out how to create and implement a frustum culling…
-6
votes
3 answers

How to implement frustum culling in a 2d tile based game? (in a Orthographic View)

I'm making a 2d tiled base game, in which when I render many tiles, the fps goes down drastically. I know why this is happening, its because many objects are being rendered at once. I need to implement frustum culling in the orthographic view, but i…
1 2 3
10
11