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.

Filter by
Sorted by
Tagged with
0
votes
0answers
24 views

2.5D z-buffering doesn't work properly

I'm currently making a 2.5D FPS game in Java. And because I want to make more diverse maps I made taller walls but I have no idea how to change z-buffer code to handle walls with different heights. ...
0
votes
1answer
41 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 ...
0
votes
2answers
59 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, ...
1
vote
2answers
311 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 ...
2
votes
0answers
122 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?
1
vote
0answers
142 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 ...
4
votes
1answer
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 ...
1
vote
1answer
137 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 ...
2
votes
1answer
217 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 ...
3
votes
1answer
719 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,...
0
votes
1answer
65 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 ...
5
votes
2answers
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 ...
0
votes
1answer
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: <...
4
votes
3answers
7k 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 ...
2
votes
2answers
167 views

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

Currently, I have this in each object's renderer's update method: ...
2
votes
2answers
1k 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 ...
3
votes
1answer
390 views

Determining whether an object is in field of view considering obstacles

I'm thinking of stealth games where an object has a certain field of view that you want to avoid otherwise game over. The field of view may be linear or circular or any arbitrary group of pixels/...
2
votes
2answers
328 views

Calculation: Is a sphere/square/plane visible from a certain point?

I'm searching for a way to detect if a form (shape can be changed if algorithm requires it) is visible from a single point in a 3D tile-based world. This should be used as some kind of wall-hack ...
1
vote
2answers
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 ...