A2: Vector field
representation (Due Sept 21)
The
purpose of this assignment is to learn something about how to use color and
shape in representing a vector field. You
will accomplish this by developing a particle system.
- As much detail as possible
The vector field is defined by the given differential equations
The
input is a position in the flow field. The output is the flow direction and
magnitude.
void getVec(float X, float Y, float &dx, float &dy);
This
is all about mapping velocity magnitude and direction to a variety of
perceptual variables.
Your
input variables are (dx,dy)
= f(x,y) , that is, the specification of a vector
field
Starting
positions should be random
Display
variables at your disposal are 1)
The number of particles 2)
The amount each particle moves on each iteration 3)
The color of the particle (r,g,b)
as a function of age 4)
The size of the particle as a function of age 5)
The background color 6)
Placement of streamlines Note: you can continuously seed the space or do it
in one shot; e.g. with 1000 particles.
Deliverables:
Provide a written description of the way you have used the output variables to display the three required aspects of the data (approx 300-400 wds).
Comment on effects. E.g. how does gray scale change affect the presentation of direction in relation to the background value. Difficulties and possible solutions may also be mentioned.
Provide a code listing. Your code need not be sophisticated but it should be clear.
Your best image (you can use <alt, PrintScreen>.
Do not get too involved. This should not be a major project.