
Samstag, 25. August 2012
Blending two Voxel Scenes
Here a experiment to apply blendshapes to a voxel scene. Its much slower, still runs at interactive framerates (20-30). The video lags as the framecapture@1024x768 took quite a lot of CPU time.


OpenCL Voxel Octree Raycasting
Here the same scene visualized using OpenCL octree raycasting. Eventhough the persistent threads method is not used, its around 20-100% faster than the previous splatting (depending on the scene). The code is ported from my previous CUDA raycaster. Hardware is again the GTX580M.Each method has its advantages though. While octree raycasting works better for static objects, splatting is better for dynamic scenes.
Freitag, 17. August 2012
OpenCL Voxel Splatting 2.000.000.000 points/s
Resolution:1024x768 Voxel Field: 20.000 x 20.000 x 1024 Voxels, Framerate: 30-40 Fps, LOD and Frustrum Culling are used. Dataset: 5.4M points / instance at highest resolution , 6.9M including all levels of detail.
Download : Link1 Link2
Samstag, 21. Juli 2012
Voxel Splatting using OpenGL & Shaders
This screenshot shows a first test of using OpenGL
and the Geometry Shader as well as LOD to render
a voxel scene.
Specs:
* 4 bytes / voxel
* ~40 fps for the scene on the left
* LOD support
* Per voxel frustrum culling
Main bottleneck seems to be the triangle setup after the Geometry shader. As for the memory consumption,
4 bytes / voxel is more than RLE ( 3.5 ) and less than the previous posted octree method ( 6.8 )
Donnerstag, 19. Januar 2012
Procedural Geometry Maps & Tessellation Shaders
In this sample, terrains and objects are created using procedural geometry maps as input for the tessellation shader. For windows in procedural buildings, hole generation is supported.
Features
• Geometry-Map based Procedural Geometry
• Dynamic Tesselation via Tesselation Shaders
• Procedural Holes / Extrusions
Performance
~ 48 FPS @ 1024x768 (no object culling)
~ 140 FPS @ 1024x768 (with object culling)
Used Hardware: Nvidia 560 Ti
General Scene
With carved holes Wireframe
Features
• Geometry-Map based Procedural Geometry
• Dynamic Tesselation via Tesselation Shaders
• Procedural Holes / Extrusions
Performance
~ 48 FPS @ 1024x768 (no object culling)
~ 140 FPS @ 1024x768 (with object culling)
Used Hardware: Nvidia 560 Ti
Samstag, 24. September 2011
Tessellation Shader Tutorial with Source Code C++
To make it easier to start with Tessellation Shaders, here a GL4.0 example. (VS9,C++).
The file can be downloaded from here:
Update: a first performance benchmark gives around 266 Million Polygons/second using tesselation, which is slower than using a common VBO or OpenGL DisplayList (400 MPoly/s). However, its more flexible, so geometry can be rendered much more efficient.
#version 410 core
layout(vertices = 4) out;
void main(void)
{
gl_TessLevelOuter[0] = 2.0;
gl_TessLevelOuter[1] = 4.0;
gl_TessLevelOuter[2] = 6.0;
gl_TessLevelOuter[3] = 8.0;
gl_TessLevelInner[0] = 8.0;
gl_TessLevelInner[1] = 8.0;
gl_out[gl_InvocationID].gl_Position = gl_in[gl_InvocationID].gl_Position;
}
Source for the quad tessellation evaluation shader:
#version 410 core
layout(quads, equal_spacing, ccw) in;
//quad interpol
vec4 interpolate(in vec4 v0, in vec4 v1, in vec4 v2, in vec4 v3)
{
vec4 a = mix(v0, v1, gl_TessCoord.x);
vec4 b = mix(v3, v2, gl_TessCoord.x);
return mix(a, b, gl_TessCoord.y);
}
void main()
{
gl_Position = interpolate(
gl_in[0].gl_Position,
gl_in[1].gl_Position,
gl_in[2].gl_Position,
gl_in[3].gl_Position);
}
Dienstag, 14. Juni 2011
Voxel Sculpting test
Here a first test of using voxel sculpting with COAT3D, created in just few hours.Sculpting is done in Coat3D, the lightmap is rendered in Blender. The models polygon count is reduced using MeshLab.
The UV map is not ideal in this case since its created in LithUnwrap. Using the unwrap function of Coat3D creates a seamless UV map.
Abonnieren
Posts (Atom)





