I have a scene graph with nodes holding transforms and bounding boxes in it,as well as a view frustum that I build each frame from the viewProjection matrix.However,the boxes have their 4 vertices' coordinates in the boxes' local space.What must I transform them by,to get them into the same space as the view frustum,so I can then check for intersection with the frustum?I tried bringing them into world space,but that was weird,since I have 50 world matrices(I use instancing and each instance has its own world/transform matrix)
How do I transform bounding boxes for view frustum culling?
1k Views Asked by user1779802 At
1
There are 1 best solutions below
Related Questions in DIRECTX
- Make screenshot of DirectX window that is hidden and doesn't have focus
- Draw a sphere on a billboard with world normal from a pointlist
- DirectX - Pixel Shader 3.0 doesn't work
- D3D11 Post Shader Results in Dark Image
- Drawing a textured quad looks distorted
- DirectX 9 vertex colors ingored when lighting is enabled?
- Constant buffer is empty when passed HLSL C++
- D3DX11CompileFromFile Invalid Arguments C++
- DirectX libs in x64 program
- How to use a huge array in HLSL (error X4505)
- Relationship between AFX_WM_DRAW2D and WM_PAINT in MFC Application
- Textured cube renders blank in DirectX
- Invoke button in a game / external program C#
- DirectX VSIX Installer Installation Failed
- Normals are not transfered to DirectX 11 shader correctly - random, time-dependent values?
Related Questions in INTERSECTION
- Math/Physics: Given angle and vector find point of intersection?
- Java 2D game random rectangles
- How can I find a common volume of three cones intersecting each other in MATLAB?
- creating polygons based on intersection
- Ray/Rectangle intersection in 3D space
- Intersecting many Points with many Polygons
- Program not outputting data correctly
- Getting Geometry of Intersection of Road SQL and Inserting Into Table
- Finding n numbers common over N lists
- Intersection of data in oracle
- How to split a self-intersection polygon to multipolygon
- Find the Intersection points of 2 rectangles
- how to check if two points are on the same line in postgis
- How to Check intersection between two images on a specific location?
- SVG intersection of elements with transforms
Related Questions in COORDINATE-TRANSFORMATION
- Rotate camera around a point in scene while looking at a different point
- What's the difference between these two ways of computing a LookAt matrix?
- Why does my 3 axes system coordinate orientation change x with y values?
- How to calculate the viewing angle of an object in 3D
- Difference between Camera/Eye coordinates and world coordinates
- What is does the total transformation of painted objects look like for QGraphicsItem?
- Obtain two dimensional linear space on trapezoid shape inside image frame
- Transfering line segments from a plot to another with corresponding points on different coordinates
- Converting "Lambert 1 Nord" data into "Spacial Reference"
- Project XYZ data in swiss coordinates to WGS84 and plot
- Remapping coordinate system in Android app
- Transforming coordinates of one rectangle to another rectangle
- Reversable algorithm for to/from latitude and longitude and 3D point
- Mouse picking miss
- Transform the modelMatrix
Related Questions in CULLING
- JavaFx 3D - Display large amount of TriangleMeshes
- Is there a faster way to make this angle comparision?
- Directx 11 spheres
- 3d Occlusion Culling
- Conservatively cover bitmap with small number of primitives?
- Early stencil culling
- How to do frustum culling in OpenGL with the view and projection matrix?
- Frustum culling with VBOs
- Three.js Unculled SkyBox
- OpenGL : Line jittering with large scene and small values
- OpenGL is not culling faces properly when drawing OBJ model
- How to integrate indirect draw, instanced rendering and gpu occlusion culling in OpenGL
- 3D Computer Graphic Animation : Back-Face Culling not working properly
- Orthographic 3D Backface Culling using Surface Normals
- Extracting View Frustum Planes (Gribb & Hartmann method)
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Usually you want to collide BB and frustum in word space. Raw algo:
Also you can do it in view space (but it not so good):
If you think that translating bounding boxes (4 verts) to world space is weird, think about how weird to do so with thousands of verts in meshes itself. =) As I understand, collision detection is far by more expensive, than this simple multiplication. But:
Hope its help!