159
questions
-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 ...
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 ...
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 ...
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 *...
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?
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 ...
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 ...
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 ...
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 ...
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 ...
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:
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)
{
...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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,...
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, ...
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 ...
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 ...
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 ...
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(...
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 ...
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:...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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).
...
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 ...
-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?
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 ...
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-...
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;...
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-...
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: ...
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 ...
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 ...
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 ...
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 ...