Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] View of /branches/vis12/test/vr.diderot
ViewVC logotype

View of /branches/vis12/test/vr.diderot

Parent Directory Parent Directory | Revision Log Revision Log


Revision 38 - (download) (annotate)
Thu Feb 11 03:51:54 2010 UTC (9 years, 7 months ago) by jhr
Original Path: trunk/test/vr.diderot
File size: 346 byte(s)
  Added some more code
// vr.diderot
//
// volume rendering example in Diderot
//

input string dataFile;		// name of dataset
input real stepSz;		// size of steps

image<3> img = load (dataFile);

actor RayCast (int row, int col)
{
    vec<3>	dir = (real(row), real(col));
    vec<3>	pos = (0.0, 0.0);
    vec<3>	t = 0.0;

    update
    {
	pos = pos + t*dir;
    }

}

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0