|
HI
all~
Thanks
Sergey!
Braden
McDaniel made this Proto some time ago
I
think as a test case for OpenVRML- very useful
we
used it for a sci vis project published last year @ Web3D
2007
IRVE-Serve: a visualization
framework for spatially-registered time series data
br,
_nicholas
Nicholas F. Polys, Ph.D.
Director of Visual Computing
Virginia Tech Information Technology
Affiliate Research Professor
Virginia Tech Department of Computer Science
Hello William,
The
standard ColorInterpolator node in VRML can interpolate an SFColor value, so
it can be used to change the color of the whole shape using Material. If your
IndexedFaceSet must have a different color at each face, then you have to use
a Color node which contains an MFColor field. Unfortunately, standard VRML
doesn't provide an interpolator for MFColor values. A possible way to solve
this problem is to use a CoordinateInterpolator that outputs MFVec3f values,
and convert this MFVec3f to MFColor using a Script. I have attached an
example, you can use this script in your project.
Sergey
Bederov
I have an indexed face set of several thousand triangles, each with
their own color. I'd like to render these triangles for 50 frames,
never changing anything about them (size, location, etc.) EXCEPT for their
color. I've found some examples on how to change transformation
matrices to make objects move from one frame to the next, but I have not
found any examples of how to change just the color values for the triangles
in the face set. Note- I can currently make 50 different wrl output
files with the information I would like to see, however, then I have to use
other software to make a movie of these 50 frames. I'd like to have
just one file that plays like a movie, updating colors each frame. If
anyone can provide me an example or point me to code where this is done, I'd
appreciate it.
My email address is below. Thanks in advance for your help.
William Anderst, MS
Research Scientist
University of Pittsburgh
Department of Orthopaedic Surgery
Biodynamics Laboratory
Ph: 412-586-3946
Fax: 412-586-3979
|