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
6
votes
1 answer

Is there a java-library for rendering with a voxel-engine?

I'm interested if there are libraries in java, that render voxel-based sceneries? Open-Source is preferred, as always.
Mnementh
  • 50,487
  • 48
  • 148
  • 202
6
votes
2 answers

Plotting cuboids

I'm trying to plot cuboids of different sizes using matplotlib, such that: after rotation the cuboids do not overlap visually in a non-physical way, the cubes have different colors and a box drawn around them. I've read several blog posts and…
Knaapje
  • 165
  • 1
  • 1
  • 10
6
votes
5 answers

OpenGL voxel engine slow

I'm making a voxel engine in C++ and OpenGL (à la Minecraft) and can't get decent fps on my 3GHz with ATI X1600... I'm all out of ideas. When I have about 12000 cubes on the screen it falls to under 20fps - pathetic. So far the optimizations I have…
Solenoid
  • 2,351
  • 5
  • 29
  • 48
6
votes
3 answers

Infinite cube world engine (like Minecraft) optimization suggestions?

Voxel engine (like Minecraft) optimization suggestions? As a fun project (and to get my Minecraft-adict son excited for programming) I am building a 3D Minecraft-like voxel engine using C# .NET4.5.1, OpenGL and GLSL 4.x. Right now my world is built…
It's me ... Alex
  • 279
  • 4
  • 11
5
votes
4 answers

Efficient method for rendering cubes with different textures on each side for a Minecraft-like game?

I'm trying to decide what the most efficient way to render a bunch of cubes with different textures in a Minecraft-like game is. I discovered instanced rendering. What I've done is I've created a single "cube model" which stores all the vertices,…
mpen
  • 272,448
  • 266
  • 850
  • 1,236
5
votes
1 answer

Player to voxel collision detection/response

I have a big array of voxels, a la Minecraft. The player/enemies are in this grid. I have no idea how to go about doing this type of collision detection. Note, this is NOT dynamic movable object vs. dynamic movable object, this is movable object vs.…
user901037
5
votes
2 answers

Regular expression on voxel space

Is there a way to loosely describe an object (via pattern matching finite automata, for example) in 3d voxel grid in the same way we can loosely describe patterns in one-dimensional string with regexp? Let's say I want to describe a cuboid of "A"…
Kuroki Kaze
  • 8,161
  • 4
  • 36
  • 48
5
votes
1 answer

Using Texture Atlas as Texture Array in OpenGL

I'm now building a Voxel game. In the beginning, I use a texture atlas that stores all voxel textures and it works fine. After that, I decided to use Greedy Meshing in my game, thus texture atlas is not useful anymore. I read some articles which…
QDinh
  • 404
  • 4
  • 7
5
votes
1 answer

Draw all voxels that pass through a 3D line in 3D voxel space

I want to draw a 3D voxelized line, that is, to find all the voxels which a line passes. 3D bresenham always skips some voxels. As shown in the figure, the voxels generated by 3D bresenham cannot completely contain the line between the start voxel…
yaqian chen
  • 101
  • 4
5
votes
1 answer

What is "Hermite Data" described in the Dual Contouring algorithm?

I have been reading various sources the past hours and couldn't understand how Dual Contouring works. My problem is that I don't know the meaning of "Hermite Data" and even Google and Wikipedia couldn't help me on that. Could someone explain me what…
QuesterDesura
  • 385
  • 2
  • 18
5
votes
4 answers

Drawing 3D sphere in C/C++

I am looking for an algorithm which can draw a nice looking 3D sphere on small resolution. I found Bresenham's circle algorithm but it's for 2D drawing. I just need spheres borders (I don't need it filled). I also googled for a solution of the…
Ezio_
  • 593
  • 3
  • 9
  • 23
5
votes
4 answers

Compute gradient for voxel data efficiently

What is the most efficient way of computing the gradient for fixed sized voxel data, such as the source code below. Note that I need the gradient at any point in space. The gradients will be used for estimating normals in a marching cubes…
Mortennobel
  • 3,383
  • 4
  • 29
  • 46
5
votes
2 answers

3D voxel Display in matlab

I have a grid, it is 3D and it stores a number. Here is an example of my grid if it is 2*2*2: (:, :, 1) -> [0, 0; 0, 0] (:, :, 2) -> [0, 0; 0, 0] The number 0 would usually be a number that I would like to represent with…
Fantastic Mr Fox
  • 32,495
  • 27
  • 95
  • 175
4
votes
1 answer

How to find adjacent / neighbor cubes using octree datastructure?

I have created a boundary octree for a closed surface. All the octree cubes that contain the surface are divided up to the same level. So all the leaf nodes are of the same size. I need help in finding out the neighbors for each of these terminal…
frodo baggins
  • 41
  • 1
  • 3
4
votes
1 answer

How to represent voxel volume in VTK file format?

I have 3D binary array which represents a volume, where a[x,y,z] = 0 indicates no object and a[x,y,z] = 1 indicates the object region. I want to save this as a VTK file and view it in ParaView. What is the simplest way to achieve this? Suggestions…
sergtk
  • 10,714
  • 15
  • 75
  • 130
1
2
3
28 29