Questions tagged [culling]
133 questions
2
votes
1 answer
"Culling" for single vertices - glDrawArrays(GL_POINTS)
I have to support some legacy code which draws point clouds using the following code:
glEnableClientState(GL_VERTEX_ARRAY);
glVertexPointer(3, GL_FLOAT, 0, (float*)cloudGlobal.data());
glEnableClientState(GL_NORMAL_ARRAY);
glNormalPointer(GL_FLOAT,…

Aleksei Petrenko
- 6,698
- 10
- 53
- 87
2
votes
1 answer
Do browsers (chrome/firefox/safari) cull non-visible svg shapes?
We currently have a screen reaching about 10000 shapes. We are allowing users to pan and zoom to explore. I thought of a couple optimizations to keep using svg in the mid-term:
culling shapes not on screen (only writing objects in our viewport…

Parris
- 17,833
- 17
- 90
- 133
2
votes
0 answers
Why is my frustum culling not culling on certain angles?
My frustum culling implementation isn't working properly; what happens is it will cull when I rotate the camera to the left, but not to the right. It will also "cull" if I move the camera backward, though the distance at which the object disappears…

zeboidlund
- 9,731
- 31
- 118
- 180
2
votes
1 answer
C/C++ OpenGL Occlusion Culling
I'm trying out raw OpenGL, so I decided to code very, very simple game based on 3d blocks, something a'la retarded Minecraft game, just to improve my skills.
Last problems I've met with were cullings. I've finally figured out how to make Frustum…

Radosław Wójciak
- 99
- 2
- 8
2
votes
1 answer
Android OpenGL ES render compex object incorrectly
I'm trying to write program that draws complex non-convex object. But I have problem - some faces appear to be transparent. I partially solved this by adding
GLES20.glEnable(GLES20.GL_CULL_FACE);
But after that I found out that it doesn't work if…

user1786577
- 139
- 4
2
votes
1 answer
D3DX9 Custom mesh overlaps with itself during render
I have custom model file format that I am reading from to create a model in DX. I use
DWORD dwFVF = ( D3DFVF_XYZ | D3DFVF_NORMAL | D3DFVF_TEX1 );
D3DXCreateMeshFVF(numIndices/3, numVertices, D3DXMESH_MANAGED, dwFVF, *d3ddev, mesh);
to create the…

RichieSams
- 131
- 4
2
votes
1 answer
Unity Frustum culling Issue
I'm creating a game that utilizes off center projection. I've got my game set up in a CAVE being rendered in a cluster, over 8 PC's with 4 of these PC's being used for each eye (this creates a stereoscopic effect). To help with alignment in the CAVE…

N0xus
- 2,674
- 12
- 65
- 126
1
vote
1 answer
XNA - Culling Performance Issue
This method that draws my tiles seems to be quite slow, Im not sure exactly whats wrong, it belive my culling method isnt working and is drawing stuff offscreen, but im not completeley sure. Here it is:
// Calculate the visible range of…

Cyral
- 13,999
- 6
- 50
- 90
1
vote
1 answer
How would I hide an object from a specific camera in Godot 3D?
I'm working on a multiplayer horror game in Godot and I want to make it so you can't see your own body but others can. I heard about culling masks for this but I have no idea how they work and if what I'm trying to achieve is possible using them.…

Adi B.
- 37
- 4
1
vote
0 answers
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 view frustum or not. The bounding volume is a cube…

Gregor Sattel
- 352
- 3
- 12
1
vote
0 answers
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 one of the planes, and rejecting on that basis,…

KiraHoneybee
- 495
- 3
- 12
1
vote
1 answer
OpenGL is not culling faces properly when drawing OBJ model
I'm trying to render a Teapot model from an OBJ file. I'm using the Fixed Function rendering pipeline, and I cannot change to the Programmable Pipeline. I would like to have some basic lighting and materials applied to the scene as well, so my…

devCorner
- 193
- 4
- 15
1
vote
0 answers
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 approaches and code that I found on the web, but yet I…

Thibault Abry
- 156
- 10
1
vote
0 answers
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 it works perfectly fine with smaller objects
But…

Daniszalami
- 23
- 7
1
vote
2 answers
Can a geometry shader access OpenGL culling and front face settings?
Is it possible for a OpenGL geometry shader to access the current settings for glFrontFace and glCullFace, and whether face culling is enabled? I have a geometry shader that renders normals for vertexes of triangles, and would like to render them…

Sam Buss
- 411
- 4
- 9