Package examples :: Module volumerenderer
[hide private]
[frames] | no frames]

Module volumerenderer

source code

Volume renderer that creates a set of image files from different perspectives.


Author: Stephan Wenger

Date: 2012-03-07

Classes [hide private]
  VolumeRenderer
Variables [hide private]
  vertex_code = '\n#version 400 core\n\nlayout(location=0) in ve...
  back_fragment_code = '\n#version 400 core\n#extension GL_ARB_t...
  front_fragment_code = '\n#version 400 core\n#extension GL_ARB_...
  cube_vertices = ((0.0, 0.0, 0.0), (0.0, 0.0, 1.0), (0.0, 1.0, ...
  cube_indices = ((0, 1, 3), (0, 2, 6), (0, 3, 2), (0, 6, 4), (3...
  __package__ = 'examples'
Variables Details [hide private]

vertex_code

Value:
'''
#version 400 core

layout(location=0) in vec4 in_position;
uniform mat4 modelview_matrix;
out vec4 ex_front;

void main() {
...

back_fragment_code

Value:
'''
#version 400 core
#extension GL_ARB_texture_rectangle : enable

in vec4 ex_front;
layout(location=0) out vec4 out_color;

void main() {
...

front_fragment_code

Value:
'''
#version 400 core
#extension GL_ARB_texture_rectangle : enable

#define STEP_SIZE 0.001
#define MAX_LENGTH sqrt(3.0)

in vec4 ex_front;
...

cube_vertices

Value:
((0.0, 0.0, 0.0),
 (0.0, 0.0, 1.0),
 (0.0, 1.0, 0.0),
 (0.0, 1.0, 1.0),
 (1.0, 0.0, 0.0),
 (1.0, 0.0, 1.0),
 (1.0, 1.0, 0.0),
 (1.0, 1.0, 1.0))

cube_indices

Value:
((0, 1, 3),
 (0, 2, 6),
 (0, 3, 2),
 (0, 6, 4),
 (3, 1, 5),
 (3, 5, 7),
 (4, 1, 0),
 (4, 5, 1),
...