Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

OSPRay2Renderer Class Reference

#include <OSPRay2Renderer.h>

List of all members.

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...


Member Enumeration Documentation

enum OSPRay2Renderer::BGMode
 

Enumeration values:
RT_BACKGROUND_TEXTURE_SOLID 
RT_BACKGROUND_TEXTURE_SKY_SPHERE 
RT_BACKGROUND_TEXTURE_SKY_ORTHO_PLANE 

Definition at line 148 of file OSPRay2Renderer.h.

Referenced by set_bg_mode.

enum OSPRay2Renderer::CameraProjection
 

Enumeration values:
RT_PERSPECTIVE 
RT_ORTHOGRAPHIC 

Definition at line 139 of file OSPRay2Renderer.h.

Referenced by set_camera_projection.

enum OSPRay2Renderer::FogMode
 

Enumeration values:
RT_FOG_NONE 
RT_FOG_LINEAR 
RT_FOG_EXP 
RT_FOG_EXP2 

Definition at line 138 of file OSPRay2Renderer.h.

Referenced by set_cue_mode.

enum OSPRay2Renderer::RenderMode
 

Enumeration values:
RT_SCIVIS 
RT_PATHTRACER 

Definition at line 151 of file OSPRay2Renderer.h.

enum OSPRay2Renderer::RtShadowMode
 

Enumeration values:
RT_SHADOWS_OFF  shadows disabled.
RT_SHADOWS_ON  shadows on, std. impl.

Definition at line 135 of file OSPRay2Renderer.h.

enum OSPRay2Renderer::Verbosity
 

Enumeration values:
RT_VERB_MIN 
RT_VERB_TIMING 
RT_VERB_DEBUG 

Definition at line 147 of file OSPRay2Renderer.h.


Constructor & Destructor Documentation

OSPRay2Renderer::OSPRay2Renderer void   
 

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.

OSPRay2Renderer::~OSPRay2Renderer void   
 

destructor.

Definition at line 252 of file OSPRay2Renderer.C.

References DBG, destroy_scene, NULL, and wkf_timer_destroy.


Member Function Documentation

void OSPRay2Renderer::add_directional_light const float *    dir,
const float *    color
 

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.

void OSPRay2Renderer::add_material int    matindex,
float    ambient,
float    diffuse,
float    specular,
float    shininess,
float    reflectivity,
float    opacity,
float    outline,
float    outlinewidth,
int    transmode
 

Definition at line 2023 of file OSPRay2Renderer.C.

References osp_material::ambient, ResizeArray< osp_material >::appendN, osp_material::diffuse, ResizeArray< osp_material >::num, osp_material::opacity, osp_material::reflectivity, RT_PATHTRACER, RT_SCIVIS, RT_VERB_DEBUG, osp_material::shininess, osp_material::specular, and osp_material::transmode.

void OSPRay2Renderer::add_positional_light const float *    pos,
const float *    color
 

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.

void OSPRay2Renderer::attach_cylinder_array int    numcyl,
int    matindex,
osp_cylinder_array_color   cylarray
 

Definition at line 2224 of file OSPRay2Renderer.C.

References ResizeArray< osp_cylinder_array_color >::append, osp_cylinder_array_color::colors, osp_cylinder_array_color::cols, osp_cylinder_array_color::cyls, osp_cylinder_array_color::geom, osp_cylinder_array_color::ind, osp_cylinder_array_color::indices, osp_cylinder_array_color::matindex, osp_cylinder_array_color::model, NULL, set_material, and osp_cylinder_array_color::vertsrads.

Referenced by cylinder_array, and cylinder_array_color.

void OSPRay2Renderer::attach_mesh int    numverts,
int    numfacets,
int    matindex,
osp_trimesh_v3f_n3f_c3f   mesh
 

Definition at line 2165 of file OSPRay2Renderer.C.

References ResizeArray< osp_trimesh_v3f_n3f_c3f >::append, osp_trimesh_v3f_n3f_c3f::c, osp_trimesh_v3f_n3f_c3f::cols, osp_trimesh_v3f_n3f_c3f::f, osp_trimesh_v3f_n3f_c3f::geom, osp_trimesh_v3f_n3f_c3f::ind, osp_trimesh_v3f_n3f_c3f::matindex, osp_trimesh_v3f_n3f_c3f::model, osp_trimesh_v3f_n3f_c3f::n, osp_trimesh_v3f_n3f_c3f::norms, NULL, set_material, osp_trimesh_v3f_n3f_c3f::v, and osp_trimesh_v3f_n3f_c3f::verts.

Referenced by tricolor_list, trimesh_c4n3v3, trimesh_c4u_n3b_v3f, trimesh_c4u_n3f_v3f, trimesh_n3b_v3f, trimesh_n3f_v3f, and tristrip.

void OSPRay2Renderer::attach_sphere_array int    numsp,
int    matindex,
osp_sphere_array_color   sparray
 

Definition at line 2196 of file OSPRay2Renderer.C.

References ResizeArray< osp_sphere_array_color >::append, osp_sphere_array_color::cents, osp_sphere_array_color::colors, osp_sphere_array_color::cols, osp_sphere_array_color::geom, osp_sphere_array_color::matindex, osp_sphere_array_color::model, NULL, osp_sphere_array_color::radii, osp_sphere_array_color::rads, set_material, and osp_sphere_array_color::xyz.

Referenced by sphere_array, and sphere_array_color.

void OSPRay2Renderer::check_verbose_env  
 

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.

void OSPRay2Renderer::clear_all_lights   [inline]
 

Definition at line 355 of file OSPRay2Renderer.h.

References ResizeArray::clear.

void OSPRay2Renderer::cylinder_array Matrix4   wtrans,
float    rscale,
float *    uniform_color,
int    cylnum,
float *    points,
int    matindex
 

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.

void OSPRay2Renderer::cylinder_array_color Matrix4   wtrans,
float    rscale,
int    cylnum,
float *    points,
float *    radii,
float *    colors,
int    matindex
 

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.

void OSPRay2Renderer::destroy_scene void   
 

Definition at line 327 of file OSPRay2Renderer.C.

References ResizeArray< OSPLight >::clear, ResizeArray< osp_material >::clear, ResizeArray< OSPInstance >::clear, ResizeArray< osp_cylinder_array_color >::clear, ResizeArray< osp_sphere_array_color >::clear, ResizeArray< osp_trimesh_v3f_n3f_c3f >::clear, DBG, framebuffer_destroy, mat, n, NULL, ResizeArray< OSPLight >::num, ResizeArray< osp_material >::num, ResizeArray< osp_cylinder_array_color >::num, ResizeArray< osp_sphere_array_color >::num, ResizeArray< osp_trimesh_v3f_n3f_c3f >::num, and wkf_timer_timenow.

Referenced by OSPRay2Renderer, OSPRay2DisplayDevice::write_trailer, and ~OSPRay2Renderer.

void OSPRay2Renderer::dof_on int    onoff [inline]
 

depth of field on/off.

Definition at line 309 of file OSPRay2Renderer.h.

Referenced by OSPRay2DisplayDevice::write_header.

void OSPRay2Renderer::framebuffer_config int    fbwidth,
int    fbheight
 

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.

void OSPRay2Renderer::framebuffer_destroy void   
 

Definition at line 606 of file OSPRay2Renderer.C.

Referenced by destroy_scene, and framebuffer_resize.

void OSPRay2Renderer::framebuffer_resize int    fbwidth,
int    fbheight
 

Definition at line 586 of file OSPRay2Renderer.C.

References framebuffer_destroy, and RT_VERB_DEBUG.

Referenced by framebuffer_config.

void OSPRay2Renderer::headlight_onoff int    onoff [inline]
 

Definition at line 360 of file OSPRay2Renderer.h.

void OSPRay2Renderer::init_materials  
 

Definition at line 2148 of file OSPRay2Renderer.C.

References DBG, and RT_VERB_DEBUG.

Referenced by OSPRay2Renderer.

int OSPRay2Renderer::OSPRay_Global_Init void    [static]
 

global init, call ONCE.

Definition at line 85 of file OSPRay2Renderer.C.

References DBG, and NULL.

Referenced by OSPRay2DisplayDevice::OSPRay_Global_Init.

void OSPRay2Renderer::OSPRay_Global_Shutdown void    [static]
 

global shutdown, call ONCE.

Definition at line 116 of file OSPRay2Renderer.C.

References DBG.

Referenced by OSPRay2DisplayDevice::OSPRay_Global_Shutdown.

void OSPRay2Renderer::render_compile_and_validate void   
 

Definition at line 618 of file OSPRay2Renderer.C.

References ResizeArray< OSPInstance >::append, ResizeArray< OSPLight >::append, ResizeArray< OSPInstance >::clear, DBG, framebuffer_config, NULL, ResizeArray< OSPLight >::num, ResizeArray< OSPInstance >::num, ResizeArray< osp_cylinder_array_color >::num, num, ResizeArray< osp_trimesh_v3f_n3f_c3f >::num, ResizeArray< osp_directional_light >::num, ResizeArray< osp_sphere_array_color >::num, RT_ORTHOGRAPHIC, RT_SCIVIS, RT_VERB_DEBUG, vec_copy, vec_negate, vec_normalize, and wkf_timer_timenow.

Referenced by render_to_file.

void OSPRay2Renderer::render_to_file const char *    filename
 

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.

void OSPRay2Renderer::reposp_context_stats void   
 

report various context statistics for memory leak debugging, etc.

void OSPRay2Renderer::set_aa_samples int    cnt [inline]
 

antialiasing (samples > 1 == on).

Definition at line 292 of file OSPRay2Renderer.h.

Referenced by OSPRay2DisplayDevice::write_header.

void OSPRay2Renderer::set_ao_ambient float    aoa [inline]
 

set AO ambient lighting factor.

Definition at line 321 of file OSPRay2Renderer.h.

Referenced by OSPRay2DisplayDevice::write_header.

void OSPRay2Renderer::set_ao_direct float    aod [inline]
 

set AO direct lighting factor.

Definition at line 324 of file OSPRay2Renderer.h.

Referenced by OSPRay2DisplayDevice::write_header.

void OSPRay2Renderer::set_ao_samples int    cnt [inline]
 

ambient occlusion (samples > 1 == on).

Definition at line 318 of file OSPRay2Renderer.h.

Referenced by OSPRay2DisplayDevice::write_header.

void OSPRay2Renderer::set_bg_color float *    rgb [inline]
 

Definition at line 327 of file OSPRay2Renderer.h.

void OSPRay2Renderer::set_bg_color_grad_bot float *    rgb [inline]
 

Definition at line 329 of file OSPRay2Renderer.h.

void OSPRay2Renderer::set_bg_color_grad_top float *    rgb [inline]
 

Definition at line 328 of file OSPRay2Renderer.h.

void OSPRay2Renderer::set_bg_gradient float *    vec [inline]
 

Definition at line 330 of file OSPRay2Renderer.h.

void OSPRay2Renderer::set_bg_gradient_botval float    v [inline]
 

Definition at line 332 of file OSPRay2Renderer.h.

void OSPRay2Renderer::set_bg_gradient_topval float    v [inline]
 

Definition at line 331 of file OSPRay2Renderer.h.

void OSPRay2Renderer::set_bg_mode BGMode    m [inline]
 

Definition at line 326 of file OSPRay2Renderer.h.

References BGMode.

void OSPRay2Renderer::set_camera_dof_fnumber float    n [inline]
 

set depth of field f/stop number.

Definition at line 315 of file OSPRay2Renderer.h.

References n.

Referenced by OSPRay2DisplayDevice::write_header.

void OSPRay2Renderer::set_camera_dof_focal_dist float    d [inline]
 

set depth of field focal plane distance.

Definition at line 312 of file OSPRay2Renderer.h.

Referenced by OSPRay2DisplayDevice::write_header.

void OSPRay2Renderer::set_camera_projection CameraProjection    m [inline]
 

set the camera projection mode.

Definition at line 295 of file OSPRay2Renderer.h.

References CameraProjection.

Referenced by OSPRay2DisplayDevice::write_trailer.

void OSPRay2Renderer::set_camera_stereo_convergence_dist float    dist [inline]
 

set stereo convergence distance.

Definition at line 304 of file OSPRay2Renderer.h.

Referenced by OSPRay2DisplayDevice::write_trailer.

void OSPRay2Renderer::set_camera_stereo_eyesep float    eyesep [inline]
 

set stereo eye separation.

Definition at line 301 of file OSPRay2Renderer.h.

Referenced by OSPRay2DisplayDevice::write_trailer.

void OSPRay2Renderer::set_camera_zoom float    zoomfactor [inline]
 

set camera zoom factor.

Definition at line 298 of file OSPRay2Renderer.h.

Referenced by OSPRay2DisplayDevice::write_trailer.

void OSPRay2Renderer::set_cue_mode FogMode    mode,
float    start,
float    end,
float    density
[inline]
 

Definition at line 334 of file OSPRay2Renderer.h.

References FogMode.

Referenced by OSPRay2DisplayDevice::write_header.

void OSPRay2Renderer::set_material OSPGeometricModel &    model,
int    matindex,
float *    uniform_color
 

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.

void OSPRay2Renderer::setup_context int    width,
int    height
 

(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.

void OSPRay2Renderer::shadows_on int    onoff [inline]
 

shadows.

Definition at line 289 of file OSPRay2Renderer.h.

Referenced by OSPRay2DisplayDevice::write_header.

void OSPRay2Renderer::sphere_array Matrix4   wtrans,
float    rscale,
float *    uniform_color,
int    spnum,
float *    centers,
float *    radii,
int    matindex
 

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.

void OSPRay2Renderer::sphere_array_color Matrix4   wtrans,
float    rscale,
int    spnum,
float *    centers,
float *    radii,
float *    colors,
int    matindex
 

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.

void OSPRay2Renderer::tricolor_list Matrix4   wtrans,
int    numtris,
float *    vnc,
int    matindex
 

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.

void OSPRay2Renderer::trimesh_c4n3v3 Matrix4   wtrans,
int    numverts,
float *    cnv,
int    numfacets,
int *    facets,
int    matindex
 

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.

void OSPRay2Renderer::trimesh_c4u_n3b_v3f Matrix4   wtrans,
unsigned char *    c,
signed char *    n,
float *    v,
int    numfacets,
int    matindex
 

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.

void OSPRay2Renderer::trimesh_c4u_n3f_v3f Matrix4   wtrans,
unsigned char *    c,
float *    n,
float *    v,
int    numfacets,
int    matindex
 

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.

void OSPRay2Renderer::trimesh_n3b_v3f Matrix4   wtrans,
float *    uniform_color,
signed char *    n,
float *    v,
int    numfacets,
int    matindex
 

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.

void OSPRay2Renderer::trimesh_n3f_v3f Matrix4   wtrans,
float *    uniform_color,
float *    n,
float *    v,
int    numfacets,
int    matindex
 

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.

void OSPRay2Renderer::tristrip Matrix4   wtrans,
int    numverts,
const float *    cnv,
int    numstrips,
const int *    vertsperstrip,
const int *    facets,
int    matindex
 

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.

void OSPRay2Renderer::update_rendering_state int    interactive
 

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.


The documentation for this class was generated from the following files:
Generated on Tue Apr 23 04:25:48 2024 for VMD (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002