Questions tagged [mesh]
A collection of vertices, edges and faces that defines the shape of objects
323 questions
1
vote
1
answer
70
views
Icosahedron missing triangles
I'm trying to create an icosahedron (I've been trying to figure this out for about a week).
Basically, I followed this article to create an Icosahedron mesh in code, and the positions of the vertices ...
0
votes
0
answers
20
views
Easy 2d custom shader for Unity 3d: charts, flat/ortho mesh, etc
I just need to draw a flat mesh (say a 2d graph) on top of everything. What could be easier? create an object, adding it a mesh precalculated in homogenous (-1,+1) coordinates to match ...
0
votes
0
answers
30
views
"Mesh is empty!" error when generating collision shape from mesh
I have a very basic mesh imported for this example. I just resized the default blender cube to a more plane-like structure and exported it into glb and then imported it in Godot.
In Godot, I created a ...
0
votes
1
answer
52
views
How can a quad be triangulated consistently in 3D? [duplicate]
I'm making a building game and the terrain and modelling system are based on cubes made out of 8 corners each. Players can manipulate the corners to make other shapes.
When you take a quad (ABCD), ...
0
votes
0
answers
26
views
NVIDIA Warp Defomable Mesh using add_soft_mesh
I am trying to simulate a deformable/soft mesh falling onto the ground plane using the NVIDIA Warp framework, but I get the message "inverted tetrahedral element". I downloaded the Stanford ...
0
votes
1
answer
49
views
Mesh normals create square pattern on surface
Whether I import a smooth shaded mesh from Blender or I generate a mesh in Unity manually using Unity's built in normal calculation function, I get a square grid pattern showing for the shading of my ...
0
votes
0
answers
34
views
Unity high res mesh brighter than low res mesh despite using the same material
I'm currently making an LOD system for terrain. I have a high-res mesh:
And a low-res mesh:
As you can see, the high-res mesh is significantly brighter than the low-res mesh. They are definitely ...
0
votes
1
answer
254
views
Unreal Engine Import Warning "The following bones are missing from the bind pose"
Problem
I'm receiving the following message while importing the character from mixamo.com. It does not happen for all characters but in some of them.
The following bones are missing from the bind ...
0
votes
1
answer
94
views
Z-fighting or mesh flickering in Unity webgl while it is correct in standalone
Some meshes are flickering in WebGL while they work smoothly in the standalone application. This happens with different projects. To resolve the issue, I have to adjust the camera's near clip; ...
1
vote
0
answers
38
views
Get all the vertices my game object covers
I want to get all the vertices of an 3D object.
I'm using this:
...
0
votes
0
answers
32
views
LOD selection issue
I have been developing an LOD algorithm similar to Nanite's style. I have been developing the algorithm using Vulkan .However, I encountered problems with LOD selection. It seems that the algorithm ...
0
votes
0
answers
115
views
How to compute screen-space error for LOD selection?
I'm developing a LOD selection system and I would like to select a LOD level based on screen-space error. Could someone explain how I can accurately compute the screen-space error?
0
votes
0
answers
25
views
Select polygon (and create submesh) by color of texture?
For a procedural unity mesh operation:
What is a performant way to select polygon (and create submesh) by color of texture?
Raycast hit a point on the mesh, then paint bucket search for the same ...
0
votes
0
answers
90
views
How to fix UVs of spline tunnel/cylinder mesh?
I have created a tunnel using unity's spline tool. And I'm creating a custom shader for it in shader graph, and I would like to add bumps inside of the tunnel. The problem is in how the UVs, vertices ...
1
vote
2
answers
158
views
How does LOD (Level of Detail) work in Unity?
There are many Unity assets that create simplified LOD's for many complex or big meshes. This LOD technique will make the apps run faster and more efficient.
I am new to Unity and LOD. So, I am ...
1
vote
1
answer
469
views
In Godot, how do I reposition the center of my mesh?
When importing a Unity package to Godot via Unidot importer, I noticed that a few imported models have their child rotations and transformations off-center from their expected points.
For example, ...
0
votes
1
answer
40
views
How do I go about Mesh Simplifcation in generating multiple LODs?
I have been recently looking for any information on creating multiple LODs (level of detail) for an inputted mesh. However, there does not appear a lot of articles or pseudo code on how to go about ...
0
votes
1
answer
86
views
Detecting Mesh Geometry Irregularities in Unity
I am trying to create a function to detect mesh geometry irregularities — for instance, the mesh possibly contains a missing face or possible normal flip problem.
To detect the missing face, I ...
0
votes
0
answers
47
views
Rotation inside MeshInstance3D surface plane
I'm trying to make a representation of a plane that rotates around a hole in a MeshInstance3D.
So far I've managed to make the circle's hole, but I can't make the ...
0
votes
0
answers
57
views
Disconnected Limbs when Auto-Rigging
I'm new to Blender and rigging, and I probably have a fundamental misunderstanding of something.
In Blender, I created a humanoid model, following directions from a Blender/Unity book. The model only ...
0
votes
0
answers
44
views
Some faces of mesh are showing much darker than they should be
Hello,
My traffic light model has some dark faces and I can't seem to understand why?
I am using OpenGL.
This is my fragment shader:
...
1
vote
1
answer
189
views
godot importing mesh files without the inheritances of useless spatial nodes
when you drag and drop a folder with GLB files in godot, when you access those files with code... they are automatically imported with useless spatial nodes as their root scene.
like swordmesh1 will ...
0
votes
1
answer
63
views
Custom Mesh with single texture - suspected uv issues
I created a script that allows me to change my meshes configuration while the app is running. I don't know meshes all that well and am running into issues with texturing. How do I need to set my uv's ...
10
votes
3
answers
9k
views
How do game engines avoid recalculating normals upon mesh rotation?
Assume that a face of a mesh is defined by vertices A, B, C and that the normal of the face ...
0
votes
0
answers
98
views
How to make a hole of N vertices in the face of a Cube
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 ...
2
votes
0
answers
248
views
Wrapping a mesh around another
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 ...
0
votes
0
answers
50
views
Stitch meshes with different level of detail
I have an implementation for generating a mesh using marching cubes with different levels of detail.
The issue arises when transitioning between meshes with higher vertex density (smaller scale meshes)...
0
votes
0
answers
453
views
Skinned Mesh Renderer - In Unity I can't change the blender modified mesh
I downloaded two assets from the Unity store, with the first one I built a modular character (head, torso, legs), then I took another one from the same author, to have more body "modules", ...
0
votes
0
answers
71
views
I'm experiencing mesh pop-in on Godot 4.0.3 web export; how do I fix this?
I'm working on a game jam using Godot 4.0.3, and I'm intending to export to HTML5. The game works perfectly on native, but on a browser, meshes tend to pop-in when they're closer to the player than I ...
2
votes
1
answer
77
views
"Subdividing" a quad with uneven side divisions?
I'm trying to generate an arbitrary quad mesh with each side having a different, arbitrary number of vertices, ideally with a fairly evenly-size distribution of triangles making up the final mesh, ...
1
vote
0
answers
37
views
How do I rotate OBJ submeshes relative to themselves (or arbitrary point, as opposed to relative to the whole model)?
I'm creating my own flight simulator game from scratch, using Swift and Metal, for learning purposes, and I'm wondering how I can move certain parts of my aircraft model.
My model is a free OBJ file ...
0
votes
0
answers
140
views
How do I blend the edges of triangles on a mesh
So in Unity, I have a mesh. The mesh is made up of a series of triangles that have different textures for each triangle. The problem is that it provides a very hard edge to the triangles and I would ...
0
votes
1
answer
46
views
Material going to oposite side in procedural mesh creation
Tried to instantiate this gameobject procedurally, material texture went to the other side:
...
0
votes
1
answer
115
views
In Unity, switching mesh on skinnedMeshRenderer works in editor but not in build
I got this very annoying bug, since it's only related to build and I'm wondering why that bug does not appear in editor.
I'm trying to switch the mesh that SkinnedMeshRenderer displays with another ...
1
vote
0
answers
54
views
How to cut a desired shape out with desired depth of a mesh on VR?
I am creating my first Unity project which is a 𝐕𝐑 𝐬𝐢𝐦𝐮𝐥𝐚𝐭𝐢𝐨𝐧, and I am struggling with a particular issue.
I need to create 𝐚 𝐜𝐨𝐦𝐩𝐥𝐢𝐜𝐚𝐭𝐞𝐝 𝐦𝐞𝐬𝐡 𝐜𝐮𝐭 𝐟𝐞𝐚𝐭𝐮𝐫𝐞 that ...
0
votes
1
answer
145
views
Help understanding the math to position sphere vertices by latitude and longitude
For a project of mine, I need to render spheres without loading a pre-made model or using built-in functions.
I found this bit of code on the internet that seems to work but I really want to ...
0
votes
1
answer
89
views
How to improve performance of code for finding climbing annotations?
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 ...
1
vote
0
answers
1k
views
How to make voxel terrain mesh
I've been trying to make a procedurally generated "pixelated" (semi voxel) terrain (using Unity), as seen in Sebastian Lague's video on simulating ecosystems. (Image attached)
I've tried ...
1
vote
1
answer
400
views
How to handle overlapping meshes?
So I want to note that I am a beginner at game dev but an okay coder. I wish to make a game in which the character changes clothes.
I have a character and a few clothing meshes that all have the exact ...
0
votes
1
answer
635
views
Change Mesh face colors / materials at runtime
I'm trying to change the color/material of the faces on my object at runtime. My object has a default SpatialMappingWireframe to begin with:
And I'm trying to assign new colors on start like so:
<...
0
votes
1
answer
44
views
Attaching gameObjects to a moving Mesh by position retrieved from triangle index
I am trying to attach GameObjects testAttach to triangle indices in trianglesToAttachTo on a mesh, call it goMesh. I've ...
0
votes
1
answer
326
views
Updating UI Graphic vertex positions through code
I'm trying to update the positions of vertices in my project.
I'd been using Unity's built in Line Renderer previously which worked fine, but had some problems when points got too close to each other.
...
0
votes
1
answer
82
views
Blender exported model is giving better FPS than creating the meshes in Unity
I am experimenting with Hex grid layouts and testing the most efficient way of building a hex map.
I tried 2 things:
Build my own hex mesh using 6 triangles and 7 vertices
Use blender to create a Hex ...
0
votes
0
answers
152
views
How to tear a hole in cloth sail rendered as a plane mesh animated with a shader?
I have a procedurally animated sailcloth. It's just a square flat plane mesh with 144 vertices.
I use a shader to manipulate the vertices and make it "fill" with the wind.
All of that works ...
1
vote
1
answer
586
views
Seamless random morphing hex tiles' vertices in Unity3D?
I have a hex based, fully flat tilemap the tiles' mesh currently isn't generated, but a static mesh file containing 6 vertices, UV mapping, etc.
Then I saw this picture on Unity Answers:
I'd like ...
0
votes
1
answer
103
views
0
votes
0
answers
86
views
Formula for calculation for total size of texured mesh of a home in gigabytes
I'm trying to calculate the size in GB for textures + meshes for someone's home of size 1500 sq ft containing (around 12K total objects) for 3 LODs.
I understand this number can vary quite a bit ...
0
votes
1
answer
204
views
Sphere rolling shader like ice cream
now I can make cylinder shape with shader. But what I want to do is like picking up ice cream with an ice cream scoop. How can I do this?
0
votes
1
answer
373
views
Does mesh contain a color?
I'm developing a simple 3D engine for education purposes.
I'm wondering whether a mesh contains a color of each vertex?
Because I saw somewhere that mesh does not contain a color at all. If so, then ...
0
votes
2
answers
864
views
How to generate mesh for any shape?
I have shape stored in sprite. Shape is stored as white color. I want to generate mesh for given shape. Maybe just like sprite collider do. What algorithm I have to choose? Are there any libs for ...