Stack Exchange Network

Stack Exchange network consists of 174 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
1answer
30 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
58 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
26 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
57 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
67 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
288 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 ...
0
votes
1answer
20 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
76 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
283 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
53 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
25 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
296 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
140 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
164 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
642 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
290 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
87 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
154 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
81 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
91 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
335 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
309 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
403 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
282 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
88 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
263 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
51 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
330 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
231 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
119 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
218 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
416 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
93 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 ...
2
votes
2answers
1k 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
207 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
234 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
114 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
454 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
249 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
323 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
636 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
335 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 ...
0
votes
1answer
162 views

Storing rendering data for voxel game 1 VAO and VBO or 1 for every chunk

I have a minecraft style voxel game with placing and digging blocks. it runs at 400+ fps on my computer but when I added semi-transparent water it started running at ~40 fps. so a time per frame ...
0
votes
1answer
114 views

making special blocks in a voxel game OpenGL

I'm making a voxel game and it looks quite good but then i thought of special blocks like minecrafts grass leaf blocks, and translucent water. I had the idea for the grass blocks to put them in a ...
4
votes
3answers
403 views

Cube world rendering optimizations

I'm making a Minecraft like game and I would like to apply some optimizations. Firstly I didn't and I rendered the world using a vbo in which I stored a cube model and I drow all blocks of the worlds ...
0
votes
1answer
100 views

Only first vertex of data used in shader OpenGL

I'm making a voxel game like Minecraft which was working fine until I added water. Then I realized that whatever the texture was for the first visible block was applied to the rest of the blocks in ...
0
votes
0answers
457 views

Voxel clouds rendering in Unity

I would like to have realistic voxel clouds in Unity game - I found a very promising article on fast fluid simulations, however the the output of the algorithm itself is 3D grid of cloud densities (=...