Ignore:
Timestamp:
Mar 13, 2009, 12:40:28 PM (16 years ago)
Author:
vrinside
Message:

fixing the particle advection (Too fast velocity should be considered)

Location:
trunk/packages/vizservers/nanovis
Files:
2 edited

Legend:

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

    r1317 r1323  
    809809                // TEMP
    810810                //data[4*index] = lic_slice_x;
    811                 data[4*index] = 1.0;
     811                data[4*index] = 0.95;
    812812                data[4*index+1]= j/float(particleRenderer->psys_height);
    813813                data[4*index+2]= i/float(particleRenderer->psys_width);
  • trunk/packages/vizservers/nanovis/shaders/update_pos.cg

    r1301 r1323  
    2828    float time = pos.w;
    2929
     30        /// INSOO
     31        // TEMP
     32    if (max > 100) max = 100;
     33
    3034    //reconstruct negative value
    3135    //float4 vel = float4(tex3D(vel_tex, pos.xyz).xyz, 0) - float4(0.5, 0.5, 0.5, 0.0f);
     
    3640    //vel.z *= scale.z;
    3741    ret = pos;
     42
    3843    ret.x += vel.x * 0.0005;
    3944    ret.y += vel.y * 0.0005;
Note: See TracChangeset for help on using the changeset viewer.