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
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?
-1
votes
0answers
13 views
0
votes
1answer
16 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
48 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
23 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
42 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
40 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
86 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
34 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
26 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
68 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
45 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
393 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
60 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
32 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
29 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
127 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
211 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
62 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
19 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
195 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
186 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
49 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
192 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. ...
0
votes
0answers
35 views

Game Object's Vector3 changing through script without reason

I am trying to do a combine block script. However, I encountered 2 problems: the blocks / the combined mesh isn't showing up anymore when it was, all the blocks where at the same location Even ...
2
votes
1answer
75 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
65 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
122 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
34 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
30 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
62 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
62 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
609 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 ...
0
votes
1answer
1k views

How to change the mesh of the character in UE4?

I made a Bellsprout mesh in Blender, exported it as an FBX file, and imported it into UE4. I can insert it in the stage without problem, but I would like to use this Bellsprout mesh to replace the ...
0
votes
0answers
47 views

Hi,Dynamically modifying meshes in Unity3D

I'm working in Unity3D and I want to remove sections from a mesh at runtime similar to the idea of bombs removing sections of walls. In 3D modelling software this is a pretty standard Boolean ...
0
votes
1answer
266 views

LineRenderer on Mesh surface

Goal: Render distance lines between two points on the surface of a mesh-based primitive (i.e. sphere, cube, etc). Current Solution: Iteratively traverse distance line between two end points and "...
1
vote
1answer
119 views

How can one replicate the 'Quake Disruptor' of Wipeout XL/2097?

Following my previous question, I am wondering how one can achieve the same effect under Unity? The effect in action https://youtu.be/kzmmLeCwL0g?t=790 Description of the effect When you fire the ...
2
votes
1answer
223 views

Mesh rendering performance optimisation

I'm working on a libgdx implementation of mesh terrain and running into some performance issues. The terrain is represented by a number of mesh tiles, each mesh is made of vertices laid onto a 2D ...
1
vote
1answer
212 views

Unity SphereCast HitInfo Give me an interpolation of the normal surface?

I'm doing a SphereCast for a GroundCheck of a player. I have my Raycast hitInfo, and here in the picture at the left, I Debug.drawRay in black the direction of the hitInfo.normal every frame It seems ...
0
votes
1answer
71 views

split/divide/extract/separate mesh indices&vertex in n

I'm totally lost. I'm trying to split/divide/extract/separate a mesh into sub-meshes via bbox test. But I just realized that I need to properly split indices and vertex and I have no idea how o.o... ...
0
votes
1answer
149 views

Sometimes can't use the rendered mesh as a collider in Unity?

Most of the times I can use the Mesh Filter's mesh as collider in Mesh Collider But sometimes there is just nothing. No ...
0
votes
0answers
35 views

Generating skeleton bind pose from vertex weights

Assuming that you know how many bones should be in the skeleton, and you have the bone hierarchy, is it possible to calculate the bind pose of the bones just based on the vertex weights? To elaborate ...
1
vote
0answers
71 views

Convert bones by bone matrix

I have a 3d-models from old game. They have the following structure: ...
1
vote
1answer
459 views

How can we achieve Earthquake Simulation in Unity - Simulation of P and S Waves

I Cannot use Water waves as P and S Waves are different than water waves. I tried to use it but not satisfied with the result. I am trying to simulate how Earthquake takes place in real time which ...
0
votes
0answers
459 views

Algorithmically fracture a mesh in Unity3D?

I want to create a plugin which shatters/fractures meshes, so I can make every object destructible if I want to. Like in Unreal's built-in feature. My quick approach to this problem is randomly ...

1
2 3 4 5