home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / sgi / 13544 < prev    next >
Encoding:
Text File  |  1992-09-11  |  2.3 KB  |  54 lines

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