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

learn more… | top users | synonyms

0
votes
0answers
15 views

Fast Thumbnail Generator [on hold]

I am trying to generate thumbnail previews for a large high poly STL library (500k is my average triangle count). It needs to be light and fast, not accurate. I'm out of my depth here, so before I ...
1
vote
1answer
49 views

Checking if point is inside the mesh via raycasting - where to cast rays?

I need to voxelize triangle meshes which involves testing if a point is located inside or outside the given mesh. I have just implemented a basic algo based on raycasting and checking the number of ...
2
votes
1answer
69 views

Why create meshes instead of using Planes?

I'm working on a top down 2D game in Unity and I want to create levels dynamically. All tutorials I find tend to talk about generating meshes so I've followed some great tutorials such as this one. ...
0
votes
0answers
10 views

Problem with loading vertices into Nvidia PhysX triangle mesh

I'm new to using PhysX but I have a little bit of experience using other physics engines. I want to test out the waters because I've been having some problems with Bullet. I believe the problem is ...
0
votes
2answers
44 views

How to address raycast failures due to tiny holes in a mesh?

Problem: I have a racing circuit that is made out of tiles, each of which is made out of 2 triangles. I need to know over which tile my craft is hovering on; but since there are tiny holes between ...
0
votes
1answer
55 views

Unity mesh collider detecting collision on object empty inside

I'm trying to get my first 3D game done with Unity. In this game the character will be flying through some rings. I made the ring asset with MagicaVoxel, exported it in .obj and reimported in Unity ...
0
votes
0answers
26 views

How to implement mesh subtraction with user interaction in real-time?

I am trying to perform a subtraction on 2 mesh files imported from objloader using THREE.js and ThreeCSG but it is not working as long as the objects are too big or not closed or it will be so slow. ...
0
votes
2answers
46 views

Unity3D mesh showing only black triangles

My mesh in the unity editor won't show the correct texture. Instead I get to see loads of black triangles. Anyone know what's wrong? thanks :)
3
votes
0answers
72 views

Filling Closed Shapes

Game Engine : Unity 5.1 Developing on Windows 7 Hello, I am using Vectrosity to draw some some shapes on screen run time. I also need to fill these shapes and none of them are really trivial shapes. ...
1
vote
0answers
25 views

How to set a specific face's texture color in Unity?

First off, let me describe my situation... So I'm building a voxel engine based on this tutorial. I'm using my own texture tilesheet. Most of the tiles have their own color except grass, leaves, and a ...
5
votes
1answer
126 views

How to generate tiled delaunay triangulation mesh (delaunay triangulation within a rectangle with triangles connecting opposing edges)?

I have a nice triangulation of a square mesh. The way I do this currently is generate square mesh (two triangles), from (0.,0.) to (1.,1.) (axis-aligned and normalized for simplicity) add point ...
0
votes
0answers
22 views

Deforming the mesh with skeleton in XNA

I just want to know which algorithm does the default Model Processor of XNA uses to deform meshes when the skeleton changes, like Linear Blend Skinning, etc. I tried hard to find out but I found that ...
1
vote
1answer
58 views

Mesh slicing/knifing with multiple planes

I have a ginormous mesh which I want to cut with multiple planes. For simplicity I want to know how to cut a mesh with single plane and repeat the logic. Consider a X-Y plane of coords (1,1,0,0) = ...
0
votes
1answer
153 views

In Unity, how do I make a mesh change its opacity during runtime?

I'm trying to make a isometric game. I want to make it so that when the player goes behind a wall, the wall's alpha goes down. How do I go about doing this? I have this code that I made, but I don't ...
3
votes
1answer
65 views

Performance differences: one empty GameObject with multiple child objects vs. single GameObject formed by pre-merging the former child objects

Imagine a robot game where robots are made of pre-built blocks. Therefore, each block is a separate GameObject, with one mesh each. I am trying to understand the conceptual differences behind the ...
0
votes
0answers
24 views

Unity3D - Collider jumps when I hit play

When I press play, my collider jumps down and offsets everything. I believe its due to the animator as it doesn't happen when its not present. I'm using the stock Unity animations. Here is the ...
1
vote
0answers
47 views

How to generate mesh at runtime using raycast points?

I'm trying to make a clone of the trail/line renderer with the difference that everything is perfectly flat, i.e. the faces are not designed to face the camera. I'm using two raycasts to get the ...
0
votes
1answer
42 views

Trouble in 3DS MAX 2016 exported ogre.mesh file refering the correct .material

Actually we have some trouble in exporting ogre mesh + material files correctly from 3dsmax. We are using "Easy Ogre Exporter V 2.40" for the export to ogre format. And actually just testing its ...
3
votes
1answer
62 views

Vertex position problem for connected lines

I’m trying to generate a mesh to display connected segments representing street lines in a mini map. I have problem with vertex orientation that my math knowledge has hard time to resolve. Let’s ...
2
votes
1answer
116 views

Why doesn't Array.Copy to mesh.verticies work in Unity?

I am rebuilding a mesh but something seems odd that I have to create a temp array just to hold the verticies rather than copy an array. I'm not using list because this is used frequently and I do not ...
4
votes
1answer
60 views

Explain Mesh.MarkDynamic

As the reference page says, this function/method is used to optimize a mesh for frequent updates, but the description seems a little bit unclear. What should I consider before using it in my code? ...
1
vote
1answer
78 views

Generate a 2d mesh terain out of triangles (low details)

I'd like to learn a good algorithm to generate a 2d mesh made out only of triangles to be used as a terrain. Its not important to get a high detail terrain. It should just have a triangle looking ...
1
vote
0answers
167 views

Smooth+Flat shaded meshes cause shadow artifacts (understanding the source of the problem)

I'm using blender to create assets to use in Unity3D, and I'm having some trouble understanding how the smooth/flat shading interacts with shadows, I'm sorry if it has been asked before, but all the ...
2
votes
1answer
136 views

How to convert UV position to texture atlas pos and reapply to UV in Unity

I'm trying to apply a texture from an atlas to a mesh by reiterating through the UV array on that mesh, but I'm a bit lost on converting the coordinates. For example, if the texture required is at ...
0
votes
0answers
44 views

How to avoid ai hands or any body part going inside wall or ground? (Unreal Engine4)

Whenever my character get killed near wall his hands or any body part its goes through the wall making it look like half of the hands front of wall and another half through back. but i dont like it.. ...
5
votes
2answers
162 views

How far back should I move my camera to fit a given GameObject in frame?

In Unity with C#, I want to calculate the minimum distance that my perspective camera has to be from a given GameObject (a procedurally generated mesh), so that the object is fully framed by the ...
0
votes
0answers
19 views

Can you generate a mesh between to two objects in blender?

I'm wonder if there is any way I can be blender to generate or fill in the gap between these two meshes.
0
votes
2answers
144 views

Stitching terrain tiles made in Blender at runtime

Background I'm making several individual terrain tiles inside of blender for use within a Unity 3D 5 game. Each tile is square and is made to represent a segment of a world. In game the tiles are ...
0
votes
0answers
73 views

Road Networks and meshes; dealing with intersections

For the last month, I have been working on implementing a road network in my game (engine is Unity), in a similar fashion to city builders (where the player is laying the roads). I am not concerned ...
0
votes
0answers
22 views

get UV coordinates from texture

I downloaded a 3D Model, which is made of 3 submeshes, each one with a different texture. For some reasons, the UV coordinates of one mesh are wrong ( everything is x=0, y=1 ). Since I have the ...
2
votes
1answer
294 views

Generating mesh along path

I'm currently trying to generate a path along an array of points(Vector3) This is the result i'm currently getting The dark gray points are the given path The red points are the generated verticies ...
1
vote
1answer
30 views

Blender UV unwrapping causes texture to repeat in UDK material

I've made pillow kinda thing, unwrapped it in Blender and then I imported my mesh to UDK, applied a material: The material splits, but I don't want that to happen, I want to cover the mesh with ...
0
votes
0answers
62 views

Mesh tilemap and scrolling

I'm working on a top-down game where the player can move up, down, left, or right. I've come across tilemaps but since using Unity, I'm seeing the idea of using Meshes. I don't quite understand how ...
1
vote
1answer
83 views

My runtime mesh is not being created where it's vertices are located, need help

I'm trying to create a quad at runtime and I'm encountering an issue where the mesh does not show up in the scene where it's vertices where set. In the following picture you can see the ship, and to ...
1
vote
1answer
85 views

Whats causing this weird texture stretching on my mesh?

Making this mesh via code and the texture seems to only tile on the sides, but not on the top. Any idea whats going on? public class CoreMeshCreator : MonoBehaviour { //Initialization public void ...
2
votes
1answer
189 views

Big 2D world Unity3d

I am planning to make a 2d tile based platformer with big world like in terraria. I have some questions to ask on how to manage this big world in Unity3D. The Scenario World Size = 1000 x 1000 = 1 ...
3
votes
1answer
127 views

Make a triangular mesh from of a map defined by points that follow the coast lines

I have a set of points which follow the coast lines of a world map. I would like to somehow triangulate so that I can render the continents filled in. The points seam to be in order so that if you ...
1
vote
1answer
487 views

Marching Cubes Vertex Normals

I understand how to generate geometry using marching cubes at an isosurface, but I haven't been able to find a clear explanation on how to calculate the vertex normals for a mesh produced using ...
0
votes
0answers
326 views

Binary Space Partitioning of 3d Triangle Mesh (for finding nearest points)

I'm writing a Binary Space Partitioning (BSP) tree for the purpose of optimizing finding the nearest point on the surface of a 3d triangle mesh with respect to another point. I'm currently following a ...
0
votes
1answer
72 views

Only 1 side is rendered

I'm trying to get my .blend object into Unity but for some reason I see it differently in Unity than in Blender. I was trying to solve the problem and someone said that I have to go to the edit mode, ...
0
votes
1answer
125 views

Is topology of procedural meshes important?

I've been working on a project which involves generating 3d game models, mostly hard surface ones, procedurally. Do I have to worry about keeping the topology clean? Will topology affect texturing, ...
0
votes
1answer
132 views

How to retrieve vertex information from ID3DXMesh

I need to know the position of each vertex (and triangles) from a mesh (a pointer to ID3DXMesh, created by calling functions like D3DXCreateBox, D3DXCreateTeapot and D3DXCreateSphere) to perform some ...
1
vote
1answer
630 views

Unity3D rendering only some triangles in a mesh - and triangle fans?

In my OpenGL apps, one of my tricks that I've used often for displaying heads up displays and ui elements, is to have a sorted mesh of triangles and then only render a portion of them. In one game I ...
1
vote
1answer
279 views

How can I make this shader background more efficient?

I want to use a shader as a background for a mobile game. I'm using libgdx for my project. I've never written glsl before, but here's my attempt so far: http://glslsandbox.com/e#22332.13 On desktop ...
0
votes
1answer
161 views

Mesh Generation In Code [closed]

My camera looks like this: I am trying to add 2D polygons to the screen based on the percentage that they take up of a 1920x1080 pixel canvas. Therefore, I calculate this and then use ...
3
votes
1answer
708 views

Fastest way to find closest triangle of mesh from specified point

I have two triangle meshes (let me call them A and B). The meshes may be really big (10.000 - 100.000 polygons). I want to find for every point in A the closest triangle from mesh B. Is there fast ...
0
votes
1answer
302 views

Unity, Cannot change a single Vector2 element of mesh.uv?

I have a simple procedurally generated mesh, with uvs that tile correctly for(int i=1; i<vertices; i++) { uv[i] = new Vector2(x,z); //pseudocode } mesh.uv = uv; This works fine. However if ...
0
votes
2answers
166 views

How to write an adjacency algorithm that compares position data?

I have a list of indexed triangles for which I need to generate adjacency data. I've already written a brute force algorithm that creates 3 edge data structures for each triangle and then compares the ...
1
vote
1answer
1k views

Can I use flat shading on a generated mesh?

I tried to generate a mesh from code in Unity. The problem is, that the edges are automatically smoothed. When I import a model into Unity, I can set the smoothing angle of the edges, but is something ...
1
vote
0answers
260 views

How can I texture a large terrain mesh in OpenGL?

I want to apply a texture to a large terrain mesh in my game. I think that it is just not acceptable to have a gigantic UV map spanning over 4096 x 4096 pixels. What's a better way to apply a texture ...