On Thu, 3 Apr 2003, Gekchye Png wrote:
> Hi,
> I am still in the initial stages of my project and perhaps my previous email
> was too vague.
>
> Right now, I have a three dimensional space (corresponding to latitude,
> longitude and altitude). I also have a three dimensional data set
> (corresponding to the hue, saturation and value of each point in the 3D
> space). I want to combine them together into a single 3D visualization.
>
> I have looked throught a lot of openDX examples but can't find one that
> matches my problem. I will appreciate if anyone can offer me some
> suggestions on how to do it. In particular, how can I use a set of data to
> control the HSV of the visualization (i.e. the colors shown on the screen
> are actually my data and not from AUTOCOLOR)?
>
I'm not sure, but hopefully this may be useful.
I have scripts showing terrain models using the colormap module to output
an RGB field & opacity field for input into the color module, which is
used to apply the colors to the dataset.
You may be able to replace the colormap module with an appropriate compute
module.
If you can pass your data through a compute module which uses your HSV
values to generate RGB, hard code opacity to whatever is appropriate, then
pass it on to a color module, you may get the output you require.
Summat like:
DATA
|
--------------------
| | | |
[XYZ] H S V
| | | |
| compute
| |
-------- [RGB]
| |
| --------
| |
color
I'm not sure how to convert HSV to RGB, but you may also be able to use
the data represented by HSV in some other way to produce the color, using
an approach like the above.
Cheers
Brent Wood