Skip to main content

Questions tagged [3d-meshes]

Geometric representations of objects in 3 dimensions. 3D-meshes are made up of a collection of triangles or other polygons, forming volumes and surfaces. They are commonly used for visual representations on computer screens.

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

IIn video games, are slight damage details, like say on a tank, made by modifying the geometry or by using textures?

Here are images of real tanks and I drew arrows into the places with slight damage: In video games, are those made by modifying the geometry or with textures?
kyopa's user avatar
  • 131
0 votes
0 answers
17 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 ...
ina's user avatar
  • 294
0 votes
1 answer
55 views

How to create an infinitely long tunnel that a player is flying inside of, while letting them control the path the tunnel takes?

I'm trying to create a game where the player is flying in an infinite tunnel in first person and they can control the tunnel's path in real-time. e.g if they press D, then the tunnel should turn to ...
kyopa's user avatar
  • 131
1 vote
2 answers
92 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 ...
Job_September_2020's user avatar
0 votes
1 answer
62 views

Path3d Offset from GlobalPosition

my path3d node is several meters away from the global position.My transform are not changed from their base setting. Code: ...
NEWBIE's user avatar
  • 23
0 votes
1 answer
54 views

Can I convert a Unity file with the extension ".asset" to ".prefab"?

I am using a Unity asset to combine many meshes of many objects in my scene to one object. The name of this asset is "Mesh Combiner", and here is the link to the asset: https://assetstore....
Job_September_2020's user avatar
0 votes
1 answer
35 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 ...
Noah Williams's user avatar
0 votes
0 answers
52 views

How to render two different meshlets at two different LODs in a Mesh Shader?

I would like to know how to render two different meshlet at two different LOD values. So, for example, I render the meshletA at LOD1 and I render the mesheletB at LOD2. Please let me know if this is ...
Giuseppe's user avatar
0 votes
1 answer
42 views

tubular mesh around any y=f(x). issue calculating normals

I used this to help create a 3d cylindrical mesh that wraps around any y = f(x). Each vertex is calculated by a point P: ...
Emre Tekmen's user avatar
0 votes
1 answer
59 views

Modelling assets from within game

I'm helping to build a game using the Unreal engine. My friends are working on other parts of the game such as UI, AI, npcs, camera and movement interpolation, etc. My job is to work out the building ...
John Doe's user avatar
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 ...
Carpetfizz's user avatar
0 votes
0 answers
30 views

In Unity: how can I get the precise diameter of the cross section of an imported mesh?

For a simulation, I imported a mesh structure into my Unity project. This mesh consists of triangles and cannot easily be modelled by spheres/ cubes etc. I am wondering, if there is a way to get the ...
the2second's user avatar
1 vote
1 answer
260 views

Detect intersections between an `AABB` and a `CollisionShape3D`

I thought this would be a simple matter of getting the mesh that defines the CollisionShape3D and checking if any of the triangles of the mesh intersect with the <...
beyarkay's user avatar
  • 127
1 vote
0 answers
288 views

Tilemap vs terrain vs optimized mesh for top-down game

I'm experimenting with a top down vertical scroller in Unity, with a perspective camera, NOT orthogonal. (It's unclear how 'pixelated'/pixel art I will want the graphics but that's another question) ...
James Carlyle-Clarke's user avatar
3 votes
2 answers
690 views

Should I model with quads or with n-gons?

Model 1 — all 4-sided polygons Wireframe Gun Model 1 Model 2 — polygons have arbitrary number of sides/vertices Wireframe Gun Model 2
Paneer Handi's user avatar
0 votes
1 answer
43 views

Material going to oposite side in procedural mesh creation

Tried to instantiate this gameobject procedurally, material texture went to the other side: ...
JamesB's user avatar
  • 279
2 votes
1 answer
916 views

How to swap skinned meshes for a customizable character in Godot?

Using Godot 3.5.1, I need to make a system that switches armors/helmets/hair styles/weapons and so on. I've seen a single tutorial for how this is done in 3D games in Godot, and apparently it is not ...
Cei's user avatar
  • 863
1 vote
0 answers
46 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 ...
Saif Eddine Layouni's user avatar
0 votes
0 answers
86 views

Group voxels into object?

I'm working on Voxel editing software, and I need to have the ability to group voxels into objects. As for simple editing, I'm using the following data structure: Chunk - represents a fixed 3d grid ...
Sergey Sharpov's user avatar
0 votes
1 answer
26 views

Issue with rotating tail for 3d model in Maya

I've been stuck on this issue for a long time and it's been driving me crazy: I have this model of Jabba (see image 1) which I bought off of CG Trader several years back. I want the character to look ...
Manx30's user avatar
  • 1
0 votes
1 answer
275 views

Calculating normals for a simplified terrain mesh

I am trying to simplify a mesh I am generating from a heightmap by creating larger triangles for areas of equal elevation, like this: This however gives me issues with my normals: I am calculating ...
Henningsson's user avatar
0 votes
0 answers
35 views

How to get a scene information from Unread Engine 4?

I learn game engine development and I was interested to work not only with box and sphere meshes also with a large model with difference meshes and textures in this model. I bought a 3d model. The ...
Andrey Klimenko's user avatar
1 vote
0 answers
87 views

How to render a block being carved by a milling machine?

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

How to create an octahedron for sphere subdivision?

I have vertices that generate the first out of two pyramids. However, I want to have the second pyramid facing downwards as to make an octahedron. What are the correct vertices to use, because I've ...
Chillzy's user avatar
  • 47
0 votes
1 answer
42 views

Mesh is displayed differently in Unity with some undesireable visual elements

I'm not sure what to make of this: this is what it looks like in unity scene view/game view This is, for example, the same upright triangle in microsoft's 3d object viewer: I have no clue what to ...
user1999728's user avatar
1 vote
1 answer
668 views

GridMap centers meshes of different heights in cell

I am trying to use the superb GridMap in Godot 4 beta 5. I have, so far, only 2 different types of meshes in my MeshLibrary. 1x1x1 cube 1x1 plane My intention is ...
Matthew Goulart's user avatar
1 vote
1 answer
335 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 ...
isa türk's user avatar
  • 111
0 votes
1 answer
176 views

GameObject mesh.vertices array is empty

I've an Icosphere GameObject: I want to iterate over each of the faces and change the material based on their distance from the center, however I don't seem to be able to retrieve the list of ...
TomSelleck's user avatar
1 vote
1 answer
496 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 ...
Tudvari's user avatar
  • 761
0 votes
1 answer
100 views

Custom world map chunks not loading correctly

...
Jax's user avatar
  • 410
1 vote
0 answers
405 views

Raycasting to determine point inside or outside mesh, edge case?

I'm trying to determine if a point is inside or outside a (triangle) mesh. The best way I found was to cast a ray from the point and count how many triangles intersect. (Odd or even). I used Möller–...
Dolfje's user avatar
  • 11
0 votes
1 answer
417 views

How to get height from a mesh

I have a terrain which is a mesh. Given the x and z coordinates in which a character is placed, I would like a function that ...
Luca Venturini's user avatar
0 votes
0 answers
433 views

Problem Cloning Skinned Mesh Renderers Mesh via script

I was trying to clone a rigged mesh via script and change its orientation as the characters face wasn't facing at forward direction. So I created a Editor Script for that: ...
Bipin467's user avatar
0 votes
1 answer
118 views

Converting mesh vertices to world coordinates for raycasting

My goal is to figure out if a point exists within a 3D polygon. To do this here is what I am doing: Load obj mesh ...
joethemow's user avatar
  • 101
0 votes
1 answer
185 views

Unreal 4: How to save generated UProceduralMeshComponent to level file in editor and load it at runtime?

I have UProceduralMeshComponent that I generate in editor from data entered by level designer. Now I need to save it to level file in editor to load it in runtime without generating new mesh again. Is ...
Robotex's user avatar
  • 251
4 votes
1 answer
5k views

What is the purpose of tangent and bitangent vertex attributes?

Every vertex of a 3D mesh has position and some optional values like texture coordinates, vertex color, and normal, but also tangent and bitangent vectors. While the purposes of texture coords, vertex ...
convert's user avatar
1 vote
0 answers
71 views

Fast way to test whether a point is over a 3D mesh

I have a map with islands, and I need to detect whether the player is on an island or not. The player can be flying far above the island, so a fixed-distance raycast is not sufficient, and firing long ...
Robotex's user avatar
  • 251
0 votes
1 answer
35 views

3D Asset Creation. "Joining" parts VS Hidden/Redundant Faces?

I am trying to create a Laser Cannon in 3D art program Maya. It is for use in a game made in Unreal Engine. I have this same 'problem' with many aspects of my 3D CG Art but this is just one simple ...
I_Keep_Trying's user avatar
0 votes
3 answers
1k views

Collision detection between transformed meshes (not primitives)

I know questions related to collision detection have been asked multiple times, but I find all of them like this and this depend on the assumption that I have some sort of measurement of the object ...
Extorc Productions's user avatar
0 votes
0 answers
26 views

Need an approach for mounting turrets

I'm working on a game with the ability to customize the type of turrets on your starship. My question is how would I go about positioning the turret mesh at the hardpoint locations. Do I need to ...
Hayden Morris's user avatar
0 votes
2 answers
1k views

Should Game-Ready Assets Be Single Meshes or Multiple Meshes?

Say for example that someone is modeling a sword asset. A sword has many pieces -- the blade, guard, hilt, pommel, etc. -- so should this be modeled as a single mesh (or as multiple meshes which then ...
NJJ_002's user avatar
  • 47
0 votes
1 answer
423 views

Unreal Engine - Materials Import as Gray

I imported the .fbx files from here: https://www.cgtrader.com/3d-models/industrial/other/big-warehouse-pack into an Unreal Engine 4.27 project. All the meshes load in properly, but the materials are ...
Quantum Guy 123's user avatar
0 votes
1 answer
403 views

Switching out the mesh of a game object at runtime

I am trying to switch out the mesh of a game object. I have this script: ...
inorganik's user avatar
  • 141
2 votes
1 answer
176 views

Unity intersection of mesh renderers on Android

I’m currently developing a game with Unity and ran into a problem while building for Android. The player and obstacles are mesh renderers (for example cubes & boxes). On iOS and the Unity editor, ...
azulbocu's user avatar
1 vote
0 answers
49 views

Pink Objects/Sub-Meshes (NOT MATERIALS)

Using URP. Any object I import into unity from blender (fbx), the sub-mesh that comes with it are pink. All the materials are fine, I can put the object in my scene with a material and it looks normal....
Bean's user avatar
  • 11
0 votes
0 answers
684 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 ...
BakaBlue's user avatar
0 votes
0 answers
711 views

How to weld nearby mesh collider vertices together to erase seams in Unity?

I'm using Unity 2020.3.2f1 and I have a very commonly seen problem. I have a Spherecollider which I am using for a physics game, and geometry that uses ...
Empty Set's user avatar
0 votes
1 answer
1k views

Unity Cutting a hole in mesh

I've set myself a stupid task, that I didn't solve couple years back, again. I've got few meshes with normals pointing inside. Caves. Like mostly circular rooms and tunnels that should connect them. ...
zORg Alex's user avatar
  • 129
0 votes
2 answers
169 views

how can I rotate a tetrahedron's vertices so that it's pointing straight up?

I am trying to render an Equilateral triangle in 3D, and I came across this answer: https://math.stackexchange.com/a/562895/15497 So based off of that, I made my vertex points: ...
patrick's user avatar
  • 209
0 votes
2 answers
385 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 (...
0dminnimda's user avatar

1
2 3 4 5
9