Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [voxels]

VOlumetric piXEL (volumetric picture element). A way to store volume data as a regular grid of values. This tag should be used on questions relating to voxels.

0
votes
0answers
22 views

Greedy Meshing : Slow to rebuild when updating chunk

I've a problem with my voxel based game. The game is sliced into chunks (Like Minecraft), each chunk is 16x256x16 blocks. When I started the project, I used a basic culling system when hidden blocks ...
0
votes
0answers
41 views

XNA 4.0 C# How to draw cube with the index method

EDIT NOTE: I was trying to impliment indexing to my code instead of instancing. I left the indexing method because in my case, I don't need to use it. Preview Untill now I have drawed my cube with ...
0
votes
0answers
29 views

Mapping between a sphere and a cube

I'm developing a game that procedurally generates terrains with a voxel engine. These terrains are essentially flat cubes that trail off into infinity on the x and z axes. y is basically the altitude, ...
0
votes
0answers
18 views

Adding another diffuse texture on top of the existing one in Unity3D?

I'm working on a voxel game, and I would like to add different properties to the voxels, which are visualised by an extra (transparent) diffuse texture on the voxel's default one. Voxels could have ...
0
votes
0answers
16 views

Throwing away inner faces of cubes of a transparent voxel structure in Unity3D?

I want to create a "Building site is (not) obstructed." indicator for my building system. How can I throw away those faces which would be hidden if the material would be opaque?
0
votes
1answer
154 views

Vulkan rendering of Minecraft-like world in C++

I decided on using 16x16x16 (4096 total) chunks of blocks. Problem is with textures. First idea was about texture atlas but it would require a lot of calculation and possible problems in dividing UV (...
0
votes
1answer
52 views

how to use 2D noise with a voxel sphere

I have a bunch of voxels, lets just say 64x64x64, that I use to create a sphere/planet. This works very well, but once I try to apply noise to create a more interesting terrain things go wrong. 3D ...
1
vote
0answers
83 views

How to use Transvoxel tables

Could someone explain how to use the lookup tables provided on http://transvoxel.org/ with the regular Marching Cubes algorithm? I'm not even talking about the whole LOD System etc. I actually ...
0
votes
0answers
33 views

In voxel based multiplayer Unity game the sync messages wont find their targets sometimes?

I have a Projectile Has a NetworkBehaviour, NetworkIdentity, NetworkTransform (with high send rate) Has a ...
0
votes
1answer
84 views

Unity block chunk generation pattern

I am trying to do something like Minecraft game in Unity. Currently I am trying to generate a chunk of blocks, given dimensions. I can successfully create a chunk of N x 0 x 0 sized chunk, but due to ...
2
votes
1answer
94 views

OpenGL Outlining Cubes in a Greedy Meshed Mesh

So I've managed to get myself a greedy meshing algorithm implemented for a little voxel game I'm developing to teach myself LWJGL/OpenGL, and it's going great. The thing is, I don't plan on using ...
3
votes
1answer
306 views

Overcoming fill rate and generation bottlenecks in voxel engine

I decided to make a voxel engine using octrees. I am instancing entire cubes and sending the sizes and positions to the vertex shader. I currently have 2 major problems: Problem 1 - Because the ...
1
vote
1answer
32 views

How to find the largest bounding boxes in 3D array to cover all cells?

I'm trying to generate colliders automatically from a 3D array where each cell represents a constant-sized piece in a world (like a voxel). I'm trying to optimize the number of colliders, so I want to ...
0
votes
2answers
92 views

Does it make sense to use voxel editors only for meshing?

I am a hobbyist game developer. If there is something that I really don't like is 3D modeling, in particular all the work that needs to be put in the "pipeline" for the creation of models, in ...
4
votes
2answers
298 views

Name of this technique used in games such as Minecraft or the sims

In Minecraft, there are some blocks which are a little bit different than just cubes. For example stairs or fences: these elements are "aware" of their surrounding blocks and render differently based ...
0
votes
2answers
63 views

How do I determine which voxels to test for collision against the player?

I've implemented Minkowski subtraction to test whether (and where) two AABBs collide, independent of framerate/time-step, in my Minecraft-like game. But since there may be tens of thousands of voxels,...
0
votes
0answers
27 views

Rendering to a 3D texture crating multiple mipmap levels in multiple calls

My goal is to create a 3D texture that contains a voxelization of a quadrant in my scene at some voxel resolution. For this purpose I created a shading program that renders each layer of the ...
0
votes
0answers
28 views

Chunk not building completely

I'm trying to build some voxel terrain however I'm having some issues with some of the faces of the mesh not loading properly. Here's an image below : I think it has to do with either how I'm getting ...
1
vote
0answers
375 views

How to use array texture as a replacement for a texture atlas given thousands of block types in minecraft style game?

I've been trying to figure out how texture atlassing works, only to see people say that you shouldn't do it, and instead use array textures (provided you can target people with that capability, which ...
2
votes
0answers
143 views

Design pattern for world objects caching

I'm developing in Unity a voxel-generated terrain and I'm trying to find an extensible design pattern for voxels and more in general, world objects caching. E.g. storing in a 'ChunkCache' class only ...
1
vote
0answers
188 views

How to efficiently batch blocks and reduce drawcalls in a voxel-like game

To fully get the benefits of GPU instancing in Unity in a voxel-like game I'm trying to batch as many static blocks as possible (the terrain won't be destructible, and I can't set these blocks to '...
1
vote
2answers
874 views

How to efficiently spawn / instantiate a large amount of objects from a prefab

I am trying to make a game where the whole world is consists of a very large amount of cubes (sort of a Minecraft / Trove clone), but I keep running into huge performance issues due to the large ...
0
votes
0answers
345 views

performance for many objects from magicavoxel into unity

I am using magica voxel to create different types of tiles for a floor, so I can have 3 or 4 different types then mix and match them together to create a floor for rooms and corridors. However, I ...
1
vote
0answers
95 views

Is there a game that is both voxel and polygons? [closed]

Looking to see the difference between the two technologies in a game experience and not in experiments - is there a half-decent game out there that has two modes - polygons and voxel? EDIT Games ...
0
votes
0answers
172 views

Asset imported from Magica-Voxel in unity is too big for the scene view

I am new to game development, I have created a game scene in MagicaVoxel (126 x 126 x 126 i.e full dimensions). So when I import it in unity (as an Object) the size of the asset is too big. So I ...
0
votes
1answer
91 views

Why are voxels used for landscape?

According to Wikipedia many games have been using so far voxel engines for modelling landscape. Why is it only used for landscape and not characters etc?
-1
votes
1answer
111 views

How can we generate terrain using simplex noise 2d with block position vectors

My problem might be special comparing to other questions related to terrain generation using simplex noise 2d. Each chunk contains a table of 1-dimensional array which encompasses the position data( ...
4
votes
2answers
386 views

How do i store blocks information in my Voxel game?

I am trying to make a voxel game. Voxel games made by blocks and each block has it's own information such as durability, step sounds, strength, ... How do i store these information inside of blocks? ...
2
votes
1answer
334 views

Voxel traversal intersection float position

I have a 3D grid of cubes, and using the algorithm from this paper http://www.cs.yorku.ca/~amana/research/grid.pdf I've been able to get the integer coordinates of the first tile intersected by a ...
4
votes
1answer
432 views

How do we generate overhangs with simplex noise 3d?

Now I use a simplex noise 2d function with x( voxel's x location ) and y(voxel's y location) to generate heightmap. How do we use simplex noise 3d to generate overhangs? What should the x y z inputs ...
1
vote
2answers
322 views

Voxel Game - High Memory and CPU Usage

I am currently developing a voxel game and I had recently noticed that the game from startup is at around 2GB of memory. Currently I am rendering 14 x 14 chunks as shown: I did a profile on the game ...
2
votes
0answers
96 views

Voxel Game - Lag when camera is inside of the terrain

I am making a voxel game in OpenGL and I currently render 8 x 8 chunks to the screen. The first thing I do is generate the map using Simplex Noise and this is done once when the chunk is created. I ...
12
votes
1answer
286 views

How to implement stress/strain mechanics in voxel terrain?

I am in the process of developing a Minecraft-like world where the terrain is divided into voxels. However, I would also like for unstable configurations of landscapes to collapse predictably. For ...
0
votes
1answer
54 views

Problem about underground block generation for voxels

I've been working at a voxel sandbox game and have already implemented chunk generation and stuff. But I just found that generating underground blocks with the surface ones is impossible, since that ...
2
votes
1answer
357 views

How to create seamless and coherent voxel terrain using simplex noise 2D?

I'm using the simplex noise 2d plugin for unreal engine 4, which can also be understood by most programmers. I have already implemented chunk generation and dual-chunk noise elevation. However, each ...
1
vote
2answers
264 views

Dynamic chunk loading with high FPS. But still chops

I am creating a voxel world, (like any other person), but I currently have a small performance hit when loading/unloading chunks. Right now I can load and unload chunks dynamically with "infinite" ...
-1
votes
1answer
137 views

how to initialize a 3d array of Vectors3 in Unity

I scoured the web for how to create a 3d array of Vectors to store chunks location info for a Voxel terrain generation based on Craig Perko's Terrain generation on YouTube. I was also using lists and ...
1
vote
1answer
260 views

How to achieve good looking surface net normals?

EDIT After Victor T.'s suggestion (ignore seams): I'm using elastic surface nets to convert a 3D voxels into a nice smooth mesh. The mesh part, is great, however, I can't seem to find a decent ...
1
vote
1answer
458 views

Mesh from MagicaVoxel cast a strange holed shadow

I have a problem with any mesh I import from MagicaVoxel into Unity. As you can see from the screenshot below, the mesh on the left cast a shadow that has holes in it. That's a basic 7-voxel mesh ...
1
vote
1answer
94 views

Why are my chunks not showing in my Unity voxels engine?

I created a voxel engine in Unity. It worked fine until yesterday when I tried to remove the faces between chunks to create a seamless world. Now there's just an empty world when entering the game. ...
0
votes
1answer
54 views

What programs could I use to render an animation based on points (“atoms”) rather than models? [closed]

I've rendered the following animation using JavaScript and canvas: https://www.youtube.com/watch?v=AMLqe5HdVok For that, I used points exclusively - i.e., there is no mesh/trigs, not only the ...
3
votes
2answers
2k views

How does transvoxel algorithm work and how can I implement It?

After wasting over three days of researching on DuckDuckGo/Google, trying to understand transvoxel paper and existing implementation, I come here to clarify the subject for me and made it easier for ...
1
vote
1answer
229 views

Voxel blocks world physic

I'm making a game like Minecraft. I have a world made of blocks and I'm trying to implement a basic physic system that applies gravity and checks entities colliding with the blocks of the world. I ...
0
votes
2answers
246 views

Coordinate transformation in voxel ray-tracing?

I am implementing voxelization. I can't understand the coordinate transformation through shader. I have read some papers and code, the first step in the geometry shader is project the triangle ...
3
votes
1answer
128 views

How to make far block graphically better?

What calcules can I do to make far objects looking better? My game Here's what I see if I go back with the camera in my test-rendering scene: As you can see the result is not one of the bests: ...
-1
votes
2answers
519 views

Implementing a lego-like system that doesn't hog computer resources?

I've heard of the term "voxel" used with modern block-builder games such as minecraft. Other games implement what appears to be a voxel system -- yet they incorporate complex 3d objects such as guns, ...
1
vote
1answer
272 views

Marching cubes with destructible environment

I've been spending a lot of time over the past few days finding out information about the marching cubes algorithm and I'm pretty sure I understand it. My game would be using chunks of land with the ...
1
vote
0answers
360 views

1D vs 2D vs 3D texture performance

I'm working on a 3D game with large blocky untextured, but individually colored, voxels (similar to CubeWorld). For rendering, right now I naively convert online all visible faces ahead of time to ...
0
votes
2answers
718 views

How can I randomly pick points on a triangle?

Please can help me for a geometry query, I am working out fast mesh to voxel algorithm without using rays and complex maths... What are the maths to sample N points on a triangle randomly? If you ...
1
vote
1answer
354 views

How to compute a heightmap and use as 3d voxel floating point

When you want to compute a heightmap and use for 3d voxel binary, it's easy. solid are maybe 1, and air are 0, easy. But in my case I would like to have a smooth terrain, so the solution is the ...