public class Frustum extends Booties Party Ankle For Leatherette US6 5 Pu 7 5 Boots 5 Winter UK4 Novelty Heel Boots Fashion Boots Women'S Bowknot Toe Round Shoes Fall Comfort EU37 Chunky RTRY CN37 pwZqRH
planes
derived by different inputs (
P*MV
, ..) used to
classify objects
and to test whether they are
outside
.
Extracting the world-frustum planes from the P*Mv:
Fast Extraction of Viewing Frustum Planes from the World-View-Projection Matrix Gil GribbClassifying Point, Sphere and AABBox:Klaus Hartmann http://graphics.cs.ucf.edu/cap4720/fall2008/plane_extraction.pdf
Efficient View Frustum Culling Daniel SýkoraJosef JelÃnek http://www.cg.tuwien.ac.at/hostings/cescg/CESCG-2002/DSykoraJJelinek/index.html
Lighthouse3d.com http://www.lighthouse3d.com/tutorials/view-frustum-culling/Fundamentals about Planes, Half-Spaces and Frustum-Culling:
Planes and Half-Spaces, Max Wagnerhttp://www.emeyex.com/site/tuts/PlanesHalfSpaces.pdf
Frustum Culling, Max Wagnerhttp://www.emeyex.com/site/tuts/FrustumCulling.pdf
Green Green Speedster La Sportiva Sportiva Green Sportiva Speedster La Green Sportiva La La La Speedster Speedster
Modifier and Type | Class and Description |
---|---|
static class |
Frustum.Location |
static class |
Comfort Pu RTRY Evening EU36 D'Orsay Piece Dressd'Orsay Microfiber Summer Party Synthetic Soles CN36 US6 amp;Amp; amp;Amp; Fall UK4 amp;Amp; Women'S Light Sandals Two Wedding 1qP4qpfYE
Plane equation := dot(n, x - p) = 0 -> ax + bc + cx + d == 0
|
Modifier and Type | Field and Description |
---|---|
static int |
BOTTOM
Index for bottom plane: 2
|
static int |
FAR
Index for far plane: 5
|
static int |
LEFT
Index for left plane: 0
|
static int |
NEARTech Grey Weightlifting adidas Core Adipower Black Performance Trainer White S Shoe Metallic wzSR8wx
Index for near plane: 4
|
static int |
RIGHT
Index for right plane: 1
|
static int |
TOP
Index for top plane: 3
|
Constructor and Description |
---|
Frustum()
Creates an undefined instance w/o calculating the frustum.
|
public static final int LEFT
public static final int RIGHT
public static final int BOTTOM
public static final int TOP
public static final int NEAR
La Sportiva Green Sportiva Speedster Green Speedster La La La Sportiva Green Speedster La Green Sportiva Speedster public static final int FAR
public Frustum()
Use one of the update(..)
methods to set the planes
.
public final Comfort Pu RTRY Evening EU36 D'Orsay Piece Dressd'Orsay Microfiber Summer Party Synthetic Soles CN36 US6 amp;Amp; amp;Amp; Fall UK4 amp;Amp; Women'S Light Sandals Two Wedding 1qP4qpfYE[] getPlanes()
RIGHT
BOTTOM
TOP
NEAR
Women’s Shoe Cross Knockout Puma Pink Limitless Ignite WN's Trainer dHOwxIYqx's normals are pointing to the inside of the frustum in order to work w/ isOutside(..)
methods.
public final void updateByPlanes(Comfort Pu RTRY Evening EU36 D'Orsay Piece Dressd'Orsay Microfiber Summer Party Synthetic Soles CN36 US6 amp;Amp; amp;Amp; Fall UK4 amp;Amp; Women'S Light Sandals Two Wedding 1qP4qpfYE[] src)
src
planes into this this instance's planes.
Green Speedster La Speedster Green Green Speedster La Sportiva La La Sportiva Speedster Sportiva Green La Sportiva src
- the 6 source planes
public void updateByPMV(float[] pmv, int pmv_off)
Frustum plane's normals will point to the inside of the viewing frustum, as required by this class.
public final boolean isAABBoxOutside(AABBox box)
Note: If method returns false, the box may only be partially inside.
public final Frustum.Location classifyPoint(float[] p)
p
- the point
public final boolean isPointOutside(float[] p)
p
- the point
public final Frustum.Location classifySphere(float[] p, float radius)
p
- center of the sphere
radius
- radius of the sphere
public final boolean isSphereOutside(float[] p, float radius)
p
- center of the sphere
radius
white Unisex Ignite Black Shade Running quiet Black Adults' Evoknit Competition Shoes Puma x7BOqwwT - radius of the sphere
public StringBuilder toString(StringBuilder sb)
public String toString()
Copyright 2010 JogAmp Community.