Questions tagged [mesh]

A collection of vertices, edges and faces that defines the shape of objects

Filter by
Sorted by
Tagged with
1
vote
1answer
23 views

Set object rotation according to the outer vertex in unity

I am able to get the outer vertices of a mesh using this and able to generate cubes on outer edges of the mesh. Here is my code: ...
0
votes
0answers
13 views

Attempting to remove extra “edges” from truncated icosahedron lead to excessively global concequences

I need a truncated icosahedron. Blender lets me do that with add -> mesh -> math function -> regular solid (assuming the extra plugin is installed.) So far so good. However, the mesh that ...
0
votes
2answers
61 views

How do you have the clothing mesh hide the body mesh underneath?

How do you have the clothing mesh hide the body mesh underneath, to prevent odd patches of body from sticking out in tighter modular clothing? Is there some sort of shader trick that can have the ...
0
votes
0answers
68 views

Create Mesh in gap between tiles (in Unity3D)

I am loading two kinds of tiles (meshes in tile format) in Unity, both are placed in the environment correctly but there is a gap between these two tiles (see the picture below). I want to fill this ...
1
vote
0answers
21 views

How to create fallout intensity on a generated mesh in Unity?

So I was able to generate a circle mesh in Unity to basically see the other characters when they are inside of it, and hide the characters when they are outside of it, and partially hide and show the ...
0
votes
1answer
52 views

Unexpected result when generating world with 2 perlin noises

I try to generate a world with a temperature and an humidity noise to generate biome based on the y values of the two. I take the y values and round them on a 33 base for the humidity and 25 for the ...
0
votes
1answer
32 views

Building meshes conforming to terrain deformation

I have an uneven terrain on which the player is supposed to build buildings. For most structures I can just fudge the foundations, have them extend through the terrain. For roads, pipes, tracks and ...
2
votes
1answer
46 views

Unity: How can I find the center position of a particular triangle?

I need to face an object from a central point directly through any one of many triangles which are faces on an icosphere whose position is centered on that point. Is there a way to get the center ...
0
votes
1answer
8 views

Unity mesh only rendering one set of triangles

I've been using Unity3D to procedurally generate terrain with Perlin Noise and I've come across a problem where the mesh that I've constructed only renders one set of triangles. The following is my ...
1
vote
1answer
40 views

Why does my material look blotchy on this mesh?

This is a generative mesh - wireframe looks like this Here's the material But the shaded object looks like a tie dye tshirt I've no idea what settings are causing it to look like this. These are ...
1
vote
0answers
46 views

Skeleton bone in incorrect spot in-game yet, blender rig, skeleton mesh and physics asset are all correct and behave properly

I've made a custom character and rigged it in blender. Then exported/imported into ue4. It behaves properly in the PHAT and the skeleton mesh looks fine and it all behaves properly in the simulations. ...
0
votes
0answers
17 views

Road Intersection mesh generation

For the last month I was learning about meshes and how procedurally generate them. For what I need it looks very straightforward. For my little app I planning to have a road tool (very simple), user ...
0
votes
0answers
25 views

Are there drawbacks to resizing mesh renderer bounds?

I had a problem yesterday where some of the meshes were not visible. I figured out the problem, which was that the mesh renderer bounds were not in the cameras field of view. So, in order to make the ...
0
votes
0answers
132 views

How to make 3D snake with procedural mesh in Unity

Im currently learning Unity3D and I would like to recreate the old Nokia game "Snakes" (example video: https://www.youtube.com/watch?v=FXg3jVG-tXs&ab_channel=aantv, play it at 1:30 and ...
0
votes
0answers
39 views

Unity mesh - delete quads

I'm trying to delete quads in unity. The code here creates a procedural grid. Setting the gridSizeX to 5 and gridSizeY to 3, creates a 6 by 4 grid. I want to delete the first row of quads when I click ...
0
votes
1answer
28 views

Complex mesh (created in Blender) is not overlapping when rendered in Monogame (XNA)

community. Just started playing with Monogame and stuck with a quite simple, but still unanswered issue, at least I couldn't find any answer. The model rendered in Monogame (XNA) is not overlapping ...
0
votes
0answers
23 views

Mesh filter component is removed from prefab [Unity]

I am trying to procedurally generate a city with cubes. I generate the cubes' location, size and textures randomly with an external program and I save to a txt. I created a script in C# that loads ...
0
votes
1answer
39 views

Unity, interior poly always missing in clothing

I've modeled interior polygons but for some reason they do not show up in Unity. I've tried changing import settings for normals to both calculate and import... How do you have a tshirt's interior ...
0
votes
0answers
91 views

How can I do real-time mesh deformation?

I have a very simple problem: I have a icosphere mesh rendered with OpenGL and I want to deform/stretch it. But it has to be a real-time process because the deformation is generated when user drag'n ...
1
vote
0answers
34 views

Update to the ROAM Large Scale Mesh LOD Method

I'm looking to create very large planetary terrain meshes. The most efficient and researched methodology I've seen so far was the ROAM 2.0 Method. However, this was written and published in 2005. Does ...
2
votes
1answer
791 views

How to randomly generate biome with perlin noise?

I want to generate a procedural world using perlin noise. As expected, my terrain is generating with a repetitive patern. I'd like to add biomes, zones separated with higher or lower amplitude to ...
0
votes
1answer
23 views

Generate plane with script missing triangles

I am trying to do a simple script to generate a plane from a script by creating a new mesh. After trying it, it seems like some of the triangles aren't showing up. I checked if they were in the list ...
0
votes
0answers
16 views

Some submeshes of my gameobject dissapear when I set the bindposes

Well, I'm trying to animate some Source models imported into Unity3D using this Unity-Source-Tools library: https://github.com/lewa-j/Unity-Source-Tools To animate a Mesh generated by this tool I need ...
1
vote
1answer
35 views

Blendshapes in Unity vs Blender

I have a model from a package that has existing Blendshapes that work fine. I'm a bit of a Blender newb, though. I'm trying to add a Blendshape for spikiness to a cube model. It's early WIP, but it ...
0
votes
0answers
41 views

Can I “unmerge” merged meshes UE4?

I set up my character to be modular, by following the UE4 docs. I used the code at the bottom of the page to implement mesh merging functionality. It does work well, I can merge meshes runtime. I use ...
0
votes
1answer
73 views

How can I make a custom mesh class in Unity?

I'm doing something in Unity where I need to specify the position and orientation of vertices with two Vector4s, and they're not just position and normal vectors. I'...
1
vote
1answer
124 views

Optimizing 3D tile-based geometry

For my game, I have a tool that lets me quickly create map geometry. You can see a (albeit early version) demo of the tool here. The main problem with the tool is that even a semi-large map can EASILY ...
2
votes
1answer
397 views

How to support importing .uasset files in game for content creators(UE4)?

I would like to support importing clothes(as SkeletalMeshes) and props(as StaticMeshes) as uasset files into game for content creators, which obviously have not been packaged with the game. Basically ...
0
votes
1answer
49 views

Prevent mesh generation function from blocking other functions from running

So, I have a procedural mesh generation system with chunks that load in and generate as the player walks into a nearby cell, and get removed when the player walks out. When each set of 9 cells is ...
2
votes
1answer
61 views

Reducing adjacency bookkeeping work in constrained Delaunay triangulation

I'm using the Sloan algorithm for constraining a generated Delaunay triangulation. This primarily consists of edge flipping for the edges that overlap the constrained edges. In order to flip an edge, ...
0
votes
0answers
30 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
205 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
86 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 ...
0
votes
1answer
92 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
114 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
480 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
64 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
216 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
16 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
59 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
88 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
14 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
80 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
34 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
306 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
201 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
457 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
229 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
2 3 4 5