Questions tagged [mesh]

A collection of vertices, edges and faces that defines the shape of objects

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

How do I distinguish a network of triangles connected by only 1 vertex as separate meshes?

I'm having trouble figuring out an algorithm to do this. It also seems to be very performance heavy potentially. I'm currently using Unity's Mesh component for this. In this example, I want triangles ...
0
votes
1answer
26 views

Blender loop cut over multiple objects

I have a following object in scene which consists of multiple faces (the orange selected ones). As you can see from the scene collection tool it's actually multiple objects selected at once. I would ...
0
votes
1answer
45 views

Given a 3D grid-based map system, how to find the middle point of an edge of the mesh of a tile on the grid

I have a grid-based map system. The grid is aligned to the X and Z axes. The tiles on said map are 3-dimensional, but flat, and can be located anywhere on the Y-axis. If I need to get a Vector3 of ...
0
votes
0answers
32 views

Unity - Creating a plane that you can deform on runtime creating a path

So I'm doing this project which is similar to Castle Raid (https://youtu.be/ZiAv1smyCKM) And I'm having trouble implementing the path creation by deforming a mesh and making the players move on it. I ...
0
votes
1answer
41 views

How to simplify a 2D mesh with messed up topology while keeping as much of the shape as possible and as efficiently as possible?

I'm trying to figure out a way to simplify any 2D mesh during runtime in Unity with broken up topology so that it will have more uniform topology and retain as much of its original shape as possible. ...
1
vote
1answer
50 views

Having trouble implementing edge collapse operation with half-edge data structure

I'm trying to make a half-edge data structure to interact with meshes in 2D space in Unity but I'm having trouble with implementing an edge collapse operation that merges one vertex into its twin half-...
0
votes
0answers
19 views

What is the most efficient way to keep a vertex contained within a network of edges/vertices?

Given this picture, I want to move or displace the red vertex but I don't want it to pass the orange edge boundaries or the blue vertices. I either want to stop the red vertex when it gets close ...
1
vote
0answers
20 views

Splitting the mesh of a plane into submeshes

I am struggling a bit with this. I am trying to split a plane recursively into subplanes, so that frustum culling is more efficient. I am doing that by dividing the indices into the 4 subplanes for ...
1
vote
0answers
42 views

How to project 3D meshes onto a 2D plane producing a 2D polygon silhouette?

I would like to project a number of separate 3D meshes onto a 2D plane and create a 2D polygon representing the outline of all the meshes. I would also like to to create multiple 2D polygons if the ...
0
votes
0answers
30 views

How do I distinguish if parts of a mesh are together or separate/disconnected?

Let's say I have a GameObject that has a MeshFilter with this mesh data. These shapes are generated at runtime and all considered 1 mesh under the MeshFilter. What I want to do is separate the two, ...
1
vote
0answers
22 views

Problem detecting outer edges properly when deforming mesh dynamically

I've been using this edge code (https://answers.unity.com/questions/1019436/get-outeredge-vertices-c.html) for detecting outer edges. ...
1
vote
0answers
48 views

How do I cut mesh partially with EzySlice?

I'm using the EzySlice framework to cut meshes (https://github.com/DavidArayan/ezy-slice). So far it can cut a mesh but infinitely but I want to be able to cut partially like this: As you see in the ...
0
votes
1answer
56 views

why does my mesh render on top of UI?

I've got some UI elements and a 3D mesh imported from blender. I've tried stuff like sorting layers, so that I render my 3D mesh below a canvas UI element(side panel), for which I put my 3D mesh ...
0
votes
1answer
144 views

How can I create a custom size plane without scaling in Unity by code?

I'm planning create a plane with the size like 16x1x16, however, I wanna the scale of it is always 1x1x1. I found something useful information Unity change size of cube mesh. It aims to a cube mesh, ...
0
votes
0answers
38 views

Changing block shape to blend with adjacent blocks

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 ...
0
votes
1answer
22 views

gl.drawArrays() not rendering whole mesh

I have a mesh that is generated using the marching cubes algorithm that is drawn using gl.drawArrays(), however the whole mesh isn't rendered, only part of it. I checked if the count I was specifiying ...
0
votes
0answers
44 views

Performant way to generate a cylindrical mesh along a dynamic spline

I am working on a mobile game, in which I am tiling a cylindrical mesh along a dynamic spline. The points of the spline are changing each frame, so the vertex positions and normals of the tiled mesh ...
1
vote
0answers
42 views

Why instantiated Static Mesh gets scaled in Unreal Engine 4? [closed]

Building a project in Unreal Engine 4.26 while trying to increase performance of the videogame I ended up using instances of static meshes where possible. This generated an issue: My instantiated ...
0
votes
1answer
30 views

How to map texture pixels to the corresponding 3D positions?

I have a mesh stored in .obj format with a texture image in .png format. For any "defined" pixel in the texture image, I'd like to compute the corresponding 3D coordinates when the texture ...
0
votes
1answer
125 views

Improve cube rendering performance in lwjgl

I've been coding a minecraft-like game in lwjgl using cubes. I've reached a point where I can render 6 chunks of blocks before it starts lagging. I've searched online for optimizations and one of the ...
0
votes
1answer
32 views

How can I create a good physics colliders for these models in Unity3D

I need to make a 3D colliders in Unity with those forms. I don't want to use any Asset Store asset if it's possible. There are two models: both are cylinders but they have some deformations (see image ...
0
votes
1answer
30 views

filter camera output by mesh

(skip to edit for the actual problem) I have a simple plane mesh generated via script (has arbitrary shape). I want the shader to discard (set to black) all pixels that aren't passing through that ...
0
votes
0answers
22 views

Unity 3D - CSG / Geomodding meshes runtime

Although I'm not very advanced in Unity, I've been looking into CSG/boolean mesh deformation to see what's possible. I want to break a hole in basic wall meshes at the point the player clicks on, ...
2
votes
1answer
102 views

How to make a custom 3d view cone that mixes orthographic and perspective cameras

I'm trying to make a camera that displays objects the same height no matter the distance, but still changes width relative to distance. Similar to having an orthographic view vertically and a ...
0
votes
0answers
98 views

How to ensure Unity does not rearrange the sub-meshes of a mesh on import?

having a bit of a head scratcher problem here. I have my artist's making multiple unique meshes in Maya that contain 3 materials. Each material is assigned to a sub-mesh in a specific order. This ...
1
vote
0answers
41 views

How do I play multiple animations at once with an MonoGame skinned mesh?

I am working with the SkinnedMesh from this tutorial. I am at the point where I want to let my character run (which already works), but when I press the punch key on my keyboard, I only want the upper ...
0
votes
0answers
26 views

Get Skeletal Mesh Vertex Position in Niagara

I have a custom HLSL node in a simulation stage in Niagara. One of the input variables to this node is of type Skeletal Mesh and I want to get the position and normal of a given vertex on that ...
0
votes
0answers
36 views

How can I achieve this "stroked lines" effect?

I have a collection of arbitrary vertices and edges that are connected, but which do not necessarily form triangles. These vertices and edges mostly fall along a flat plane, but have some height ...
0
votes
0answers
31 views

How can I detect and hide faces inside an object when combining two or more meshes?

I am trying to make a game where the player can make vehicles out of parts. To apply proper physics to the vehicles, like drag and buoyancy, I would like to get the outer hull of the various parts ...
0
votes
1answer
190 views

Procedurally generated mesh makes weird shapes

I'm developping a procedural terrain generator in Unity 2020.3, using Sebastian Lague's tutorials and knowledge i've gathered through college projects. The heightmap looks just fine, and i had no ...
1
vote
0answers
55 views

How can I calculate the inertia tensor of a hollow object defined by a triangle mesh?

I want to calculate the mass, center of mass, and inertia tensor of player created objects. Some of the objects will be hollow instead of solid. I am creating a closed triangle mesh for their object. ...
0
votes
0answers
30 views

How to optimize Floor Meshes with different material in unity

I have several meshes (floor tiles) that consist of unique materials as they have different textures. I see that it is taking too many batches and it has around 100m vertexes. Is there any way to ...
0
votes
0answers
23 views

Dynamic UI Canvas on Mesh

I have dynamically generated images in WorldSpace Canvas and I need to put them somehow on shield that crashes. Is it possible tu put that canvas on mesh shader texture or render it on texture? How ...
0
votes
2answers
149 views

How mesh transformation works under the hood

We can look at the most popular engines like Unity and Unreal engine (maybe Godot and other). As far as I understand (at least I would do this), we store the original mesh, and then for every change (...
0
votes
1answer
33 views

Can you help me resolve a bug in mesh collision code?

I have entities which walk along a 3D mesh. I move the units along their x,z axis, and every frame I update their y-position according to the quad or triangle they are standing on, using Barycentric ...
1
vote
1answer
102 views

Set object rotation according to the outer vertex in unity

I am able to get the outer vertices of a mesh using this and able to generate cubes on outer edges of the mesh. Here is my code: ...
0
votes
0answers
16 views

Attempting to remove extra "edges" from truncated icosahedron lead to excessively global concequences

I need a truncated icosahedron. Blender lets me do that with add -> mesh -> math function -> regular solid (assuming the extra plugin is installed.) So far so good. However, the mesh that ...
0
votes
2answers
110 views

How do you have the clothing mesh hide the body mesh underneath?

How do you have the clothing mesh hide the body mesh underneath, to prevent odd patches of body from sticking out in tighter modular clothing? Is there some sort of shader trick that can have the ...
0
votes
0answers
164 views

Create Mesh in gap between tiles (in Unity3D)

I am loading two kinds of tiles (meshes in tile format) in Unity, both are placed in the environment correctly but there is a gap between these two tiles (see the picture below). I want to fill this ...
1
vote
0answers
36 views

How to create fallout intensity on a generated mesh in Unity?

So I was able to generate a circle mesh in Unity to basically see the other characters when they are inside of it, and hide the characters when they are outside of it, and partially hide and show the ...
0
votes
1answer
72 views

Unexpected result when generating world with 2 perlin noises

I try to generate a world with a temperature and an humidity noise to generate biome based on the y values of the two. I take the y values and round them on a 33 base for the humidity and 25 for the ...
0
votes
1answer
188 views

Building meshes conforming to terrain deformation

I have an uneven terrain on which the player is supposed to build buildings. For most structures I can just fudge the foundations, have them extend through the terrain. For roads, pipes, tracks and ...
2
votes
1answer
326 views

Unity: How can I find the center position of a particular triangle?

I need to face an object from a central point directly through any one of many triangles which are faces on an icosphere whose position is centered on that point. Is there a way to get the center ...
0
votes
1answer
37 views

Unity mesh only rendering one set of triangles

I've been using Unity3D to procedurally generate terrain with Perlin Noise and I've come across a problem where the mesh that I've constructed only renders one set of triangles. The following is my ...
1
vote
1answer
52 views

Why does my material look blotchy on this mesh?

This is a generative mesh - wireframe looks like this Here's the material But the shaded object looks like a tie dye tshirt I've no idea what settings are causing it to look like this. These are ...
1
vote
0answers
81 views

Skeleton bone in incorrect spot in-game yet, blender rig, skeleton mesh and physics asset are all correct and behave properly

I've made a custom character and rigged it in blender. Then exported/imported into ue4. It behaves properly in the PHAT and the skeleton mesh looks fine and it all behaves properly in the simulations. ...
0
votes
0answers
48 views

Road Intersection mesh generation

For the last month I was learning about meshes and how procedurally generate them. For what I need it looks very straightforward. For my little app I planning to have a road tool (very simple), user ...
0
votes
0answers
36 views

Are there drawbacks to resizing mesh renderer bounds?

I had a problem yesterday where some of the meshes were not visible. I figured out the problem, which was that the mesh renderer bounds were not in the cameras field of view. So, in order to make the ...
0
votes
0answers
374 views

How to make 3D snake with procedural mesh in Unity

Im currently learning Unity3D and I would like to recreate the old Nokia game "Snakes" (example video: https://www.youtube.com/watch?v=FXg3jVG-tXs&ab_channel=aantv, play it at 1:30 and ...
0
votes
0answers
58 views

Unity mesh - delete quads

I'm trying to delete quads in unity. The code here creates a procedural grid. Setting the gridSizeX to 5 and gridSizeY to 3, creates a 6 by 4 grid. I want to delete the first row of quads when I click ...

1
2 3 4 5 6