Skip to main content

Questions tagged [computational-geometry]

Computational geometry is the study of solving geometric problems using efficient algorithms and data structures, often in real time.

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

I need to efficiently compute minimum polygon separation along X or Y axis, i.e. the distance you can move a polygon along X or Y until it collides with another one. I know how to calculate it, but ...
Paul Jurczak's user avatar
0 votes
1 answer
69 views

The stated assertion that a point outside some intermediate Minimum Enclosing Sphere is on the boundary of the final Minimum Enclosing Sphere seems unsupportable. It is true only for the first point ...
WernerJuengst's user avatar
0 votes
1 answer
75 views

I'm trying to render a cone at the gpu for some effects. I'm using the parametric equation provided here. I ended up with the shader below intended to work with an unorderedaccessview target (DX11). I'...
philB's user avatar
  • 333
1 vote
0 answers
111 views

I am trying to simulate a page curl effect in my custom OpenGL based rendering engine. I initially implemented the version described in the paper "Turning pages of 3D electronic books" where ...
Chaos's user avatar
  • 153
2 votes
1 answer
123 views

I'm a fairly new game developer, and I've been working on a custom mesh editing system. I've been able to implement edge bevelling (almost, stuck on a division by zero problem), Catmull-Clark ...
KING MOOSE's user avatar
0 votes
0 answers
60 views

I am trying to calculate tight fitting of shadow map texture based on camera frustum. Since the camera is always going to be looking down on the Y=0 plane, I ...
tchayen's user avatar
  • 133
0 votes
1 answer
353 views

I am exporting my Unity terrain to a mesh. Because the terrain is big, I also split it into multiple chunks. Moreover, I also generate chunk LODs. I enable a certain chunk LOD in-game based on the ...
UnknownUser's user avatar
0 votes
1 answer
113 views

I'm currently implementing a method for subdividing an icosahedron found here that isn't quite working as expected due to the artifacts created (and the way the triangles are oriented) The problem ...
Chillzy's user avatar
  • 47
1 vote
0 answers
126 views

I am currently trying to replicate skeletal mesh slicing, akin to something Metal Gear Rising: Revengeance did. So far I've managed to successfuly get some puzzle pieces of this whole thing together, ...
aallfik11's user avatar
1 vote
2 answers
112 views

I'm having problems generating faces in a chunk in OpenGL C++. For example, when I generate faces, they are generated correctly but always at the end of the chunks some faces are not generated. ...
FandoraStudio's user avatar
0 votes
2 answers
180 views

When an object collides with another object, does unity calculate the normal, or return it from the list of normals?
Nato's user avatar
  • 9
0 votes
0 answers
109 views

I want to make a hole of N vertices in the face of a Cube, I'm adding just four like a square in this post to be simple, but eventually I want to be able to add as many as I want and maybe in a ...
ガブリエル Gabriel's user avatar
0 votes
1 answer
405 views

I could check for the distance of a vector from the sphere's center to the plane's center, but that would be inefficient, since there are multiple positions where they may not be intersecting but ...
Nato's user avatar
  • 9
2 votes
0 answers
406 views

I want to add LED strips to objects at runtime. The led strip is a very simple rectangular mesh that is generated at runtime. A shader then just draws LEDs down the length of the strip. Here is an ...
Charl Cillie's user avatar
0 votes
0 answers
324 views

I have an arbitrary array of points that describe vertices of the polygon 2D, they ar in order. To generate plane mesh for that, I need to generate tris. For something like circle/hexagon/square it is ...
Kirikan's user avatar
1 vote
0 answers
47 views

The polygons are small 3D parts of a quasi sphere centered in the origin and a solution that works in the plane can easily be made to work in this world. I tried to move the outline inwards by using ...
August2323's user avatar
1 vote
0 answers
110 views

I'm making a simulation of a milling machine - something a bit like this diagram: At the top there is a cylinder mesh representing the milling tool. Below it is a cube mesh representing the material ...
Zhukov Artem's user avatar
0 votes
1 answer
122 views

The goal is to be able to climb any ledge, even if the ledge is an odd shape. Therefore, I found a script that searches for viable "climb holds" along any mesh of any shape. You can then use ...
imdog's user avatar
  • 3
0 votes
0 answers
168 views

I am in the process of programming a Minecraft like game in Unity. I am currently implementing the block mechanics. My goal is that when a block is placed, it has an effect on its neighboring blocks ...
Reddragonka's user avatar
1 vote
1 answer
122 views

I've got a pretty simple tile based 2d top-down map with an array of walls. In order to figure where to cast light and shadows, I've generated an array of vertex coordinates along the walls like so: ...
q11's user avatar
  • 11
0 votes
3 answers
2k views

Currently I have refined voxels, I want to smooth it to achieve accurate projection. After some web search, I came across smoothing algorithms such as Catmull-Clark, Doo-Sabin etc. Along with this, I ...
Aravindh SK's user avatar
1 vote
1 answer
110 views

I have a line connecting two points of my model. I see a projection of this line on my screen and a want to map a point of that projection to the corresponding point in my model PoV. Let ...
thenlevy's user avatar
1 vote
2 answers
1k views

I have an origin point, and normal vector of a 3D plane. I want to calculate 4 vertices to use as the corners of a 2 triangle quad to render the plane.
kevzettler's user avatar
0 votes
1 answer
277 views

I'm learning about the graphics pipeline using C++, HLSL and DirectX 11 for my course. I'm currently tesselating a cubed sphere with an applied height map. My issue is figuring out how to recalculate ...
Cerberus's user avatar
0 votes
1 answer
117 views

I'm working on a real-time archviz renderer and I need to place a label/sticker/decal on walls, which have openings. So one way to think about this is a simple (possibly concave) polygon with holes. ...
skrat's user avatar
  • 173
0 votes
2 answers
192 views

Is it possible to automatically detect walls in polygon soup? Of course it's hard to strictly define what a wall is, my slightly vague definition would be: A wall is a largest possible box (not ...
zduny's user avatar
  • 407
0 votes
0 answers
591 views

I'm in need of an algorithm to find the best spot for a circle with a fixed radius r to cover as many points as possible on a 2D grid, preferably O(n). Currently I tried 2 different approaches: The ...
LuaNoob's user avatar
  • 161
3 votes
2 answers
13k views

I am looking for a way to calculate surface area of a 3D mesh object and found this code from a Unity forum: ...
Muhammad Faizan Khan's user avatar
1 vote
1 answer
159 views

I'm trying to understand the logic behind Mamou and Ghorbel's algorithm in their paper A Simple And Efficient Approach For 3D Mesh Approximate Convex Decomposition. I cannot understand what is the ...
John Katsantas's user avatar
0 votes
0 answers
72 views

The title pretty much explains it but I'm gonna go into more details. We have 3D mesh object and we want to decompose it into separate objects so that each one of these objects can be seen completely ...
John Katsantas's user avatar
2 votes
2 answers
998 views

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 ...
Gouz's user avatar
  • 121
3 votes
4 answers
199 views

There are multiple circles with same radius, given another circle in different radius, how to detect the another circle is fully in multiple circles area. Image below shows left samples is in the ...
jiejieup's user avatar
7 votes
1 answer
161 views

Currently, I am playing around with a terrain technique called Vector-Field terrain as created and used for the game Halo Wars. I have successfully recreated the technique. However, I'm having ...
moonshineTheleocat's user avatar
1 vote
1 answer
209 views

Have two limited planes. That means just squares or stripe in 3D space (or two connected triangles on the same plane). What I want to know is exactly how (and whether) they collide. My first approach ...
DragonGamer's user avatar
0 votes
1 answer
51 views

I'm trying to lengthen a line, by a certain amount. I want to apply the modification to both points on the line, expanding it in both directions. without moving it from it's current position (center ...
TolMera's user avatar
  • 103
4 votes
4 answers
526 views

I'm reading Hierarchical z-Buffer Visibility by Ned Greene et al. and they state that traditional Z buffering makes reasonably good use of image-space coherence in the course of scan conversion. I ...
0xbadf00d's user avatar
5 votes
4 answers
601 views

So, the best way I can think of how to explain what I need is the following (images used here are just random images found trough google image search). What I am trying to create during run-time is ...
Andy Astro's user avatar
5 votes
2 answers
484 views

What is the most efficient way for finding out the vertices of the polyhedron formed by the overlapping area of two rotated 3D boxes? If it is still confusing what I mean by "polyhedron formed by...",...
MAnd's user avatar
  • 4,927
0 votes
0 answers
154 views

I've a need for 3D triangle-triangle collision detection using integer math only. Unfortunately, I'm not in a position where I can use 64-bit integers (only 32-bit) and my vertex values can be larger ...
Kaganar's user avatar
  • 121
0 votes
1 answer
1k views

Given a mesh, I want to generate another mesh that is effectively a shadow volume of this mesh. I am looking for an algorithm/solution/implementation/reference that can do this under the following ...
Adi Shavit's user avatar
15 votes
6 answers
8k views

I have two AABBs that are moving, what's the fastest way to check if they will intersect under a frame? By moving I mean not just to check with the usual rectangle intersection method, I mean some ...
super's user avatar
  • 220
6 votes
2 answers
6k views

I want to implement the marching cubes algorithm from scratch, but I'm stuck at the polygon generation phase (building edge loops with correct orientation and triangulating them). Obviously, I should ...
GameDevEnthusiast's user avatar
-1 votes
1 answer
292 views

i want to implement an effect like this. for example, let's assume the clay are made of particles. liquids of clay flows for a while, then it becomes dry and rest.finally those particles becomes only ...
qxsl2000's user avatar
26 votes
8 answers
83k views

I've got two elements, a 2D point and a rectangular area. The point represents the middle of that area. I also know the width and height of that area. And the area is tilted by 40° relative to the ...
Stacky's user avatar
  • 395
2 votes
1 answer
5k views

I want to have an object follow around my mouse on the screen in OpenGL. (I am also using GLEW, GLFW, and GLM). The best idea I've come up with is: Get the coordinates within the window with ...
kevin james's user avatar
7 votes
1 answer
16k views

I have code for circle-circle intersection. But I need to expand it to 3-D. How do I calculate: Radius and center of the intersection circle of two spheres Points of the intersection of a sphere and ...
padawan's user avatar
  • 253
3 votes
1 answer
366 views

In this paper, in the Distance field computation section, it says that an axis aligned integer bounding box of a Prism has to be calculated. Can someone explain what an axis aligned integer bounding ...
Muhammad Omer's user avatar
3 votes
2 answers
318 views

I have a topological skeleton of a 3d maze-like level (think Descent[I]/II). It looks like a tree where each node is a vertex in 3d-space. If it were on a 2d plain, I would "simply" use this to ...
AturSams's user avatar
  • 10.6k
4 votes
1 answer
414 views

I'm tinkering around with a 2d game where obstacles are polygons of arbitrary shapes, sizes and locations, and movable entities (players/enemies) can also be of arbitrary sizes. What's a good general ...
levand's user avatar
  • 141
13 votes
1 answer
18k views

I'm curious to know which is better for games: quads or triangles? Wouldn't quads be better for rendering performances and smoothing out tessellation?
SICGames2013's user avatar