Ignore:
Timestamp:
Mar 28, 2009, 3:50:16 PM (16 years ago)
Author:
vrinside
Message:

improving the flow vis engine

  • particle advection for multiple vector field
  • specifying multiple advection planes
  • specifying the position of a particle injection plane
  • specifying the axis of a particle injection plane
  • specifying the visibility of particle injection planes
  • specifying the particle color for each particle injection plane
  • rendering device shapes

[NOTE] Currently, I commented out with the MACRO NEW_FLOW_ENGINE in config
To use this, please comment NEW_FLOW_ENGINE in

File:
1 edited

Legend:

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

    r1310 r1370  
    5252#include "Volume.h"
    5353#include "NvParticleRenderer.h"
     54#include "NvFlowVisRenderer.h"
    5455#include "PerfQuery.h"
    5556#include "Event.h"
     
    7273#define SCALE 3.0       //scale for background pattern. small value -> fine texture
    7374
     75class NvVectorField;
     76
    7477struct Vector2 {
    7578    float x, y;
     
    106109    static VolumeRenderer* vol_renderer;
    107110    static PointSetRenderer* pointset_renderer;
    108     static NvParticleRenderer* particleRenderer;
     111#ifndef NEW_FLOW_ENGINE
     112    static NvParticleRenderer* flowVisRenderer;
     113#else
     114    static NvFlowVisRenderer* flowVisRenderer;
     115#endif
    109116    static NvLIC* licRenderer;
    110117    static vector<PointSet*> pointSet;
     
    120127    static unsigned char* screen_buffer;
    121128    static vector<Volume*> volume;
     129    static vector<NvVectorField*> flow;
    122130    static Grid* grid;
    123131    static R2Fonts* fonts;
Note: See TracChangeset for help on using the changeset viewer.