# Questions tagged [visibility-determination]

Visibility Determination is the process of deciding whether there is a clear & unimpeded line of sight from one game entity or point in space to another.

19 questions
Filter by
Sorted by
Tagged with
50 views

### Tiles on sphere - check visibility

I have a sphere with tiles. I need to heck if tile is visible or not. See the image. Tiles are red squares, "screen" is represented by yellow quad. Currently, I calculate coordinates of tile in ...
75 views

### Godot :How does the VisibilityEnabler work?

Visibility Enabler I'm confused about the use of the Visibility enabler node in godot. I've read the documentation and tried it out both stand-alone and as a child without success. I set the parent ...
67 views

### Find if one player is visible to the other

Two players (p1 and p2) are standing in a 3D space, represented by points (x1, y1, z1) and (x2, y2, z2). Player 2 is holding a light source, pointing in the direction given by a normalised vector (xn, ...
358 views

### Fastest visibility calculation towards all possible directions

I am searching for your advice. I have a massive voxelized model, like the one in the picture (but with a few million voxels more..). To reduce the total number of the model’s triangulations, I can ...
1k views

### LWJGL Determining whether or not a polygon is on-screen

Not sure whether this is an LWJGL or math question. I want to check whether a shape is on-screen, so that I don't have to render it if it isn't. First of all, is there any simple way to do this that I ...
168 views

### How can I quickly determine whether objects are onscreen in 2D?

Currently, I have this in each object's renderer's update method: ...
155 views

### Is there a more useful “inverse” alternative to portal rendering than antiportal rendering?

I'm in the process of sketching out the design of a 3D rendering engine as I'm learning my way around the subject. (Preemptively: yes, I have my reasons for rolling one from scratch, not least the ...
133 views

### In UE4's Blueprints, how do I activate something when the player looks at it?

I want to make an object that activates when the player presses a button, then looks at it. How can I do this using Blueprints Visual Scripting?
3k views

### Drawing visibility polygons in Unity (for vision cones with occlusion)

I'm currently trying to create an effect like the one displayed below in Unity: However, it seems that I can't do this with any of Unity's built-in light objects, and I simply cannot find anything ...
141 views

### Partial mesh culling by checking against the AABB-tree of objects vertices instead of only the AABB of the whole objects

First thing: this is more of a conceptual question than an implementation oriented one, but still tips about implementation will be very much welcome if you happen to have any (athough I have some ...
753 views

### How to implement visibility graph pathfinding in Unity/C# to detect paths (i.e. visibility connections) efficiently?

I am struggling with implementing continuous path-finding trough visibility graphs. Notice, I know that grids can be used even when movement is not trough grids (e.g. Theta*). But for my current needs,...
2k views

### How do I optimize 2D visibility cone calculations?

I'm creating a simple 2D game and got a little bit stuck with a visibility cone algorithm, influenced by walls and other obstacles on the map. The only issue I'm currently having, is that it's very ...
228 views

### Storing visibility graph for path-finding: do redundant and non-visible pairs of points have to be saved?

Using C# in Unity, I have recently implemented an algorithm that determines during run-time the visibility graph of a given scene in my game project (visibility between corners of obstacles). Now I am ...
66 views

### Determine whether an object is 'visible' at a given distance automatically?

I am creating an environment using procedural content. To optimise performance, I am batching small meshes ahead of time. For efficiency's sake, I don't want to batch objects that make only an ...
2k views

### How do I destroy a Unity prefab when it goes off-screen?

I made an infinite path using prefab.Path moving in the negative x direction. I want to destroy the path clone once it goes offscreen. My path move script is: <...
8k views

### How do I check whether a camera has unobstructed view of a GameObject?

I want to check if a GameObject is visible to the camera. The renderer.isVisible-method only checks if the camera is turned ...
2k views

### How to determine the visibility of a single vertex, given a viewpoint?

I have a 3D triangle mesh, and I want to know, given a viewpoint (defined by a model, view and projection matrix), if a certain vertex is visible or not. My approach was to render the mesh using ...