Skip to main content
Filter by
Sorted by
Tagged with
-2 votes
2 answers
76 views

Frustum Culling breaks when looking up or down [closed]

The title explains it all, but to summarize. When the camera's direction is not pointing down or up, Frustum culling works fine (I checked the amount of draw calls etc thru console). BUT it is not ...
Alphenex's user avatar
0 votes
0 answers
33 views

Incorrect Frustum Culling behavior

I've written a C# script and a Compute Shader that should cull the instances that are not visible by the camera. The instances are getting culled but with some weird behavior - sometimes not getting ...
Zbajnek's user avatar
  • 21
0 votes
1 answer
43 views

Create a tight frustum around a 3D model bounding volume

Tight frustum I intend to create a tight frustum around a 3D model: I have these variables: Inputs: 3D model bounding box or bounding sphere or bounding volume. To be determined: Eye distance and ...
Megidd's user avatar
  • 7,733
0 votes
1 answer
26 views

Does the camera transform in Unity invert directions at the end?

I want the 8 corners of the camera frustum and I have this: Vector3 nearTopLeft = center_near + (up * (height_near / 2)) - (right * (width_near / 2)); Vector3 nearTopRight = center_near + (up *...
Feref28's user avatar
0 votes
1 answer
62 views

ThreeJS Object3D.frustumCulled

ThreeJS objects have a check to see if the object is in the camera area - Object3D.frustumCulled. How to get the "Object3D.frustumCulled" check result?
Trismer's user avatar
0 votes
1 answer
91 views

frustum culling not filtering out bboxes correctly

I'm writing some frustum culling code ( once again ), and it's mostly working, but for some reason, some boxes are showing as intersecting the frustum when they really aren't. I setup a 10x10 grid of ...
Joao Pincho's user avatar
0 votes
0 answers
32 views

How far to move a point to get it out of the view frustum?

I'm creating a view frustum from a combo matrix (function at the end of the question for reference). What I want to do is, I have an object at xyz... and a direction vector abc, both of these in world ...
KiraHoneybee's user avatar
0 votes
1 answer
134 views

How change Level of Detail Attribute of objects to boundingbox which are in frustum of moving camera?

I am trying implement frustum culling in maya , where I am turning Level of Detail to boundingbox [cmds.setAttr(object + '.overrideLevelOfDetail',0)] if they are not in the frustum of the selected ...
Kartikey's user avatar
0 votes
1 answer
752 views

"Screen position out of view frustum" errors followed by "Assertion failed on expression: 'std::abs(det) > FLT_MIN'" - Unity 3d

So in my game you are a sphere rolling down ramps, but if you go too fast and crash into a ledge the game freezes and the console gets spammed with the first error in the title followed by the second ...
Simon Siirtola's user avatar
1 vote
0 answers
251 views

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 ...
Gregor Sattel's user avatar
1 vote
1 answer
101 views

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's user avatar
1 vote
1 answer
352 views

Check if line segment or triangle intersects a frustum

I have a frustum made of six planes, normals all pointing inwards. I can check if a point is inside the frustum with this function: char ClassifyPoint(float x, float y, float z, char thePlane) { ...
KiraHoneybee's user avatar
1 vote
1 answer
192 views

How to determine whether a line segment is partially contained in (intersects) a frustum in THREE.js?

I need to be able to determine whether the straight line between two points (segment), crosses the space inside a frustum (intersects the frustum). I've looked into the APIs offered by THREE.js and ...
Mabedan's user avatar
  • 897
1 vote
0 answers
535 views

Most efficient way to determine if a cube intersects a frustum

I'm looking for a fast, efficient (even if sometimes false positive) way to determine if a cube intersects a frustum. I've been using a brute force test of just seeing if all cube points are behind ...
KiraHoneybee's user avatar
0 votes
1 answer
359 views

OpenGL (LWJGL 3) culling terrain vertices/triangles that are not in the view frustum

I am trying to implement frustum culling in my 3D Game currently and it has worked efficiently with the entities because they have a bounding box (AABB) and its easier to check a box against the ...
Dstarred's user avatar
  • 351
1 vote
2 answers
671 views

Frustum Culling Bug

So I've implemented Frustum Culling in my game engine and I'm experiencing a strange bug. I am rendering a building that is segmented into chunks and I'm only rendering the chunks which are in the ...
Alex Rowden's user avatar
0 votes
1 answer
796 views

Conical Frustum in Unity3d

I`m helping my friend to make his study project, and for it we need a 3d frustum, with and ability to set the diameter of the upper round surface and the bottom one in runtime, could you please advice ...
Blackmail92's user avatar
1 vote
0 answers
114 views

SceneKit stucks for a few frames, when SCNGeometry asset gets inside frustum of SCNCamera

I am working on a game in which a character runs along the screen and the camera is following the character. For each scene I add all the required assests and place them on scene. I do this behind a ...
ZAY's user avatar
  • 4,735
0 votes
0 answers
122 views

Is it possible to render only a clipping-area of what gluLookAt sees?

Is it possible to "look at" an OpenGL scene which was rendered at e.g. 60 degrees vertical FoV through a frustum/corridor/hole that has a smaller FoV - and have that fill the resulting ...
isync's user avatar
  • 537
2 votes
0 answers
157 views

Finding tight frustum around an AABB

How do I build a tight-fitting view frustum around an AABB and a particular camera position? Basically, I'm implementing frustum-traced shadows and reprojecting view samples to the point-light's view ...
Jofo's user avatar
  • 51
1 vote
4 answers
902 views

ARKit – How to know if 3d object is in the center of a screen?

I place 3d object in the world space. After that I try to move camera randomly. Then right now I need to know after I knew object has became inside frustum by isNode method, if the object is in center,...
lady's user avatar
  • 376
0 votes
0 answers
268 views

Why use frustum in OpenGL on top of simple projection?

Let's consider, for simplicity, a 3D scene where, after applying model and view matrices, all vertices are inside a cube [-1,-1,-1]...[1,1,1]. Based on the geometry set up shown on the image below, ...
user avatar
1 vote
0 answers
2k views

How to do frustum culling in OpenGL with the view and projection matrix?

I'm trying to implement frustum culling to my voxel engine, basically I'm rendering chunks and I want to cull every chunk that is outside of the frustum of the camera. I tried a lot of different ...
Thibault Abry's user avatar
2 votes
0 answers
695 views

GPU frustum culling : why using scan?

I'm trying to implement frustum culling in the gpu. After reading a bit and also stumbling on this very helpfull repo : https://github.com/ellioman/Indirect-Rendering-With-Compute-Shaders , I've ...
Ragekit's user avatar
  • 41
1 vote
0 answers
115 views

Frustum culling only works at small objects

Currently I'm trying to implement Frustum culling into my engine, and on smaller objects it works perfectly fine, but larger objects get culled out much sooner than they should be. You can see that ...
Daniszalami's user avatar
1 vote
1 answer
535 views

Perspective Projection, Canonical Viewing Volume

Vector3d nearC(0,0,0 -w); Vector3d farC(0,0,0-x); double width = y/2; double height = z/2; double angleOfHeight = atan(height/w); double angleOfWidth = atan(width/w); double adjustedHeight = tan(...
Sean's user avatar
  • 31
1 vote
1 answer
753 views

OpenGL draw a rectangle filling window

I'm trying to understand the OpenGL MVP matrices, and as an exercice I'd like to draw a rectangle filling my window, using the matrices. I thought I would easily find a tutorial for that, but all ...
Tim Autin's user avatar
  • 6,166
0 votes
1 answer
396 views

Wrong frustum plane when getting them from view and proj matrix

I've been having some trouble with doing a frustum culling with aabb. All frustums planes seems to be wrong and I don't know where it's comming from. Here is the code to compute frustum planes. std:...
NicoS's user avatar
  • 55
2 votes
1 answer
4k views

How to retrieve the camera origin/position from the view projection matrix? (OpenGL)

Is there any way to retrieve the camera origin/position from the view projection matrix? (OpenGL) I'm trying to draw the camera's frustum and I have no problems calculating corners for the Far and ...
Gediminas's user avatar
  • 1,860
0 votes
0 answers
194 views

How can I fill the camera's frustum with fix sized cubes?

I believe this would be a packing problem of a trapezoid (camera's frustum). I want to fill the entire camera's frustum with fix sized cubes or cuboids. I need a set of cubes that fit within the ...
Adrià Correas's user avatar
3 votes
1 answer
2k views

About view matrix and frustum culling

I was trying to determine if an object (sphere) is inside a view frustum. My strategy was first to get the view matrix: glm::lookAt(cameraPosition, lookAtPosition, cameraUp); Where cameraPosition is ...
Tien Dinh's user avatar
  • 361
1 vote
0 answers
132 views

Check which object are colliding with camera view frustum

I am trying to optimize game. In my game I have more than 100k 2D objects (e.g. circles and rectangles). My camera can see just couple of them - 10-20 (depends on object size). In my update loop I ...
Izmail360's user avatar
1 vote
1 answer
631 views

culling instanced meshes without geometry shader

Whats an effective way to cull instanced meshes (f.e. 2000 trees, each with ~ 17 triangles) without using the geometry shader ? Unfortunately my software supports only OpenGL ES 3.0, so have to cull ...
Meldryt's user avatar
  • 109
0 votes
0 answers
298 views

How to add a camera clipping frustum to Matrix?

How do I add a Frustum Clipping Plane to a Camera View Matrix? I'm confused on how to add it to the Camera Matrix so it clips the edges of the orthogonal view. The javascript has been extracted from a ...
Langerz's user avatar
  • 81
1 vote
1 answer
4k views

How to select and highlight multiple objects with rectangular selection (ribbon) in three.js

Here I'm trying draw a rect using bounding box in mouse drag and hightlight the objects inside the rect. To draw a rect using box3 (bounding box) on mouse down and mouse up and highlight the ...
user avatar
1 vote
0 answers
370 views

How to setProjectionMatrix far clipping plane param in ARcore in Android Studio

I am rendering a large rectangular surface (flattened cube with texture). When the dimensions are more than 10 meters or so the distal part of the surface gets clipped. While researching the topic I ...
Val Nenov's user avatar
2 votes
1 answer
2k views

How to return the frustum of the THREE.Perspective camera and store it as a variable?

I was looking on Three.js API and I found that the Frustum is used for the camera visible area. I was wondering if I can access the view frustum of my PerspectiveCamera and declare the frustum as an ...
Loizos Vasileiou's user avatar
2 votes
0 answers
537 views

Implement camera with off-axis projection

I'm trying to create a 3D viewer for a parallax barrier display, but I'm stuck with camera movements. You can see a parallax barrier display at: displayblocks.org Multiple views are needed for this ...
Leon's user avatar
  • 574
0 votes
1 answer
484 views

Intersecting Frustum

I am trying to find a way to determine whether two frusta intersect and, if so, how big of an intersection that is (example 100% if the two frusta are in exact same location, 0% if they don't touch). ...
Francesco's user avatar
  • 491
1 vote
0 answers
146 views

how to set frustum inortographic camera THREEJS

First to thank for the great support you allways have provided me. I have modified the SelectionBox and SelectionHelper modules published in threejs in order to work with instances. The point is ...
Alejandro Insúa's user avatar
-1 votes
2 answers
690 views

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 Eliyahu's user avatar
2 votes
1 answer
1k views

OpenGL How to calculate worldspace coordinates from frustum aligned vectors?

I am a graphics programming beginner working on my own engine and tried to implement frustum-aligned volume rendering. The idea was to render multiple planes as vertical slices across the view ...
Blendurian's user avatar
0 votes
1 answer
1k views

Culling works with extracting planes from view-projection matrix but not with projection matrix

I have implemented frustum culling by using the plane extraction method explained in this article. The article mentions that if the matrix is a projection matrix, then the planes will be in view-...
wingerse's user avatar
  • 3,751
1 vote
1 answer
2k views

Check if an axis aligned bounding box is inside view frustum

Lets say that my Frustum consists of 6 planes and each of these planes has the following variables: Vector3f tl; // top left Vector3f tr; // top right Vector3f bl; // bottom left Vector3f br;...
RalleYTN's user avatar
  • 138
0 votes
2 answers
727 views

How to manipulate frustum in three.js

I saw this great implementation of a parallax view, which creates an illusion of depth and I want to build something similar in Three.js. http://www.anxious-bored.com/blog/2018/2/25/theparallaxview-...
Soeren Erichsen's user avatar
0 votes
2 answers
145 views

Get point in 3D space aligned to camera view

I am trying to use Frustum to detect whether or not an object is within a square part of the screen (see image below) It's a UI image working as the aimbox not a 3D object. The original post is here: ...
Solu9's user avatar
  • 11
0 votes
0 answers
63 views

frustum for frustum culling isn't created proper

Introduction: I'm trying to implement frustum culling and for that I created a projectionViewMatrix and then translate the vectors with the matrix. However some of the vectors seem to be incorrectly ...
Manuel's user avatar
  • 1
3 votes
2 answers
2k views

Hidden Unity WebGL App: "Screen position out of view frustum"

I'm using a Unity WebGL App in a Bootstrap modal (dialogbox) of a website. As long as this modal isn't visible (display:none), there is always this error in the console log: "Screen position out of ...
Patrick Münster's user avatar
0 votes
1 answer
956 views

Vuforia ARcamera Screen position out of view frustum

We are working on a project for the Hololens and for some reason, when running it crashes on the hololens but not in the simulation. We have tried all the simple fixes (rebooting, closing, deleting ...
P. Rick's user avatar
1 vote
1 answer
116 views

AKKit: How to select a group of 3D points from a 2D frame?

so the quest is this, I got an ARPointCloud with a bunch of 3d points and I'd like to select them based on a 2d frame from the perspective of the camera / screen. I was thinking about converting the ...
Heestand XYZ's user avatar
  • 2,143