141 questions
1
vote
0
answers
170
views
How to terraform terrain generated with marching cubes in a right way?
I implemented an algorithm to fill the RWTexture3D with density values according to y coordinate of the value using compute shader. Basically, density[id] = id.y * 0.01 - 0.5. So my densities are in a ...
1
vote
1
answer
165
views
Finding faces with skimage.measure.marching_cubes returns in weird offset based on meshgrid limits
A collegue of mine recently tried to visualise strain moduli using matplotlib. If you do not know what that is: Here's a link if you are interested. https://www.degruyter.com/document/doi/10.1524/zkri....
0
votes
0
answers
115
views
How to convert 3D images into the point clouds?
The point cloud, a set of points representing the external surface of objects, is commonly generated by 3D scanners or photogrammetry software. It alleviates the direct computational resource demands ...
0
votes
0
answers
572
views
VTK marching cubes or contour for surface reconstruction using python
I am new to VTK python. I have a csv file with 8000 point (X, Y, Z) and corresponding 8000 signed distances (sdf)
I am trying to read the data and apply VTK filter to reconstruct the surface at sdf = ...
1
vote
0
answers
151
views
Weird Lighting on Marching Cubes mesh in Unity3D
I'm working on an implementation of the Marching Cubes algorithm in Unity. I just implemented smooth shading to my mesh and now I'm getting some weird lighting effects. I'm new to this algorithm and I ...
0
votes
1
answer
1k
views
Unity URP - Trying to draw a mesh using vertices computed in compute shader without reading back to cpu to assign to mesh object
I'm working on terrain generation using marching cubes. As of now I'm able to generate the terrain vertices in a compute shader but I can't figure out how to draw the mesh without reading the vertices ...
0
votes
0
answers
426
views
How to threshold out small elements in python marching cubes
I am using the python scikit-image marching cubes implementation to create real time moving surface meshes. I am running into a problem where sometimes I get really small surface elements, or else ...
1
vote
0
answers
93
views
Marching Cubes not rendering properly after n cycles
I have an issue where I made a marching cubes algorithm and it works perfectly, up until rendering an arbitrary cube n, where n is dependant on the dimensions of the render area, where any cube after ...
0
votes
1
answer
2k
views
Is it possible to use multiple compute buffers in compute shader in HLSL in Unity?
Is there any way to use two buffers in compute shader in HLSL in Unity? I need to use one to input some scalar values on a grid and one to get back vertex array generated by marching cubes.
0
votes
0
answers
333
views
Implementing Transvoxel algorithm, Gaps and Odd Mesh formations
I am trying to implement the Transvoxel algorithm for a game I am working on but I'm noticing some weird issues in the mesh generated:
Not sure why there are gaps and why the sphere has fins behind it....
0
votes
1
answer
133
views
Physics.Raycast not working with a Marching Cubes -generated mesh
What it spits out
My raycast spits out a position way off from what it's supposed to be. I'm trying to place objects procedurally on a procedural mesh. I've been scratching my head at this for a while....
0
votes
1
answer
1k
views
Converting indices in marching cubes to original x,y,z space - visualizing isosurface 3d skimage
I want to draw a volume in x1,x2,x3-space. The volume is an isocurve found by the marching cubes algorithm in skimage. The function generating the volume is pdf_grid = f(x1,x2,x3) and
I want to draw ...
1
vote
0
answers
182
views
Marching Cubes Algorithm not Registering a Point's Value
I am generating a sphere with the marching cubes algorithm, the sphere is split up into chunks and whenever I try to terraform near a chunk border, instead of a bump being added to the sphere a rift ...
0
votes
1
answer
602
views
What do the coordinates of verts from Marching Cubes mean?
I have a 3D generated voxel model of a vehicle and the coordinates of the voxels are in the vehicle reference frame. The origin is at the center of the floor. It looks this:
array([[-2.88783681, -0....
-1
votes
1
answer
75
views
How can I speed up this program written in Python?
The following program is a solution to the Marching Square problem in Python:
from typing import List
def GetCaseId(Point_A_data: float, Point_B_data: float,
Point_C_data: float, ...