Questions tagged [culling]

133 questions
0
votes
1 answer

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 camera : refer to the image for clear reference. I…
0
votes
0 answers

Best way to culling terrain consisting of a big single mesh

I want to implement a third-person shooter game using direct x, for portfolio purposes. I've created a terrain tool using a basic quad-tree space division algorithm. However, I don't think there's a need for terrain tools because the assets we're…
0
votes
0 answers

Update an object when an other object is within camera view

I am using a rig which is holding eye objects. My model is moving a lot later on, and for example the head will meet the ground, eyes down there as well. Now there is a slight problem. My object's origin is up in the rest pose head position. If I…
0
votes
0 answers

How to get the list of game object from cullingResult

I tried to modify the game objects' layer in CullingResults After frustumCulling. But I don't get those visible game objects from cullingresults. How can I modify the list of game objects in cullingresults? I tried to use native plug-in with unity,…
0
votes
1 answer

Culling mask for GPU instanced mesh

My game has 2 cameras. I'm instancing a bunch of grass and I want the second camera to not render the grass. How can I do this? The grass is instanced via DrawMeshInstancedIndirect.
Daniel
  • 7,357
  • 7
  • 32
  • 84
0
votes
1 answer

How to Cull Unity Shader Color Gradient Material in Scrollview?

I have a shader that makes a color gradient, I applied it to an image component of a child in my scrollview. This material isn't being culled when out of bounds of the scrollview. All other parts of the child are properly culled, just not the…
Kastor438
  • 37
  • 8
0
votes
1 answer

Back-face culling, does chosen vertex for view vector on triangle matter?

I want to hand implement back-face culling, before passing the tris to the GPU. So I am trying to understand the algorithm. So Wikipedia says for back-face culling to use the first vertex in the triangle: Does the vertex on the triangle chosen to…
yosmo78
  • 489
  • 4
  • 13
0
votes
1 answer

Culling frustum becoming narrow when looking up or down

I have a problem implementing frustum culling in OpenGL. I implemented plane extraction in world space, using this Lighthouse3d tutorial (the rest of the engine comes from learnopengl.com). It works well, but only when the camera points towards the…
user11779843
0
votes
2 answers

Disable culling on an object

This question is actually for Unity3D, but it can also be a more general question, so therefore I'm going to make this question as general possible. Suppose I have a scene with a camera (near = 0.3, far = 1000, fov = 60) and I want to draw a skydome…
Marnix
  • 6,384
  • 4
  • 43
  • 78
0
votes
0 answers

How can I cull my prefabs that aren't inside the 2D Camera View in Unity

I'm working on replicating the game "Deepworld". I setup world gen using array maps and some special logic. I'm creating hundreds of objects in seconds. This destroys performance. Even hitting the play button takes a while, and it's pretty hard to…
Mister SirCode
  • 1,575
  • 14
  • 31
0
votes
1 answer

Vulkan culling problem after flipping the MVP upside down

I ran a vulkan renderer on an android device, the resulted image is upside down. I don't want to put a negative height in the VkViewport definition, because there is code and comments that suggest that the matrix is inverted into Y. I tried to…
Leon
  • 554
  • 4
  • 18
0
votes
2 answers

Dynamically render GameObject in Unity C#

I am working on a AR project, where the virtual objects will be shown/hide in the scene based on information found in a text file. The text files will be updated from an external service. So I need to read the file on a frequent interval and update…
0
votes
1 answer

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-space. So I need to transform my AABB coordinates to…
wingerse
  • 3,670
  • 1
  • 29
  • 61
0
votes
1 answer

3D Computer Graphic Animation : Back-Face Culling not working properly

So I've tried to do a backface culling on the cube with Visual Basic. I'm sure that the code that i wrote is right, but somehow the it's not the back face that i want. This is the data structure Structure TLine Dim p1, p2 As Integer End…
KanzouG
  • 1
  • 1
0
votes
0 answers

Unity Orthographic camera rendering everything?

I have created a game in unity, using an orthographic camera. Occlusion culling is enabled. Rendering path is forward. As a player you see a part of the level. You go to the right to progress through the level. The level is quite long. The problem…
1 2 3
8 9