Questions tagged [voxel]

A voxel (volumetric pixel) is a volume element, representing a value on a regular grid in three dimensional space.

Wikipedia, Voxel

434 questions
0
votes
0 answers

Marching through a voxel volume takes over a second

I'm trying to raycast / raymarch through a (virtual) volume of 64^3 voxels for about 90x90 rays. The marching algorithm looks like this: public byte[] GetVoxel(Vec3 rayStart, Vec3 direction) { direction.Normalize(); bool…
pixartist
  • 1,137
  • 2
  • 18
  • 40
0
votes
1 answer

LWJGL 3D Movement messed up

I am attempting to create a 3D game using solely LWJGL and Slick-util, and I intend for it to be a first-person game, so I need a way to navigate the map using 3D movement. I have a position Vector3f and another vector acc to store acceleration. I…
Michael Shift
  • 104
  • 2
  • 8
0
votes
1 answer

Watertight marching cubes like lookup table?

I'm trying to to polygonise a scalar field. Every point on the grid can only have a value of 1 or 0. I need to create an array with 256 polygon arrays for 8 points, but, unlike marching cubes, the edges of these polygons can only be at the points of…
0
votes
1 answer

set/unset active state for all openvdb::Grid node

I have an openvdb grid and I would like to reset the active state of all voxels that are not background. Currently I am using an operator and the function openvdb::tools::foreach that iterates over all value nodes. In particular I might want to do…
Pierluigi
  • 2,212
  • 1
  • 25
  • 39
0
votes
1 answer

Chunks loading and sort

I working on clone of minecraft and i have 2 problem with chunk loading. First: Determinate chunks to be loaded. i found one way it's ugly but works fast for me Define 3d array (array) (size : MAX_CHUNKS_X,MAX_CHUNKS_Y,MAX_CHUNKS_Z) Fill 3d array…
0
votes
1 answer

Am I using MapDB in the best way?

I have a question regarding MapDB. The code excerpt below is from part of a bigger system for managing voxel data, the specifics are not important. Usage of the maps I create is frequent and large in scope, in that these maps typically store…
MukRaker
  • 49
  • 12
0
votes
0 answers

Interpolate color between voxels

I have a 3D texture containing voxels and I am ray tracing and, everytime i hit a voxel i display the color. The result is nice but you can clearly see the different blocks being separated by one another. i would like to get a smoothing color going…
tigeradol
  • 259
  • 2
  • 16
0
votes
1 answer

Adding Blocks to a Chunk - Java OpenGL

In my voxel engine, right now I am trying to add blocks to the chunk, and it's half-working. It's in Java and OpenGL. Anyways, when I am placing the block I am doing this: public void placeBlock(int x, int y, int z, Block block) { // c = chunk …
Boodog
  • 176
  • 1
  • 2
  • 11
0
votes
1 answer

Cube normals on voxel engine producing odd results

I am trying to add normals to my voxel engines 16x16 cube chunks. When I render everything I get odd results. I am not sure if I have placed my normals incorrectly or if implementing simple shadows with lighting wont work how I am using it. The…
0
votes
1 answer

Voxel chunk rendering upside down

I am trying to implement a voxel engine with opengl in Java. When I try to render a voxel chunk on the screen with some simplex noise to generate terrain it appears to be upside down. I am assuming it's because of the was I am looping through my…
0
votes
1 answer

Creating a voxel chunk with a single VBO - How to translate the coordinates of each block and add it to the VBO chunk?

I'm trying to make a opengl voxel engine similar to minecraft. I have created a chunk class and I want to put all of the vertices for the whole chunk into a single VBO. I was previously only putting each block into a vbo and making a call to render…
0
votes
1 answer

Dual contouring algorithm messed up -- any ideas what could cause this (screenshot)?

I've ported this Dual Contouring implementation to C#: http://sourceforge.net/projects/dualcontouring/ Unfortunately, I think I messed up somewhere along the way. And there's a lot of code involved, so it's hard to go through and match up the C# to…
Daniel
  • 1,151
  • 1
  • 9
  • 15
0
votes
1 answer

VBO Generate Verts for Chunks (Voxel Engine, Cpp)

I'm working on a Voxel Engine and I'm using VBO. My problem is that I don't know how to generate Vertices. I need to generate vertices for a chunk, So create a Chunk of cubes (With one VBO) from X,Y,Z coords. How Can I do this?
0
votes
1 answer

LWJGL How to move using x, y, z

Hello I am having trouble using lwjgl to add into the camera coordinates. I think its to do with the gluPerspective I will post my code but could you also tell me how to implement moving in the directing of the mouse. And put a cross hair in…
user3343497
  • 194
  • 1
  • 1
  • 9
0
votes
2 answers

Where to start with voxel engine?

I have been working on a voxel game for some time now, but all that I have really accomplished was the main menu and an Item system. Now its time to make the voxel engine. I have been searching for a while now to find some tutorials or an ebook that…
SemperAmbroscus
  • 1,308
  • 2
  • 12
  • 23