Questions tagged [culling]

133 questions
1
vote
3 answers

opengl: avoid clipping in perspective mode?

It looks like the solution is to change projection matrix on-the-fly? Let me do some research to see how to do it correctly. My scenario is:===> Say, now, I created a 3D box in a window under windows7 with perspective mode enabled. From users point…
Jay
  • 21
  • 1
  • 2
1
vote
1 answer

What could cause polygons in OpenGL to be rendered out of order?

I'm trying to get some hands-on experience with OpenGL so I've been writing a few basic programs. The short program below is my first attempt at rendering a solid object --a rotating cube-- but for some reason some back polygons seem to be getting…
AIGuy110
  • 1,025
  • 1
  • 10
  • 11
1
vote
2 answers

Incorrect occluded, front-face culling in openGL

I am using my own algorithm to cull occluded front-faces that should never be displayed. When I don't cull the faces, I have a perfect set of blocks. When I enable my face culling, I have unexpected results. I have checked my culling code, and I…
Brian Bruggeman
  • 5,008
  • 2
  • 36
  • 55
1
vote
1 answer

Efficient 3D block rendering with Libgdx

To start with,I am pretty new to 3D programming and libgdx. I looked at a few tutorials and I already render the scene I want. I have some 1x1x1 blocks, created with ModelBuilder.createRect() for every visible face, so if another block covers a face…
Robert P
  • 9,398
  • 10
  • 58
  • 100
1
vote
1 answer

Google Earth / Processing.js - Implementing Back Culling with 3D Projection

I'm currently working on a project that looks to map real world data onto the Google Earth globe, using the Google Earth API. The head honchos that be have asked for more demanding visuals than the plugin can offer (i.e. fancy lines, images and…
1
vote
1 answer

Directx 11 spheres

I'm looking for an efficient way to display lots of spheres using directx 11. The spheres are defined by (x,y,z,r) where (x,y,z) are coordinates in space and r is the radius. I want to display only the spheres that can be seen, meaning that spheres…
user3104404
1
vote
0 answers

Am I computing the attributes of my frustum properly?

I have a basic camera class, of which has the following notable functions: // Get near and far plane dimensions in view space coordinates. float GetNearWindowWidth()const; float GetNearWindowHeight()const; float GetFarWindowWidth()const; float…
zeboidlund
  • 9,731
  • 31
  • 118
  • 180
1
vote
1 answer

OpenGL instanced rendering - frustum culling

I'm drawing large amount of cubes (100 000+) using glDrawElementsInstanced(). Due the performance reasons I'd like to implement frustum culling, but I'm not quite sure how to do that when I'm using instancing. From what I know, the only way to…
user1760770
  • 365
  • 5
  • 17
1
vote
0 answers

Conservatively cover bitmap with small number of primitives?

I'm researching the the possibility of performing occlusion culling in voxel/cube-based games like Minecraft and I've come across a challenging sub-problem. I'll give the 2D version of it. I have a bitmap, which infrequently has pixels get either…
Chris Conlon
  • 103
  • 7
1
vote
1 answer

In OpenGL ES, how can I "clip" drawing to a rectangle?

I am working on an Android application where I am using a single OpenGL ES instance. In some instances, I am drawing a custom (rectangular) dialog ontop of everything else, with scrolling text, lines, etc. The dialog does not take up the whole…
khiner
  • 673
  • 8
  • 19
1
vote
0 answers

Replacing the WPF rendering pipeline

WPF doesn't appear to convey visibility information during rendering so it does no culling and, consequently, performance can be awful. So I'm interested in the idea of circumventing WPF's normal rendering pipeline in order to replace it with a more…
J D
  • 48,105
  • 13
  • 171
  • 274
1
vote
1 answer

Vector Explanation

I have been following this article on Frustum culling, and I need some help understanding the vector math behind it. More specifically, what are the vectors of 'up' and 'right' he talks about? What values do they hold? Sorry for the brief and…
CoderTheTyler
  • 839
  • 2
  • 11
  • 30
1
vote
1 answer

How do I transform bounding boxes for view frustum culling?

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…
1
vote
1 answer

Orthographic 3D Backface Culling using Surface Normals

I'm creating an HTML5 canvas 3D renderer, and I'd say I've gotten pretty far without the help of SO, but I've run into a showstopper of sorts. I'm trying to implement backface culling on a cube with the help of some normals calculations. Also, I've…
1
vote
1 answer

Simple 2D Culling in OpenGL using VBOs

I am looking into using a VBO instead of immediate mode for performance reasons. I am creating a 2D orthographic scene filled with sprites. I do not want to draw sprites that are off-screen. I do this by checking their position against the screen…
LunchMarble
  • 5,079
  • 9
  • 64
  • 94
1 2 3
8 9