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
1 answer
67 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?
1 vote
2 answers
6k views

How can I edit collisions in Unreal Engine?

I made a concave house model. When I import it to Unreal Engine it generates a simple box collision that covers the full mesh. I need a collision that only covers the walls. How can I generate one or ...
0 votes
1 answer
973 views

How to apply saturn's ring texture in Unreal Engine 4?

I'm working on a "solar system" model project. And while trying to apply saturn's ring texture which is this one : it ended up looking like this: I'm new to UE4 and this branch in general. So I ...
0 votes
0 answers
18 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
1 answer
58 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 ...
1 vote
2 answers
95 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 ...
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: ...
0 votes
1 answer
55 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....
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 ...
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 ...
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 ...
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 ...
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: ...
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 ...
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
31 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 ...
1 vote
1 answer
265 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 <...
0 votes
2 answers
5k views

Getting the winding order of a mesh

I'm doing some topological operations on my mesh and I need to know the winding order for my mesh. Since I will be importing models from different sources I will need to know whether the winding ...
1 vote
0 answers
291 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) ...
3 votes
2 answers
693 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
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: ...
0 votes
2 answers
5k views

How to load and render a 3D model? C++ SDL, OpenGL

I have been learning C++ for long time (but only learning game development for eight days) and I have made a simple game using 2D textures. I was thinking of starting on 3D game development. I wanted ...
2 votes
1 answer
938 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 ...
0 votes
2 answers
642 views

Objects Imported from Blender to Unreal have really zoomed Materials

I've been learning how to use Blender for UE4. I just started figuring out how to define which sides should have materials on them. In particular, I wanted this building to have different materials ...
0 votes
0 answers
87 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 ...
1 vote
0 answers
47 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 ...
1 vote
1 answer
676 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 ...
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 ...
0 votes
1 answer
281 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 ...
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 ...
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 ...
0 votes
1 answer
281 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 ...
0 votes
2 answers
1k views

Triangle mesh smoothing

I have a grid in terms of two arrays: points: contains 3D coordinates of points. triangles: contains 3 indices per line for ...
0 votes
1 answer
43 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 ...
4 votes
2 answers
877 views

Angle between two planes

I have two triangles in 3d space which share 1 edge and I would like to determine if the angle between their normal vectors is "uphill" or "downhill". In other words, if you set one flat, would the ...
1 vote
1 answer
341 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
177 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 ...
4 votes
1 answer
1k views

Why are my animated objects (from Blender) always playing at the global origin in Unity?

I created and animated a sledgehammer in Blender 2.67b using an armature. The sledgehammer has one animation (created using the Action Editor) called "Idle". I parented the imported sledgehammer to an ...
1 vote
1 answer
500 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 ...
1 vote
1 answer
132 views

What are perimeter and aspect ratio, in the context of 3D mesh approximate convex decomposition?

I'm trying to understand the logic behind Mamou and Ghorbel's algorithm in their paper A Simple And Efficient Approach For 3D Mesh Approximate Convex Decomposition. I cannot understand what is the ...
0 votes
1 answer
101 views

Custom world map chunks not loading correctly

...
1 vote
0 answers
415 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–...
0 votes
1 answer
423 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 ...
2 votes
1 answer
177 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, ...
0 votes
1 answer
180 views

Flat shaded triangles using the ModelBuilder?

I decided to give the ModelBuilder a try but I cannot get rid of the smoothing of my terrain. So what I tried: Create each triangle individually with there own ...
0 votes
2 answers
170 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: ...
0 votes
0 answers
435 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: ...
5 votes
2 answers
9k views

How check if an arbitrary given mesh is a single closed mesh?

I'm building a space game where it is allowed for the player to insert his own mesh to be his spaceship. The problem I'm facing is that a ship must be a Polygon Mesh. The player will then be able to ...
0 votes
1 answer
405 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: ...
1 vote
3 answers
132 views

How to find and manipulate a line on a mesh?

In Unity I currently have a script that allows me to "grab" a vertex, move it, and then update the mesh accordingly. How would I grab a line (which is basically grabbing two vertices I think) and move ...

1
2 3 4 5
9