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.

Filter by
Sorted by
Tagged with
0
votes
1answer
64 views

How should I store loaded world chunks in RAM (For my game similar to minecraft)?

I am trying to replicate a chunk loading system in C for my own minecraft like game, though I don't know how. Once chunks are loaded, are they placed in an array, or are there a bunch of variables for ...
0
votes
1answer
99 views

How does a game like Minecraft handle block and entity updates?

I am not asking how Minecraft loads chunks or generates chunks, I am asking about individual blocks and entities and their behaviours. Suppose you have a dirt block: dirt block can be converted to a ...
2
votes
1answer
48 views

How can I make an OpenGl/GLSL varying vary throughout a quad instead of a triangle in OpenGl 3.3?

I am, like many others, currently working on a block-based game in C++ and OpenGl. Recently, I added ambient occlusion support. This ambient occlusion is created by modulating the brightness of a ...
1
vote
1answer
59 views

Voxel traversal for parabolic projectile arc under constant gravity

For linear polynomials, there's a bunch of algorithms for efficiently determining which voxels to test for collision (eg. A Fast Voxel Traversal Algorithm for Ray Tracing ). I'm having troubles though,...
0
votes
0answers
22 views

Check whether an object is fully inside/overlapped by other objects in Unity3D?

I have structures made of voxels (cube gameobjects), and I want to make complex structures from them. But I don't always want to place them on the grid. I want them to be more realistic, like ...
1
vote
1answer
32 views

Texture with transparency not rendered correctly in LibGDX

The title might be a bit misleading but I'm having a hard time to explain the problem so I'll try with pictures: Same tree from opposite site: I'm trying to create a voxel game and at the moment I ...
1
vote
0answers
25 views

How to make effective permament rubble in a voxel game made in Unity3D?

I'm working on a semi-voxel game, and I already optimized the voxel structures' meshes by combining and chunking them. When I destroy a voxel, I spawn a low poly voxel fragment, with a rigidbody and ...
2
votes
1answer
32 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 ...
9
votes
2answers
4k views

Storing voxels for a voxel Engine in C++

I am trying to write a little voxel engine because it's fun, but struggle to find the best way to store the actual voxels. I'm aware I will need chunks of some sort so I don't need to have the entire ...
0
votes
0answers
37 views

How can I diminish my voxel terrain's height smoothly instead of randomly?

I have a script that is supposed to diminish height smoothly when an int is lowered, I tried perlin noise to make it lower like it would if it where terrain, which is the goal I'm after, but it only ...
2
votes
2answers
156 views

Minecraft-Style Voxel Sunlight Algorithm

I'm implementing a pure Minecraft clone, and I want to implement sunlight. I have a basic sunlight algorithm working perfectly in 2D, and I understand how to scale it to 3D. But how do I make it so I ...
0
votes
0answers
88 views

Voxel terrain generation performance problems

I am trying to create a minecraft clone to practice some stuff in Unity including Raycasting, terrain generation and player controlls. Terrain is generating without any problem with a perlinNoise. ...
0
votes
1answer
58 views

Performance of delta force-esque voxel terrain

I've been reading about voxel terrain lately and often see people asserting that it will absolutely kill performance. What I don't understand is how games like Delta Force managed to have smooth ...
0
votes
0answers
80 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
77 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
20 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
33 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
240 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
85 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
121 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
42 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 ...
1
vote
1answer
132 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
137 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
340 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
35 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
99 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
328 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
92 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,...
1
vote
0answers
492 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
146 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
3answers
4k views

How to increase MagicaVoxel size limit?

I need to increase the size of the field you make models in by at least 20. It really doesn't make sense why you cannot go beyond 126x126x126 because in the MagicaVoxel viewer, there are sample models ...
1
vote
0answers
234 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
1k 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 ...
1
vote
0answers
126 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
1answer
98 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
160 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
499 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
422 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 ...
3
votes
1answer
537 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
374 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
109 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 ...
13
votes
1answer
331 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
62 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
445 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
328 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
162 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
342 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
496 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
96 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 ...