Last change
on this file since 3177 was
379,
checked in by qiaow, 19 years ago
|
Hooked a simple transfer function editor GUI to the render engine.
|
File size:
919 bytes
|
Line | |
---|
1 | ************README*****************
|
---|
2 | By Wei Qiao <qiaow@purdue.edu>
|
---|
3 | ***********************************
|
---|
4 |
|
---|
5 | Hot Keys:
|
---|
6 | "W" print interpolation of Y
|
---|
7 | "A" Add points. Press "A" then click the screen to add point
|
---|
8 | "D" Delete points. Click the point to select it, the press "D" to delete
|
---|
9 | "P" Print coordinates of all control points. (FOR DEBUGGING)
|
---|
10 |
|
---|
11 |
|
---|
12 | **************
|
---|
13 | float* output
|
---|
14 | **************
|
---|
15 | Interpolation of control points are stored in an array of float named "output",
|
---|
16 | which is a member of TransferFunctionWindow.
|
---|
17 | Total of 2048 samples are stored, with values ranging from [0,1]. All samples are initialized to 0 ,when program starts.
|
---|
18 |
|
---|
19 | ***********
|
---|
20 | Important!
|
---|
21 | ***********
|
---|
22 | Always call WriteControlPoints() before you use the values in output array. To improve performance, the values are
|
---|
23 | not updated upon each change of control points. By calling WriteControlPoints(), interpolation is updated.
|
---|
24 |
|
---|
25 |
|
---|
Note: See
TracBrowser
for help on using the repository browser.