#include <OSPRay2Renderer.h>
Public Types | |
enum | RtShadowMode { RT_SHADOWS_OFF = 0, RT_SHADOWS_ON = 1 } |
enum | FogMode { RT_FOG_NONE = 0, RT_FOG_LINEAR = 1, RT_FOG_EXP = 2, RT_FOG_EXP2 = 3 } |
enum | CameraProjection { RT_PERSPECTIVE = 0, RT_ORTHOGRAPHIC = 1 } |
enum | Verbosity { RT_VERB_MIN = 0, RT_VERB_TIMING = 1, RT_VERB_DEBUG = 2 } |
enum | BGMode { RT_BACKGROUND_TEXTURE_SOLID = 0, RT_BACKGROUND_TEXTURE_SKY_SPHERE = 1, RT_BACKGROUND_TEXTURE_SKY_ORTHO_PLANE = 2 } |
enum | RenderMode { RT_SCIVIS = 0, RT_PATHTRACER = 1 } |
Public Methods | |
OSPRay2Renderer (void) | |
normal constructors and destructors. More... | |
~OSPRay2Renderer (void) | |
destructor. More... | |
void | check_verbose_env () |
check environment variables that modify verbose output. More... | |
void | setup_context (int width, int height) |
(re)configure the OSPRay context. More... | |
void | reposp_context_stats (void) |
report various context statistics for memory leak debugging, etc. More... | |
void | shadows_on (int onoff) |
shadows. More... | |
void | set_aa_samples (int cnt) |
antialiasing (samples > 1 == on). More... | |
void | set_camera_projection (CameraProjection m) |
set the camera projection mode. More... | |
void | set_camera_zoom (float zoomfactor) |
set camera zoom factor. More... | |
void | set_camera_stereo_eyesep (float eyesep) |
set stereo eye separation. More... | |
void | set_camera_stereo_convergence_dist (float dist) |
set stereo convergence distance. More... | |
void | dof_on (int onoff) |
depth of field on/off. More... | |
void | set_camera_dof_focal_dist (float d) |
set depth of field focal plane distance. More... | |
void | set_camera_dof_fnumber (float n) |
set depth of field f/stop number. More... | |
void | set_ao_samples (int cnt) |
ambient occlusion (samples > 1 == on). More... | |
void | set_ao_ambient (float aoa) |
set AO ambient lighting factor. More... | |
void | set_ao_direct (float aod) |
set AO direct lighting factor. More... | |
void | set_bg_mode (BGMode m) |
void | set_bg_color (float *rgb) |
void | set_bg_color_grad_top (float *rgb) |
void | set_bg_color_grad_bot (float *rgb) |
void | set_bg_gradient (float *vec) |
void | set_bg_gradient_topval (float v) |
void | set_bg_gradient_botval (float v) |
void | set_cue_mode (FogMode mode, float start, float end, float density) |
void | init_materials () |
void | add_material (int matindex, float ambient, float diffuse, float specular, float shininess, float reflectivity, float opacity, float outline, float outlinewidth, int transmode) |
void | set_material (OSPGeometricModel &model, int matindex, float *uniform_color) |
void | attach_sphere_array (int numsp, int matindex, osp_sphere_array_color &sparray) |
void | attach_cylinder_array (int numcyl, int matindex, osp_cylinder_array_color &cylarray) |
void | attach_mesh (int numverts, int numfacets, int matindex, osp_trimesh_v3f_n3f_c3f &mesh) |
void | clear_all_lights () |
void | headlight_onoff (int onoff) |
void | add_directional_light (const float *dir, const float *color) |
void | add_positional_light (const float *pos, const float *color) |
void | update_rendering_state (int interactive) |
void | framebuffer_config (int fbwidth, int fbheight) |
void | framebuffer_resize (int fbwidth, int fbheight) |
void | framebuffer_destroy (void) |
void | render_compile_and_validate (void) |
void | render_to_file (const char *filename) |
void | destroy_scene (void) |
void | cylinder_array (Matrix4 *wtrans, float rscale, float *uniform_color, int cylnum, float *points, int matindex) |
void | cylinder_array_color (Matrix4 &wtrans, float rscale, int cylnum, float *points, float *radii, float *colors, int matindex) |
void | sphere_array (Matrix4 *wtrans, float rscale, float *uniform_color, int spnum, float *centers, float *radii, int matindex) |
void | sphere_array_color (Matrix4 &wtrans, float rscale, int spnum, float *centers, float *radii, float *colors, int matindex) |
void | tricolor_list (Matrix4 &wtrans, int numtris, float *vnc, int matindex) |
void | trimesh_c4n3v3 (Matrix4 &wtrans, int numverts, float *cnv, int numfacets, int *facets, int matindex) |
void | trimesh_c4u_n3b_v3f (Matrix4 &wtrans, unsigned char *c, signed char *n, float *v, int numfacets, int matindex) |
void | trimesh_c4u_n3f_v3f (Matrix4 &wtrans, unsigned char *c, float *n, float *v, int numfacets, int matindex) |
void | trimesh_n3b_v3f (Matrix4 &wtrans, float *uniform_color, signed char *n, float *v, int numfacets, int matindex) |
void | trimesh_n3f_v3f (Matrix4 &wtrans, float *uniform_color, float *n, float *v, int numfacets, int matindex) |
void | tristrip (Matrix4 &wtrans, int numverts, const float *cnv, int numstrips, const int *vertsperstrip, const int *facets, int matindex) |
Static Public Methods | |
int | OSPRay_Global_Init (void) |
global init, call ONCE. More... | |
void | OSPRay_Global_Shutdown (void) |
global shutdown, call ONCE. More... |
|
Definition at line 148 of file OSPRay2Renderer.h. Referenced by set_bg_mode. |
|
Definition at line 139 of file OSPRay2Renderer.h. Referenced by set_camera_projection. |
|
Definition at line 138 of file OSPRay2Renderer.h. Referenced by set_cue_mode. |
|
Definition at line 151 of file OSPRay2Renderer.h. |
|
Definition at line 135 of file OSPRay2Renderer.h. |
|
Definition at line 147 of file OSPRay2Renderer.h. |
|
normal constructors and destructors.
Definition at line 122 of file OSPRay2Renderer.C. References check_verbose_env, ResizeArray< osp_cylinder_array_color >::clear, ResizeArray< osp_sphere_array_color >::clear, ResizeArray< osp_trimesh_v3f_n3f_c3f >::clear, ResizeArray< OSPInstance >::clear, DBG, destroy_scene, init_materials, NULL, RT_BACKGROUND_TEXTURE_SOLID, RT_FOG_NONE, RT_PATHTRACER, RT_SCIVIS, RT_SHADOWS_OFF, RT_VERB_DEBUG, RT_VERB_MIN, RT_VERB_TIMING, vmd_ospray2_error_callback, vmd_ospray2_status_callback, wkf_timer_create, wkf_timer_start, and wkf_timer_timenow. |
|
destructor.
Definition at line 252 of file OSPRay2Renderer.C. References DBG, destroy_scene, NULL, and wkf_timer_destroy. |
|
Definition at line 2257 of file OSPRay2Renderer.C. References ResizeArray< osp_directional_light >::append, osp_directional_light::color, DBG, osp_directional_light::dir, and vec_copy. |
|
|
Definition at line 2267 of file OSPRay2Renderer.C. References ResizeArray< osp_positional_light >::append, osp_positional_light::color, DBG, osp_positional_light::pos, and vec_copy. |
|
|
|
|
check environment variables that modify verbose output.
Definition at line 267 of file OSPRay2Renderer.C. References DBG, NULL, RT_VERB_DEBUG, RT_VERB_MIN, RT_VERB_TIMING, and strupcmp. Referenced by OSPRay2Renderer, and setup_context. |
|
Definition at line 355 of file OSPRay2Renderer.h. References ResizeArray::clear. |
|
Definition at line 2277 of file OSPRay2Renderer.C. References attach_cylinder_array, osp_cylinder_array_color::colors, DBG, osp_cylinder_array_color::indices, Matrix4::multpoint3d, NULL, osp_cylinder_array_color::num, RT_VERB_DEBUG, vec_copy, and osp_cylinder_array_color::vertsrads. Referenced by OSPRay2DisplayDevice::text. |
|
Definition at line 2325 of file OSPRay2Renderer.C. References attach_cylinder_array, osp_cylinder_array_color::colors, DBG, osp_cylinder_array_color::indices, Matrix4::multpoint3d, osp_cylinder_array_color::num, RT_VERB_DEBUG, vec_copy, and osp_cylinder_array_color::vertsrads. Referenced by OSPRay2DisplayDevice::send_cylinder_buffer. |
|
|
depth of field on/off.
Definition at line 309 of file OSPRay2Renderer.h. Referenced by OSPRay2DisplayDevice::write_header. |
|
Definition at line 553 of file OSPRay2Renderer.C. References framebuffer_resize, and RT_VERB_DEBUG. Referenced by render_compile_and_validate, and render_to_file. |
|
Definition at line 606 of file OSPRay2Renderer.C. Referenced by destroy_scene, and framebuffer_resize. |
|
Definition at line 586 of file OSPRay2Renderer.C. References framebuffer_destroy, and RT_VERB_DEBUG. Referenced by framebuffer_config. |
|
Definition at line 360 of file OSPRay2Renderer.h. |
|
Definition at line 2148 of file OSPRay2Renderer.C. References DBG, and RT_VERB_DEBUG. Referenced by OSPRay2Renderer. |
|
global init, call ONCE.
Definition at line 85 of file OSPRay2Renderer.C. Referenced by OSPRay2DisplayDevice::OSPRay_Global_Init. |
|
global shutdown, call ONCE.
Definition at line 116 of file OSPRay2Renderer.C. References DBG. Referenced by OSPRay2DisplayDevice::OSPRay_Global_Shutdown. |
|
|
Definition at line 1948 of file OSPRay2Renderer.C. References DBG, framebuffer_config, NULL, render_compile_and_validate, RT_VERB_DEBUG, RT_VERB_TIMING, update_rendering_state, wkf_timer_timenow, and write_image_file_rgb4u. Referenced by OSPRay2DisplayDevice::write_trailer. |
|
report various context statistics for memory leak debugging, etc.
|
|
antialiasing (samples > 1 == on).
Definition at line 292 of file OSPRay2Renderer.h. Referenced by OSPRay2DisplayDevice::write_header. |
|
set AO ambient lighting factor.
Definition at line 321 of file OSPRay2Renderer.h. Referenced by OSPRay2DisplayDevice::write_header. |
|
set AO direct lighting factor.
Definition at line 324 of file OSPRay2Renderer.h. Referenced by OSPRay2DisplayDevice::write_header. |
|
ambient occlusion (samples > 1 == on).
Definition at line 318 of file OSPRay2Renderer.h. Referenced by OSPRay2DisplayDevice::write_header. |
|
Definition at line 327 of file OSPRay2Renderer.h. |
|
Definition at line 329 of file OSPRay2Renderer.h. |
|
Definition at line 328 of file OSPRay2Renderer.h. |
|
Definition at line 330 of file OSPRay2Renderer.h. |
|
Definition at line 332 of file OSPRay2Renderer.h. |
|
Definition at line 331 of file OSPRay2Renderer.h. |
|
Definition at line 326 of file OSPRay2Renderer.h. References BGMode. |
|
set depth of field f/stop number.
Definition at line 315 of file OSPRay2Renderer.h. References n. Referenced by OSPRay2DisplayDevice::write_header. |
|
set depth of field focal plane distance.
Definition at line 312 of file OSPRay2Renderer.h. Referenced by OSPRay2DisplayDevice::write_header. |
|
set the camera projection mode.
Definition at line 295 of file OSPRay2Renderer.h. References CameraProjection. Referenced by OSPRay2DisplayDevice::write_trailer. |
|
set stereo convergence distance.
Definition at line 304 of file OSPRay2Renderer.h. Referenced by OSPRay2DisplayDevice::write_trailer. |
|
set stereo eye separation.
Definition at line 301 of file OSPRay2Renderer.h. Referenced by OSPRay2DisplayDevice::write_trailer. |
|
set camera zoom factor.
Definition at line 298 of file OSPRay2Renderer.h. Referenced by OSPRay2DisplayDevice::write_trailer. |
|
Definition at line 334 of file OSPRay2Renderer.h. References FogMode. Referenced by OSPRay2DisplayDevice::write_header. |
|
Definition at line 2155 of file OSPRay2Renderer.C. References mat, and RT_VERB_DEBUG. Referenced by attach_cylinder_array, attach_mesh, and attach_sphere_array. |
|
(re)configure the OSPRay context.
Definition at line 287 of file OSPRay2Renderer.C. References check_verbose_env, DBG, and wkf_timer_timenow. Referenced by OSPRay2DisplayDevice::write_header. |
|
shadows.
Definition at line 289 of file OSPRay2Renderer.h. Referenced by OSPRay2DisplayDevice::write_header. |
|
Definition at line 2367 of file OSPRay2Renderer.C. References attach_sphere_array, osp_sphere_array_color::colors, DBG, Matrix4::multpoint3d, NULL, osp_sphere_array_color::num, osp_sphere_array_color::radii, RT_VERB_DEBUG, vec_copy, and osp_sphere_array_color::xyz. Referenced by OSPRay2DisplayDevice::text. |
|
Definition at line 2424 of file OSPRay2Renderer.C. References attach_sphere_array, osp_sphere_array_color::colors, DBG, Matrix4::multpoint3d, osp_sphere_array_color::num, osp_sphere_array_color::radii, RT_VERB_DEBUG, vec_copy, and osp_sphere_array_color::xyz. Referenced by OSPRay2DisplayDevice::sphere_array. |
|
Definition at line 2452 of file OSPRay2Renderer.C. References attach_mesh, osp_trimesh_v3f_n3f_c3f::c, osp_trimesh_v3f_n3f_c3f::f, Matrix4::multnorm3d, Matrix4::multpoint3d, osp_trimesh_v3f_n3f_c3f::n, osp_trimesh_v3f_n3f_c3f::num, osp_trimesh_v3f_n3f_c3f::v, and vec_copy. Referenced by OSPRay2DisplayDevice::tricolor. |
|
Definition at line 2497 of file OSPRay2Renderer.C. References attach_mesh, osp_trimesh_v3f_n3f_c3f::c, osp_trimesh_v3f_n3f_c3f::f, Matrix4::multnorm3d, Matrix4::multpoint3d, osp_trimesh_v3f_n3f_c3f::n, osp_trimesh_v3f_n3f_c3f::num, RT_VERB_DEBUG, osp_trimesh_v3f_n3f_c3f::v, and vec_copy. Referenced by OSPRay2DisplayDevice::trimesh_c4n3v3. |
|
Definition at line 2554 of file OSPRay2Renderer.C. References attach_mesh, osp_trimesh_v3f_n3f_c3f::c, osp_trimesh_v3f_n3f_c3f::f, Matrix4::multnorm3d, Matrix4::multpoint3d, osp_trimesh_v3f_n3f_c3f::n, n, osp_trimesh_v3f_n3f_c3f::num, RT_VERB_DEBUG, osp_trimesh_v3f_n3f_c3f::v, and vec_copy. Referenced by OSPRay2DisplayDevice::trimesh_c4u_n3b_v3f. |
|
Definition at line 2634 of file OSPRay2Renderer.C. References attach_mesh, osp_trimesh_v3f_n3f_c3f::c, osp_trimesh_v3f_n3f_c3f::f, Matrix4::multnorm3d, Matrix4::multpoint3d, osp_trimesh_v3f_n3f_c3f::n, n, osp_trimesh_v3f_n3f_c3f::num, RT_VERB_DEBUG, osp_trimesh_v3f_n3f_c3f::v, and vec_copy. Referenced by OSPRay2DisplayDevice::trimesh_c4u_n3f_v3f. |
|
Definition at line 2697 of file OSPRay2Renderer.C. References attach_mesh, osp_trimesh_v3f_n3f_c3f::c, osp_trimesh_v3f_n3f_c3f::f, Matrix4::multnorm3d, Matrix4::multpoint3d, osp_trimesh_v3f_n3f_c3f::n, n, osp_trimesh_v3f_n3f_c3f::num, RT_VERB_DEBUG, osp_trimesh_v3f_n3f_c3f::v, and vec_copy. Referenced by OSPRay2DisplayDevice::trimesh_n3b_v3f. |
|
Definition at line 2763 of file OSPRay2Renderer.C. References attach_mesh, osp_trimesh_v3f_n3f_c3f::c, DBG, osp_trimesh_v3f_n3f_c3f::f, Matrix4::multnorm3d, Matrix4::multpoint3d, osp_trimesh_v3f_n3f_c3f::n, n, osp_trimesh_v3f_n3f_c3f::num, RT_VERB_DEBUG, osp_trimesh_v3f_n3f_c3f::v, and vec_copy. Referenced by OSPRay2DisplayDevice::send_triangle_buffer, and OSPRay2DisplayDevice::trimesh_n3f_v3f. |
|
Definition at line 2825 of file OSPRay2Renderer.C. References attach_mesh, osp_trimesh_v3f_n3f_c3f::c, osp_trimesh_v3f_n3f_c3f::f, Matrix4::multnorm3d, Matrix4::multpoint3d, osp_trimesh_v3f_n3f_c3f::n, osp_trimesh_v3f_n3f_c3f::num, RT_VERB_DEBUG, osp_trimesh_v3f_n3f_c3f::v, and vec_copy. Referenced by OSPRay2DisplayDevice::tristrip. |
|
Definition at line 411 of file OSPRay2Renderer.C. References DBG, ResizeArray< osp_positional_light >::num, ResizeArray< osp_directional_light >::num, RT_VERB_DEBUG, RT_VERB_TIMING, and wkf_timer_start. Referenced by render_to_file. |