Ignore:
Timestamp:
Apr 17, 2012 12:55:28 AM (11 years ago)
Author:
ldelgass
Message:

Fix clipping bug in nanovis volume renderer. Use computed eye space bounds of
transformed volume bounding box to initialize view-aligned quads before
clipping. Previously an arbitrary eye-space bound was used, and this was too
small for long volumes like nanowires in omennanowire.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/vizservers/nanovis/VolumeRenderer.h

    r2968 r2973  
    100100                         float r, float g, float b, float line_width);
    101101
    102     void getNearFarZ(const Mat4x4& mv, double& zNear, double& zFar);
     102    void getEyeSpaceBounds(const Mat4x4& mv,
     103                           double& xMin, double& xMax,
     104                           double& yMin, double& yMax,
     105                           double& zNear, double& zFar);
    103106
    104107    bool initFont(const char *filename);
Note: See TracChangeset for help on using the changeset viewer.