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

How can I create a mesh of triangles made from the vertices of a polygon and contained within that polygon?

I'm trying to programatically generate a mesh, given the vertices of a polygon, which is contained within that polygon. For example, starting with these points: I would want to generate a mesh ...
3
votes
1answer
63 views

Which Terrain LOD algorithm should I use for super large terrain?

My game needs a terrain, the requirements are: Freely Zoom in & zoom out, like GoogleEarth. Max resolution when zooming in ~100 meter, Max range when zooming out ~2000km (a whole country scale). ...
1
vote
0answers
21 views

Dynamically Generated Mesh Not Visible Unless In Wireframe Mode

I'm trying to create a dynamic mesh using ArrayMesh but my mesh isn't visible unless I turn on wireframe debug mode. Here is a minimal example of a plane mesh consisting of 2 triangles (this script is ...
-1
votes
0answers
23 views

Can share indices but not vertices

I have a script that generates a mesh using an ArrayMesh consisting of 4 triangles that form into 2 quads. The mesh is being generated in Godot but I don't believe this is a Godot specific question. ...
0
votes
1answer
12 views

Given a triangleIndex how do you find the global position of a mesh vertex - Unity

For Unity's mesh system - Given a triangleIndex how do you find the global position of a mesh vertex (of a meshfilter on a gameobject)?
4
votes
3answers
1k views

How does 3D mesh morphing work?

In the Sims 4, you can drag to reshape the face and body when you create a sim. You can see a similar system implemented in this Body Visualizer. How can I implement similar geometry morphing in my ...
0
votes
1answer
59 views

Ray casting through terrain mesh + Octree ( Mesh collision )

I'm currently in development of a terrain editor which i will use for my game. One thing that is partially stopping my development is that I don't have collision detection implemented between mouse ...
1
vote
3answers
284 views

How to create a mesh in code?

Getting my feet wet with Stride (formerly Xenko), I want to build a level editor where a user can drag the mouse to create walls at runtime. I found documentation on how to immediate draw vertices ...
0
votes
0answers
55 views

Converting vertices to block coordinates

Sorry if this is the wrong place to ask this, please do tell me where a question like this is better asked. Im importing a model from another game into the video game minecraft, which uses a ...
0
votes
1answer
41 views

In Unity, how do I add a MeshFilter to an empty GameObject to generate a procedural model?

My code below is modeled after Unity's documentation. When I put the script into an empty GameObject, the error I get is: MissingComponentException: There is no 'MeshFilter' attached to the "myMesh" ...
0
votes
0answers
11 views

How to have multiple sets of UV in blender and swap them in Unity?

I am making some low poly models in Blender using a material with a 8x8 Texture. I do the coloring by setting the face sizes on the UV map to zero and position them on the color I want. Everything ...
1
vote
0answers
29 views

Adding underwater shadow to 2D top down boat

I have a boat/hovercraft sprite in my game. It's topdown 2D view, but it's actually a 3D scene, for better lighting and other effects. I want to add a buoyancy effect, so that the hovercraft floats ...
0
votes
1answer
74 views

I can't figure out whats wrong with my .obj file reader

I'm just loading a simple textured cube but it always has missing bits or warped textures. This is for directx 11 rendering by the way. Updated with more information. I think my problem is with ...
0
votes
0answers
10 views

Weird meshes in ZBrush

I am new to ZBrush and I don't know why this happened. How can I fix the mesh?
0
votes
0answers
14 views

Scrollable Text On Object

I want to put Scrollable Text On Object / Mesh. I looked after it on YT but I did not find anything useful. How could I do this?
0
votes
1answer
21 views

Unity mesh shader for outlining colour changes

I've written a shader to change colour on a deformable mesh's Z position. This is to create the effect of topographic/contour maps where the colour changes based on the height of terrain of the mesh. ...
0
votes
1answer
29 views

Broken model matrix builder

I'm trying to setup basic render pipeline in Vulkan and am currently setting up the perspective, view and model matrices. The line that calculates the position in the vertex shader is this: ...
0
votes
1answer
71 views

Raycast against a mesh without using a mesh collider?

I have a complicated mesh that doesn't need to have anything to do with physics. However, I need to be able to detect said mesh with a raycast from a point. I have several hundred of these objects ...
0
votes
0answers
42 views

Is there any way to move the sprites inside the sprite editor?

I have imported a .png file of a stickman in which I had placed his head, body, two legs, and two hands a bit far apart from each other so that Unity will automatically convert the picture into ...
0
votes
0answers
132 views

Unity: Improvements to skinnedMeshRender.BakeMesh performance or alternatives?

I'm running to a situation where I need to do some manual deformation to a skinnedMeshRenderer's mesh vertices after applying some blendskinning. I'm finding that the following code takes ~15ms to run....
1
vote
1answer
79 views

Unity SkinnedMeshRender: is there a way to cache mesh and restore later?

In unity, I'm writing a script that deforms a mesh associated with a SkinnedMeshRenderer pretty significantly. However, at some point, I'd like to reset it back to particular states. I'd like the ...
1
vote
1answer
101 views

How to make many perlin noise function match

I am trying to create procedural terrain using Perlin noise here is what I have so far: I create "Chunks" of a fixed size using a Perlin noise function, each chunk is a flat mesh (like a plane). ...
0
votes
0answers
44 views

How do I create a Physx heightfield from a model triangle mesh?

My question is clear: I have a mesh defined by its vertices, index... I want to transform it to a heightfield, if someone can provide some example or link to, I will really appreciate. Thank you very ...
0
votes
0answers
28 views

Why isn't this script that removes duplicate faces from voxel generated mesh not working?

Hey this is my first post here. I'm trying to make a voxel world generation project for personal experience like minecraft like games. But I cannot find out why my script is not working as intended ...
0
votes
1answer
112 views

Artifacts at seams between meshes in Unity in isometric camera only

I'm trying to piece together some very simple placeholder models that I intend to use as tiles in Unity and I'm seeing odd pixel artifacts along the seams of the tiles that only show up when using an ...
1
vote
1answer
72 views

My vertex cache for reusing vertices in marching cubes algorithm in unity fails for one case, but I cant figure out what case

I implemented the marching cubes algorithm in unity and wanted to reuse vertices instead of creating new ones for every triangle. I am looping through a 3D array of points as I generate the mesh in ...
0
votes
0answers
17 views

How would I go about exporting collision data of specific objects in unity, to use as geodata in my MMORPG?

So I have been working on the game for quite some time and always left this step as something to do later. How would I go about exporting the vertices/mesh data of specific objects? I want to use ...
1
vote
3answers
864 views

Adding Grass to a Low-Poly Mesh in Unity

How would I go about adding grass to a low-poly mesh in Unity? Here is what I have looked into: Object2Terrain: I am not using Unity's built in terrain system because I am going for a low-poly art ...
0
votes
0answers
19 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
69 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
34 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
37 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
435 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
342 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
71 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
21 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
478 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
353 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
55 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
258 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
22 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. ...
2
votes
1answer
117 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
75 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
207 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
72 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
34 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
70 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
66 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
737 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 ...

1
2 3 4 5