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
3 answers

how to encode 27 vector3's into a 0-256 value?

I have 27 combinations of 3 values from -1 to 1 of type: Vector3(0,0,0); Vector3(-1,0,0); Vector3(0,-1,0); Vector3(0,0,-1); Vector3(-1,-1,0); ... up to Vector3(0,1,1); Vector3(1,1,1); I need to convert them to and from a 8-bit sbyte / byte…
bandybabboon
  • 2,210
  • 1
  • 23
  • 33
0
votes
1 answer

How to find if a line intersects a voxel from a set of voxels?

I have an input as set of voxels with their centre's (x,y,z) given. I have a set of lines. I want to find if a line is intersected by any voxel in the given voxel set. (Yes/No Question). The current algorithm I am using is to traverse through the…
Rahul Sonanis
  • 55
  • 2
  • 7
0
votes
1 answer

Point indices for a given voxel

I need to partition my data into voxels using octree data structure of PCL. I think I managed to create the octree and voxels. However, I have two questions about octree structure of PCL. My first question is about resolution of the octree. I…
mozendi
  • 85
  • 1
  • 11
0
votes
1 answer

Line passing through a box (Python)

Using Python (2.7), how can I tell when a line is passing through a box made of 4 points? For instance, let's say that I've constructed a cube of points: from matplotlib import pyplot import pylab from mpl_toolkits.mplot3d import Axes3D import…
AaronJPung
  • 1,105
  • 1
  • 19
  • 35
0
votes
1 answer

three.js how to change axis position of a cube

I am currently working on a project with three.js (voxel painter). I encounter a problem when I change the size of a cube the xyz axis remains centered on the cube and does not place at the extreme left of the cube, which gets a shift of the cube…
0
votes
1 answer

Multiple quads in one vbo

I am working on a minecraft-ish game, and I've been working a little more with vbos. However; when drawing multiple faces in a single vbo I seem to have a little bit of a issue. Here is my vbo-generation code: glGenBuffers(1,…
Anonymus
  • 127
  • 1
  • 1
  • 10
0
votes
1 answer

How to render a .vox voxel model in OpenGL?

I need help with rendering a .vox model in OpenGL. The .VOX file format is described here. Here is an example VOX file reader. And here is where I come across the problem - how would I go about rendering a .vox model in OpenGL? I know how to render…
SpruceCat
  • 21
  • 6
0
votes
1 answer

Deleting Value From Multi Dimensional Map?

I am currently making my own voxel engine in c++, however I seem to have come across a problem. I am using a chunk based system and storing it in a 3-dimensional map, the variable definition looks like this:…
Anonymus
  • 127
  • 1
  • 1
  • 10
0
votes
1 answer

Generating Voxel Overhangs with 3d Noise

I've been working on a voxel engine for a couple months, I understand how you can use 2d noise to make a heightmap, and 3d noise as a density value to chose what voxels should or shouldn't be solid, but that only gives you what I refer to as sponge…
Nim
  • 13
  • 1
  • 5
0
votes
2 answers

Clean ways to create lots of cubes in AFrame.io

I have a system, which reads SVG image, and then generates voxel world based on that data. Basically, the SVG image tells the program, where to put which block. Up to now it worked for Minecraft, but I want to change it so that it create…
Glory to Russia
  • 17,289
  • 56
  • 182
  • 325
0
votes
1 answer

OpenGL Voxel engine Face Merging vs Per-Vertex Ambient occlusion

I'm making a voxel engine dividing the world in chunks with 32 x 32 x 32 blocks each. I've been implementing many rendering optimizations such as not rendering faces covered by solid voxels or face merging for same looking neighbour voxels. The…
0
votes
1 answer

3D voxel visualizaiton in web browser

I have implemented 3D surface visualization in web browser by three.js, both for .vtk and .obj files. but now I want to do 3D voxel visualization in web browser, like nifti file. Any suggestions are appreciated. Here is a shortcut pic:
jugg
  • 21
  • 4
0
votes
0 answers

shadow algorithm for voxel based 3d city model

I need to develop a component that analyzes shading times of voxels in 3d city model for every hour in a day for sun's position. What is the best shadowing algorithm or method for this purpose? Shadow mapping or ray tracing? Are there any components…
user51044
  • 45
  • 8
0
votes
1 answer

allocating pixel data into a vector using opencv

I have a 3D vector and a number of images.I am trying to save the pixel data of the images into this vector. The first parameter contains the order number of the image in the set and the next two parameters should contain the pixel data at (x,y)…
Abhishek V. Pai
  • 241
  • 1
  • 10
  • 27
0
votes
1 answer

3D Procedural generation of infinite caves

How can you generate good looking caves? I have tried 3D simplex noise and 3D perlin noise, but neither give me any results. Depending on how I set it up, I get either slices or just random noise. My main problem is, that it seems all these noise…
Enerccio
  • 257
  • 1
  • 10
  • 23