Questions tagged [occlusion]

74 questions
14
votes
1 answer

How to transparently shade alternate days on a plot?

What am I doing wrong here please? I'm trying to shade alternate 24-hr daily rectangles with transparent gray. But only the last rectangle from the for-loop gets drawn(?!?) If I do things manually instead of by for-loop it works fine. Is there a way…
smci
  • 32,567
  • 20
  • 113
  • 146
12
votes
2 answers

How to Handle Occlusion and Fragmentation

I am trying to implement a people counting system using computer vision for uni project. Currently, my method is: Background subtraction using MOG2 Morphological filter to remove noise Track blob Count blob passing a specified region (a line) The…
bonchenko
  • 567
  • 1
  • 9
  • 21
9
votes
5 answers

3d Occlusion Culling

I'm writing a Minecraft like static 3d block world in C++ / openGL. I'm working at improving framerates, and so far I've implemented frustum culling using an octree. This helps, but I'm still seeing moderate to bad frame rates. The next step would…
Emma
  • 2,012
  • 5
  • 21
  • 30
9
votes
2 answers

How to detect if an image is partially occluded?

I have a large number of aerial images. Some of them have the lens partially occluded. For example: and I'm trying to automatically detect which of the images have this using OpenCV. My initial though was to check how much of the image is black…
nickponline
  • 25,354
  • 32
  • 99
  • 167
7
votes
1 answer

Best solution for 2D occlusion culling

In my 2D game, I have static and dynamic objects. There can be multiple cameras. My problem: Determine objects that intersect with the current camera's view rectangle. Currently, I simply iterate over all existing objects (not caring wheter dynamic…
Hamilton
  • 79
  • 1
  • 2
7
votes
4 answers

Occlusion algorithms collection

The occlusion algorithm is necessary in CAD and game industry. And they are different in the two industries I think. My questions are: What kind of occlusion algorithms are applied respectively in the two indurstries? and what is the difference? I…
windloud
  • 83
  • 1
  • 7
6
votes
2 answers

Is it possible to have a SCNNode which is transparent, but which occludes any object behind it?

So to be clear on my goals, since I don't have any code to share... Lets say I have a SCNNode which is positioned between the camera and another SCNNode. The first SCNNode is a SCNBox, but has no texture, thus the second SCNNode can be seen behind…
Andrew
  • 7,693
  • 11
  • 43
  • 81
6
votes
1 answer

Identify visible vertices in OpenGL

What is the most efficient way to identify the vertices that are visible from a particular viewpoint? I have a scene composed of several 3D models. I want to attach an identifier to each vertex (ModelID, VertexID) then generate 2D images from…
tat0
  • 133
  • 1
  • 5
5
votes
0 answers

iPhone iOS5 querying OpenGL ES 2.0 pipeline objects if they are hidden in the view or not..."Occlusion"

EXT_occlusion_query_boolean is new with OS5.0, it looks to me like not a single person on the entire internet has posted about these new extensions nor used this code.... so here they are set up properly...which is not documented anywhere as far as…
hokkuk
  • 675
  • 5
  • 21
5
votes
2 answers

OPENGL ARB_occlusion_query Occlusion Culling

for (int i = 0; i < Number_Of_queries; i++) { glBeginQueryARB(GL_SAMPLES_PASSED_ARB, queries[i]); Box[i] glEndQueryARB(GL_SAMPLES_PASSED_ARB); } I'm curious about the method suggested in GPU GEMS 1 for occlusion culling where a…
Dave
  • 51
  • 2
5
votes
0 answers

Using Unity baked ambient occlusion for unlit shader

I am working on a mobile game in Unity, and we've reached the optimisation stage of development. We've been using realtime AA from the Post-Processing Stack, but I would like to switch to baked AA, because nothing except for the player moves in our…
user3033405
  • 83
  • 1
  • 1
  • 4
4
votes
1 answer

DirectX Shader not working right?

Okay so I have this shader for ambient occlusion. It loads to world correctly, but it just shows all the models as being white. I do not know why. I am just running the shader while the model is rendering, is that correct? or do I need to make a…
dvds414
  • 143
  • 1
  • 9
4
votes
4 answers

OpenGL: How to determine if a 3D (rendered) point is occluded by other 3D (rendered) primitives in front of it?

In my OpenGL program, I am doing the following in sequence: // Drawing filled polyhedrons // Drawing points using GL_POINTS // Displaying information for each above point beside it For displaying the point information (say a point…
Ashwin Nanjappa
  • 76,204
  • 83
  • 211
  • 292
3
votes
0 answers

Get the object or renderer displayed (rendered on top)

Is it possible to know I a mesh renderer is not visible due to the fact its being occluded by another gameObject? Up to what I researched, Rederer.isVisible responds to "isRendered" and scene params needs to be baked. So I wonder if there could be a…
rustyBucketBay
  • 4,320
  • 3
  • 17
  • 47
3
votes
2 answers

Three.js detect when object is partially and fully occluded

I'm trying to detect when an object in Three.js is partially and fully occluded (hidden behind) another object. My current simple solution casts a single ray to the the center of the object: function getScreenPos(object) { var pos =…
Kim T
  • 5,770
  • 1
  • 52
  • 79
1
2 3 4 5