home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.sgi
- Path: sparky!uunet!usc!sdd.hp.com!elroy.jpl.nasa.gov!ames!neuron.arc.nasa.gov!kevin
- From: kevin@neuron.arc.nasa.gov (Kevin Montgomery)
- Subject: IL view w/ alpha blending??
- Message-ID: <1992Sep11.225039.12897@news.arc.nasa.gov>
- Keywords: imagevision fun profit
- Sender: usenet@news.arc.nasa.gov
- Organization: NASA-Ames Biocomputation Center
- Date: Fri, 11 Sep 1992 22:50:39 GMT
- Lines: 42
-
- hi folks- I'm working on image registration and it would be gee-golly-so-swell
- if I could vary the transparency of an ilView so I could see the image behind
- it while translating/rotating the current image.
-
- it appears there's no explicit support for this in the standard ilDisplay
- (correct me if I'm wrong, please!), so it appears I'm left with a number of
- alternatives:
-
- 1) use ilBlendImg and bag the use of ilViews for translating/rotating.
- So, I'd be translating/rotating ilImages and displaying them
- all into the same ilView using ilBlendImg. the problem with
- this is that the translation/rotation burden is then moved
- onto me for putting each image into its correct orientation
- in the View, as opposed to letting ilDisplay handle it. feels
- like a definite punt backwards.
-
- 2) use ilABGRImg-es and vary the alpha channel. for the image i want
- to make transparent, vary the alpha channel and disp.update(),
- and use blendfunction(). for this I have to move to RGBmode
- and use ABGR images (this probably quadruples the amount of
- info I'm moving around, which is already a problem at 1
- channel). I've tried this (colormapped image->ABGR image,
- copytile in an ilConst on the alpha channel), but it doesn't
- appear to work- I get nothing displayed, which makes me think
- ilDisplay isn't set up to be alpha blended very well. this
- also feels like a hack, but better than the first- any ideas
- what could be wrong? can an ABGR image displayed in an ilView
- window be transparent through to another ilView?
-
- 3) find out if there's a way to get ilViews to allow alpha channels-
- to do this, I think I'd need the ilDisplay/ilView source
- to determine what the problem is now, then make a subclass
- that adds setAlphaOnTheWayToTheDisplay().
-
- 4) find out a better way to do this. c'mon, this can't be this hard-
- i really feel i've got to be missing something...
-
-
- any info would be greatly appreciated!
-
- thanks,
- kevin
-