The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
0answers
40 views

Generating Mesh From Voxel Data [on hold]

I need help converting a 3D array of voxels (The array indexes are the voxel positions) to an actual voxel terrain mesh (float array for vertices, And a int array for indices) So i can render a chunk ...
0
votes
1answer
55 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
0answers
24 views

How to create a raster tiff (dem / heightmap) from a mesh of xyz points? [on hold]

I have to create a terrain heightmap from mesh of xyz points(in geographical coordinates), I tried taking min and max of bbox of mesh and making width & height by subtracting max-min and then ...
0
votes
2answers
74 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
99 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
94 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 ...
2
votes
1answer
76 views

How do I serialise a mesh to a text file?

I'm building a game engine in OpenTK (OpenGL for C#). Is it ossible to take a terrain mesh (in any format) and convert it into a text file (or a really small character-filled file, no more than a few ...
0
votes
0answers
60 views

Render text on a Quad

I have created a quad with a single color that's rendered on screen as a square, which is fine. I want to add some text to it (or slightly in front of it) that says "Hello". It sounds from reading ...
0
votes
1answer
68 views

Terrain (mesh) textures in Unity - blurry?

I've created a 3D mesh in blender which will be used as a terrain in Unity. Additionaly, I created a 900x900 texture which I'd like to apply as material to the mesh. However, unlike with the normal ...
2
votes
1answer
55 views

Unity - Imported meshes from Blender always corrupt

I want to import a terrain mesh I made in Blender into Unity, however Unity seems to fail to load it correctly. What could be the reason behind this and how can I fix it?
6
votes
1answer
222 views

How do professional games avoid showing pixel seams in adjacent mesh boundaries due to decimal imprecision?

Graphics cards are mathematically imprecise. So when some meshes are joined by their borders, the graphics card often makes mistakes and decides that some pixels at the seam represent neither object, ...
0
votes
1answer
87 views

Clipping text in algorithm

I'm looking for an algorithm that can clip a text ( GUI Mesh text ) when it's length is over 20 characters. The problem is I have one background image(textured plane) (orthographic), where I want to ...
8
votes
1answer
415 views

Adaptive vs progressive mesh

Is there any distinction between these two? I couldn't find anything in google under "Adaptive vs progressive mesh", but googling them both separately gives results as if they were likely the same.
0
votes
2answers
200 views

FBX SDK Getting Tangents and Binormals From a Mesh?

How do I import tangent and binormal data per vertex from a FBX Mesh. I already know how to get Vertices, Normals and UVs but how would I get tangents and binormals? For example this is how I would ...
1
vote
1answer
65 views

Determine Mesh Vertex Index Given Another Mesh Index

Please bare with me as I explain what I am trying to accomplish :P Each 'X' below represents a mesh vertex: For my Unity3d GameObject (G1); the mesh vertices are stored in a C# List object in the ...
0
votes
1answer
138 views

Is it ok to destroy mesh directly from MeshFilter in Unity?

Mesh.Destroy(myGameObject.GetComponent<MeshFilter>()); May it cause any problems or undefined behaviour? (the reason I ask this is that I'm trying to destroy an exiting component which is ...
0
votes
0answers
135 views

Libgdx - 2D Mesh rendering overlap glitch

I am trying to render a 2D circle segment mesh (quarter circle)using Libgdx/Opengl ES 2.0 but I seem to be getting an overlapping issue as seen in the picture attached. I cant seem to find the cause ...
2
votes
1answer
72 views

Generate 2D Triangular Mesh from Vertices on a Map

Given a map of vertices {(x1,y1), (x2,y2), ... (xn,yn)}, how can I generate a 2D triangular mesh covering all vertices, and where the area of all triangles completely covers the map? The triangular ...
1
vote
0answers
74 views

How do I save my programmatically generated Mesh to a .X file in SlimDX? [closed]

The Mesh has been created properly with SlimDX, but Mesh.ToXFile(barMesh, "foo.x", XFileFormat.Text,CharSet.Unicode); throws a NullReferenceException. I checked that barMesh is not null. Inside the ...
1
vote
0answers
43 views

Bullet Physics ConvexDecomposition?

I've looked at Bullet Physics ConvexComposition Demo and would like to implement that in my game but the code is so undescriptive and it's hard to understand what is going on. Would any of you people ...
0
votes
1answer
88 views

Load Meshes with Bullet Physics

I just started implementing some physics in my game with Bullet Physics and I was just wondering how would i use bullet physics to load in meshes. For my for DirectX I load in x files into a ...
0
votes
1answer
83 views

Incomplete mesh using DrawIndexedPrimitives after rotating mesh

Through help on this site I was able to draw the triangles of an unrotated, nonscaled nontransformed mesh created in Blender and exported to OBJ, accurately imported through Assimp and rendered in XNA ...
1
vote
1answer
153 views

What should I do when a VBO becomes too large in OpenGL?

Currently I have one buffer for my vertex data and one buffer for normals data. I fill them and then pass them to OpenGL for rendering. The problem is when I load too large mesh file like "Lucy" from ...
14
votes
3answers
1k views

Using instancing for everything?

Instancing improves performance (significantly) when rendering multiple (hunders? thousands?) copies of the same mesh at once. But how much overhead does it have when rendering exactly one copy with ...
3
votes
2answers
203 views

OpenGL - Index buffers problem

I have a custom file format that has all the needed information for a 3D mesh (exported from 3ds Max). I've extracted the data for vertices, vertex indices and normals. I pass to OpenGL the vertex ...
1
vote
1answer
149 views

A problem with texture atlasing in Unity

I have the texture below and I need to get rectangular parts from it. I could finally combine meshes of different quads to improve performance, but I with quads of different tilings, this means ...
0
votes
2answers
126 views

What does a Mesh consist of?

I have seen various implementations of mesh loaders in a few open source game engines. But all of them behave meshes differently. Is there a general definition for a mesh that explains what meshes ...
2
votes
1answer
51 views

Creating 3D objects from code and their normals

I'm trying to create my own 3D objects from scratch so I can generate my own terrain for a game I'm making. So I created a cube and realized the lighting was strange, I looked up the cause and found ...
1
vote
1answer
1k views

Procedural terrain - how to blend textures between dynamic meshes

I think I should structure this question better. I'm developing a procedural terrain structured with voxel chunks. Every chunk: contains a NxNxN voxel array generated with perlin noise 3d ...
2
votes
3answers
249 views

How can I apply a mesh distortion to walls like in Dungeon Keeper 2?

In Dungeon Keeper 2, the walls of the dungeon have different random shapes depending on its state (freshly dug or reinforced, and so on). They look like they are cubes of 3x3 vertices that have a ...
0
votes
0answers
77 views

Tilemap mesh issue with z, -z axis

I don't understand why the created mesh is upside down if z ( z*tileSize ) is positive, the mesh is then rendered with the texture looking down. With "-z", the mesh texture is looking up correctly, ...
0
votes
0answers
126 views

Texturing Custom Meshes/Terrain?

Here's the scenario: I procedurally generate terrain on the fly, creating an isosurface which is an overlay on top of a scalar field of data points. These underlying data points are basically voxel ...
0
votes
1answer
315 views

Importing an object from Blender into a scene, rotation on X axis?

This is my situation: I save the scene with blender no export with any processing steps. Blender has x right y up -z into the scene for the view coordinates (OpenGL) I have x right y up -z into ...
2
votes
1answer
130 views

How to move on a mesh?

I am working on my collision system right now and I wondered how you can actually walk on a mesh. For example I'm thinking about a dynamically created little village and I want to be able to move the ...
2
votes
2answers
194 views

What is “terrain mesh generation” exactly?

I'm new to computer graphics and need to know and understand what the "terrain mesh generation" is? I read about "terrain", "mesh", "terrain generation" but can't find an article named "terrain mesh ...
1
vote
2answers
291 views

Rendering large and high poly meshes

Consider an huge terrain that has a lot polygons, to render this terrain I thought of following techniques: Using height-map instead of raw meshes: Yes, but I want to create a lot of caves and stuff ...
3
votes
2answers
712 views

How do I morph between meshes that have different vertex counts?

I am using MeshMorpher from the Unify wiki in my Unity project, and I want to be able to transform between arbitrary meshes. This script only works when there are an equal number of vertices between ...
3
votes
1answer
192 views

Mesh objects and a draw function

I'm currently working with a mesh class so I can easily create mesh objects. Now I want a draw function in my mesh class so when ever i want draw it to the screen I can just call it without any fuss. ...
0
votes
4answers
274 views

Is there a game not using meshes for models? [closed]

Traditionally, models consist of lots of vertices connected by triangles. That forces the use of a high amount of vertices for detailed organic shapes or makes models kind of blocky. Even though ...
3
votes
1answer
930 views

How to optimise mesh data

So i have some procedurally generated mesh data and i want to reduce it down to its minimum number of verts. In case it matters this is a unity project. Working on the basis of a simple example, ...
1
vote
0answers
124 views

Batch mesh simplification [closed]

I need a script for simplifying meshes, to run on a server in headless (no GUI) mode. Are there open source (or at least gratis) tools out there I could use for this? Or, how would I script Blender to ...
4
votes
2answers
323 views

Creating stable tentacle structures

I am using verlet integration to simulate some tentacles. So far it works great and I am satisfied with how it looks in general. Here is how a tentacle is built: The very stiff sticks are colored ...
4
votes
2answers
2k views

Where and how to smooth a voxel-based terrain surface?

I want to smooth the blocky terrain in a Minecraft-like world. The smoothing affects visual appearance and physics but not the logic of placing and picking blocks. I have my mathematical formula to ...
1
vote
0answers
804 views

Blender: How to merge multiple meshes of same object?

I have run into a bit of a problem creating my 3D model. I started with a single mesh and added additional meshes (all in edit mode) to create my geometric shape. They are all part of the same object, ...
4
votes
1answer
244 views

How attach a model with another model on a specific bone?

I meet a difficulty attached to a model to another model on a "bone" accurate. I searched several forums but no result. I saw that many people have asked the same question but no real result see no ...
13
votes
5answers
3k views

Generated 3d tree meshes

I did not find a question on these lines yet, correct me if I'm wrong. Trees (and fauna in general) are common in games. Due to their nature, they are a good candidate for procedural generation. ...