#include <OSPRayRenderer.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 } |
Public Methods | |
OSPRayRenderer (void) | |
normal constructors and destructors. More... | |
~OSPRayRenderer (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 (OSPGeometry &geom, int matindex, float *uniform_color) |
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 | destroy_context (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 | append_trimesh_v3f_n3f_c3f (osp_trimesh_v3f_n3f_c3f &mesh) |
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 151 of file OSPRayRenderer.h. Referenced by set_bg_mode. |
|
Definition at line 142 of file OSPRayRenderer.h. Referenced by set_camera_projection. |
|
Definition at line 141 of file OSPRayRenderer.h. Referenced by set_cue_mode. |
|
Definition at line 138 of file OSPRayRenderer.h. |
|
Definition at line 150 of file OSPRayRenderer.h. |
|
normal constructors and destructors.
Definition at line 123 of file OSPRayRenderer.C. References check_verbose_env, ResizeArray< osp_cylinder_array_color >::clear, ResizeArray< osp_sphere_array_color >::clear, ResizeArray< osp_trimesh_v3f_n3f_c3f >::clear, DBG, destroy_scene, init_materials, NULL, RT_BACKGROUND_TEXTURE_SOLID, RT_FOG_NONE, RT_SHADOWS_OFF, RT_VERB_DEBUG, RT_VERB_MIN, RT_VERB_TIMING, vmd_ospray_error_callback, vmd_ospray_status_callback, wkf_timer_create, wkf_timer_start, and wkf_timer_timenow. |
|
destructor.
Definition at line 230 of file OSPRayRenderer.C. References DBG, framebuffer_destroy, NULL, and wkf_timer_destroy. |
|
Definition at line 2016 of file OSPRayRenderer.C. References ResizeArray< osp_directional_light >::append, osp_directional_light::color, DBG, osp_directional_light::dir, and vec_copy. |
|
|
Definition at line 2026 of file OSPRayRenderer.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 251 of file OSPRayRenderer.C. References DBG, NULL, RT_VERB_DEBUG, RT_VERB_MIN, RT_VERB_TIMING, and strupcmp. Referenced by OSPRayRenderer, and setup_context. |
|
Definition at line 349 of file OSPRayRenderer.h. References ResizeArray::clear. |
|
|
|
|
|
Definition at line 316 of file OSPRayRenderer.C. References ResizeArray< osp_material >::clear, ResizeArray< osp_cylinder_array_color >::clear, ResizeArray< osp_sphere_array_color >::clear, ResizeArray< osp_trimesh_v3f_n3f_c3f >::clear, DBG, mat, NULL, ResizeArray< osp_material >::num, and wkf_timer_timenow. Referenced by OSPRayRenderer, and OSPRayDisplayDevice::write_trailer. |
|
depth of field on/off.
Definition at line 310 of file OSPRayRenderer.h. Referenced by OSPRayDisplayDevice::write_header. |
|
Definition at line 505 of file OSPRayRenderer.C. References framebuffer_resize, and RT_VERB_DEBUG. Referenced by render_compile_and_validate, and render_to_file. |
|
Definition at line 559 of file OSPRayRenderer.C. Referenced by framebuffer_resize, and ~OSPRayRenderer. |
|
Definition at line 538 of file OSPRayRenderer.C. References framebuffer_destroy, and RT_VERB_DEBUG. Referenced by framebuffer_config. |
|
Definition at line 354 of file OSPRayRenderer.h. |
|
Definition at line 2000 of file OSPRayRenderer.C. References DBG, and RT_VERB_DEBUG. Referenced by OSPRayRenderer. |
|
global init, call ONCE.
Definition at line 86 of file OSPRayRenderer.C. Referenced by OSPRayDisplayDevice::OSPRay_Global_Init. |
|
global shutdown, call ONCE.
Definition at line 118 of file OSPRayRenderer.C. Referenced by OSPRayDisplayDevice::OSPRay_Global_Shutdown. |
|
Definition at line 575 of file OSPRayRenderer.C. References data, DBG, framebuffer_config, NULL, ResizeArray< osp_cylinder_array_color >::num, num, ResizeArray< osp_sphere_array_color >::num, ResizeArray< osp_trimesh_v3f_n3f_c3f >::num, ResizeArray< osp_directional_light >::num, RT_ORTHOGRAPHIC, RT_VERB_DEBUG, vec_copy, vec_normalize, VMD_PI, and wkf_timer_timenow. Referenced by render_to_file. |
|
Definition at line 1869 of file OSPRayRenderer.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 OSPRayDisplayDevice::write_trailer. |
|
report various context statistics for memory leak debugging, etc.
|
|
antialiasing (samples > 1 == on).
Definition at line 293 of file OSPRayRenderer.h. Referenced by OSPRayDisplayDevice::write_header. |
|
set AO ambient lighting factor.
Definition at line 322 of file OSPRayRenderer.h. Referenced by OSPRayDisplayDevice::write_header. |
|
set AO direct lighting factor.
Definition at line 325 of file OSPRayRenderer.h. Referenced by OSPRayDisplayDevice::write_header. |
|
ambient occlusion (samples > 1 == on).
Definition at line 319 of file OSPRayRenderer.h. Referenced by OSPRayDisplayDevice::write_header. |
|
Definition at line 328 of file OSPRayRenderer.h. |
|
Definition at line 330 of file OSPRayRenderer.h. |
|
Definition at line 329 of file OSPRayRenderer.h. |
|
Definition at line 331 of file OSPRayRenderer.h. |
|
Definition at line 333 of file OSPRayRenderer.h. |
|
Definition at line 332 of file OSPRayRenderer.h. |
|
Definition at line 327 of file OSPRayRenderer.h. References BGMode. |
|
set depth of field f/stop number.
Definition at line 316 of file OSPRayRenderer.h. References n. Referenced by OSPRayDisplayDevice::write_header. |
|
set depth of field focal plane distance.
Definition at line 313 of file OSPRayRenderer.h. Referenced by OSPRayDisplayDevice::write_header. |
|
set the camera projection mode.
Definition at line 296 of file OSPRayRenderer.h. References CameraProjection. Referenced by OSPRayDisplayDevice::write_trailer. |
|
set stereo convergence distance.
Definition at line 305 of file OSPRayRenderer.h. Referenced by OSPRayDisplayDevice::write_trailer. |
|
set stereo eye separation.
Definition at line 302 of file OSPRayRenderer.h. Referenced by OSPRayDisplayDevice::write_trailer. |
|
set camera zoom factor.
Definition at line 299 of file OSPRayRenderer.h. Referenced by OSPRayDisplayDevice::write_trailer. |
|
Definition at line 335 of file OSPRayRenderer.h. References FogMode. Referenced by OSPRayDisplayDevice::write_header. |
|
Definition at line 2007 of file OSPRayRenderer.C. References mat, and RT_VERB_DEBUG. Referenced by append_trimesh_v3f_n3f_c3f, cylinder_array, cylinder_array_color, sphere_array, and sphere_array_color. |
|
re(configure) the OSPRay context.
Definition at line 271 of file OSPRayRenderer.C. References check_verbose_env, DBG, NULL, and wkf_timer_timenow. Referenced by OSPRayDisplayDevice::write_header. |
|
shadows.
Definition at line 290 of file OSPRayRenderer.h. Referenced by OSPRayDisplayDevice::write_header. |
|
Definition at line 2161 of file OSPRayRenderer.C. References ResizeArray< osp_sphere_array_color >::append, osp_sphere_array_color::cents, osp_sphere_array_color::colors, osp_sphere_array_color::cols, DBG, osp_sphere_array_color::geom, osp_sphere_array_color::matindex, Matrix4::multpoint3d, NULL, osp_sphere_array_color::num, RT_VERB_DEBUG, set_material, vec_copy, and osp_sphere_array_color::xyzr. Referenced by OSPRayDisplayDevice::text. |
|
|
Definition at line 2315 of file OSPRayRenderer.C. References append_trimesh_v3f_n3f_c3f, osp_trimesh_v3f_n3f_c3f::c, osp_trimesh_v3f_n3f_c3f::f, osp_trimesh_v3f_n3f_c3f::matindex, Matrix4::multnorm3d, Matrix4::multpoint3d, osp_trimesh_v3f_n3f_c3f::n, osp_trimesh_v3f_n3f_c3f::numtris, osp_trimesh_v3f_n3f_c3f::numverts, osp_trimesh_v3f_n3f_c3f::v, and vec_copy. Referenced by OSPRayDisplayDevice::tricolor. |
|
|
|
|
|
|
|
Definition at line 362 of file OSPRayRenderer.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. |