We’re rewarding the question askers & reputations are being recalculated! Read more.

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
17 views

How could I create those two meshes by creating procedural quads

I need to create 2 meshes procedurally and I don't know very well what order to give the vertices to show them correctly, is there any app/utility to help me establish those points? Images: Sapling: ...
1
vote
2answers
36 views

Mesh Triangulation that is inside<->outside aware

am working on an algorithm for procedural generation of 3D meshes for caves in a side-scroller game. The algorithm nicely computes contours and also points inside the caves that are supposed to be ...
0
votes
0answers
30 views

Having trouble with getting an image to fit on a face of a cube

I have a problem with a Unity project that I'm working on. I'm creating an 3D art gallery which will be developed into a VR application in the future. In a 3D scene, I have created a ...
0
votes
1answer
19 views

Mesh getting offset on combine because of worldmatrix

When I try to combine my mesh, it get offset to an other position, but the collider is still at the same place (because i dont delete and add it again). I saw a fix on internet that is to do: ...
0
votes
1answer
25 views

Mixamo: can animations (“without skin”) be re-used on any Mixamo rigged model?

I've discovered Mixamo very recently. I plan to use its auto-rigging capability on all my unrigged characters. The download option can either include the skin or just obtain the animation. My ...
0
votes
1answer
70 views

How do I use this Perlin Noise texture to change the mesh?

Using the Unity docs page on Perlin noise, I made this script: ...
0
votes
1answer
58 views

Draw a line along one continuous edge of a curved mesh

I have a rectangular mesh, but the mesh is curved: I want to draw a line along one side of this curvy mesh. Currently I can easily draw line along a side of a flat rectangular mesh by getting the ...
0
votes
0answers
19 views

Destroying cubes in combined mesh at runtime [duplicate]

How could I destroy cubes from a mesh? Once i've combined my cube to a single mesh, would it be possible to be able to destroy one of these cube but to keep a mesh ? Ive seen a video where te person ...
4
votes
2answers
104 views

How to cut a desired shape out of a mesh?

I want the player to be able to cut a hole through a wall, similar to what's shown in this video I know for the fact that it's really difficult to achieve, so I was wondering how I can cut a shape ...
0
votes
1answer
40 views

Specify the size of the points when building a mesh based on a point cloud

I create a mesh in Unity3D based on a point cloud in this way: ...
0
votes
1answer
46 views

Rotate mesh to normal

I have some instanced geometry (basic tube meshes) laid out in a grid, and I have a noise texture (normal map) that I want to use to rotate my instances with. So head pixel in my texture is a normal ...
0
votes
1answer
91 views

Physics.CheckSPhere is not working

I try to use Physics.CheckSphere to check if a coordonate is empty. I use three for loop to cycle threw a 2 x Y x 2 chunk. The problem is that it return true if the corner is touching the coordonate ...
0
votes
1answer
20 views

custom mesh object orientation is not correct using

I am making a custom mesh with the help of Traingulator script. At runtime, user can click and and generate a point then mesh creation start. Here is the way i am getting user input. ...
0
votes
0answers
35 views

Game Object's Vector3 changing through script without reason

I am trying to do a combine block script. However, I encountered 2 problems: the blocks / the combined mesh isn't showing up anymore when it was, all the blocks where at the same location Even ...
2
votes
1answer
51 views

How do I correctly show both sides of a plane in Unity?

I am trying to show both sides of a mesh. I understand this question has been asked a lot, but all of the answers I've found seem like they're written for Unity 5 and I can't find a "Cull" setting on ...
1
vote
1answer
45 views

Smooth shading along edges with duplicate vertices

On this generated mesh, I have sharp edges, because each square has duplicate vertices separate from its neighbours. I can't remove the duplicate vertices because I'm using them to provide unique UV ...
2
votes
1answer
52 views

On changing a voxel, don't recombine everything again, only modify the changed parts?

I'm working on a voxel based game, where destructible structures are made out of cubes. (Some of them has 3000 voxels) I solved the framerate issues by combining them, but after making it able to ...
0
votes
0answers
20 views

Unity - How to add bones to procedural mesh

Basically this is the set up: An N amount of prefabs are bundled together into a new GameObject. This is then merged into a single main mesh composited of M amount of material submeshes. The shape is ...
0
votes
0answers
24 views

Measure the length of the mesh

I have a boat race game. I have a curved mesh, that is the track. How can I measure the map(mesh) length, so I can place checkpoints on every 1/5 of the length?
0
votes
0answers
28 views

Unity: How to fix shadows with several meshes in different objects?

I'm creating many GameObjects and each one has a single mesh, created in a script. The problem is that I would like to draw them so that they behave like a single mesh. Is it possible? Or I must ...
1
vote
2answers
55 views

Calculating approximations of contact between two meshes

I'm looking for ways to calculate the degree of contact between two objects in a scene. I was thinking that calculating the hausdorff distance would be a useful approximation if it is then normalized ...
0
votes
0answers
28 views

DragonBones mesh gets light by the wrong side

So, I use DragonBones to get skeletal-animation in my Unity 2d game. The problem is that object is affected by light only from the back, while other objects(sprites, while the first one is mesh) from ...
0
votes
0answers
37 views

Can't refer mesh size after using .BakeMesh() in Unity

I can't figure out how to refer to the size of a particular mesh. The mesh is created through .BakeMesh(), then a box collider is added. Unfortunately the box ...
0
votes
1answer
368 views

Show Sprites on Overlap (Shader Graph) [2D]

I have a character sprite mesh and mesh renderer (The black wavy box). I am hoping to be able to overlay the black box onto the character covering the sprites but I am not sure how to do that. I ...
0
votes
1answer
491 views

How to change the mesh of the character in UE4?

I made a Bellsprout mesh in Blender, exported it as an FBX file, and imported it into UE4. I can insert it in the stage without problem, but I would like to use this Bellsprout mesh to replace the ...
0
votes
0answers
41 views

Hi,Dynamically modifying meshes in Unity3D

I'm working in Unity3D and I want to remove sections from a mesh at runtime similar to the idea of bombs removing sections of walls. In 3D modelling software this is a pretty standard Boolean ...
0
votes
1answer
119 views

LineRenderer on Mesh surface

Goal: Render distance lines between two points on the surface of a mesh-based primitive (i.e. sphere, cube, etc). Current Solution: Iteratively traverse distance line between two end points and "...
0
votes
0answers
16 views

TextMesh animation not working when attached to a new TextMesh object

I created an animation on one TextMesh object. Then I duplicated the TextMesh object (Ctrl-D) and disabled the first one. The same animation is - of course -attached to the new TextMesh. However, it ...
1
vote
1answer
105 views

How can one replicate the 'Quake Disruptor' of Wipeout XL/2097?

Following my previous question, I am wondering how one can achieve the same effect under Unity? The effect in action https://youtu.be/kzmmLeCwL0g?t=790 Description of the effect When you fire the ...
2
votes
1answer
129 views

Mesh rendering performance optimisation

I'm working on a libgdx implementation of mesh terrain and running into some performance issues. The terrain is represented by a number of mesh tiles, each mesh is made of vertices laid onto a 2D ...
0
votes
0answers
37 views

Why my mesh is flat and change position?

Befor Start: (It's basic cube) After Start: (It's must be Eye) Code: IngredientAsset: ...
1
vote
1answer
117 views

Unity SphereCast HitInfo Give me an interpolation of the normal surface?

I'm doing a SphereCast for a GroundCheck of a player. I have my Raycast hitInfo, and here in the picture at the left, I Debug.drawRay in black the direction of the hitInfo.normal every frame It seems ...
0
votes
1answer
54 views

split/divide/extract/separate mesh indices&vertex in n

I'm totally lost. I'm trying to split/divide/extract/separate a mesh into sub-meshes via bbox test. But I just realized that I need to properly split indices and vertex and I have no idea how o.o... ...
0
votes
1answer
70 views

Sometimes can't use the rendered mesh as a collider in Unity?

Most of the times I can use the Mesh Filter's mesh as collider in Mesh Collider But sometimes there is just nothing. No ...
0
votes
0answers
17 views

Unity inflates poly/vertex count but I don't have any lights?

Ok I have an issue with several meshes that have a lower poly count in blender, then when I export as fbx and bring into unity, the poly/vertex count skyrockets. I read here https://forum.unity.com/...
0
votes
0answers
31 views

Generating skeleton bind pose from vertex weights

Assuming that you know how many bones should be in the skeleton, and you have the bone hierarchy, is it possible to calculate the bind pose of the bones just based on the vertex weights? To elaborate ...
1
vote
0answers
61 views

Convert bones by bone matrix

I have a 3d-models from old game. They have the following structure: ...
1
vote
1answer
336 views

How can we achieve Earthquake Simulation in Unity - Simulation of P and S Waves

I Cannot use Water waves as P and S Waves are different than water waves. I tried to use it but not satisfied with the result. I am trying to simulate how Earthquake takes place in real time which ...
0
votes
0answers
351 views

Algorithmically fracture a mesh in Unity3D?

I want to create a plugin which shatters/fractures meshes, so I can make every object destructible if I want to. Like in Unreal's built-in feature. My quick approach to this problem is randomly ...
0
votes
1answer
483 views

Unreal 4 - How to access and iterate through the polygons of a mesh?

I'm newbie with Unreal Engine 4. I need to create a function which calculates the volume of a mesh, based on the following example: https://n-e-r-v-o-u-s.com/blog/?p=4415 To achieve that I created ...
1
vote
1answer
47 views

How do I determine distance of a point within a ProBuilder mesh?

As in the title, I have an effect prepped for my game which applies certain derived parameters to a post-processing effect after the player enters a boundary I created with ProBuilder. Finding how far ...
1
vote
1answer
218 views

Unity: How do I only show parts of objects that overlap [2D]

I'm working on a 2D Unity project where the player can only see objects in their field of view. I have successfully created a mesh that overlaps anything that would be in the player's field of view, ...
1
vote
1answer
249 views

Unity block chunk generation pattern

I am trying to do something like Minecraft game in Unity. Currently I am trying to generate a chunk of blocks, given dimensions. I can successfully create a chunk of N x 0 x 0 sized chunk, but due to ...
0
votes
1answer
296 views

Unity3D - Mesh appears black in parts that it shouldn't

I have a procedurally-generated mesh that I am generating to use as a terrain. It looks something like this (from above, and it changes slightly every time): It also looks fine when I view from the z-...
0
votes
0answers
95 views

TTF glyph to OBJ

I'm looking for a method to convert a TTF glyph into a triangle mesh. I've tried making my own font constructing my own indices and vertices but it didn't go well: ...
2
votes
2answers
766 views

How can I generate the smallest enclosing sphere from a mesh?

I have a polygon which is defined by a set of vertices and I need the smallest sphere encompassing the mesh. The spheres are defined by a position vector (x,y,z) and a radius. Is there an algorithm ...
0
votes
2answers
452 views

How can I convert my list of vertices and indices to a list of triangles?

I have a full 3D collision mesh that is represented by a list of vertices and another list of indices. I need to convert the list of vertices and the list of indices into a set of triangles. First I ...
0
votes
1answer
33 views

.md5mesh - multiple meshes with smooth normals

I have a .md5mesh which contains multiple meshes and I want to calculate smooth normals. The normals are correct but they don't work with multiple meshes. My first idea was to merge all meshes, then ...
0
votes
1answer
354 views

Removing duplicate vertices on a mesh

I have a set of vertices and another set of indices. Sometimes I find that I have duplicate vertices in my mesh. I tried at first to check if two identical vertices were in the array of vertices but ...
2
votes
2answers
195 views

Why does Unity's MeshCollider only use SharedMesh?

For components like MeshRenderer, Unity uses two references to mesh through script--mesh, and sharedMesh. My understanding as of yet that setting a "sharedMesh" will affect every GameObject that uses ...