Re: Transparency fog?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Robert Dunlop [MS MVP] (rdunlop_at_mvps.org)
Date: 11/29/04


Date: Sun, 28 Nov 2004 21:36:51 -0800


"Joerg Wagner" <wagner@cs.tu-berlin.de> wrote in message
news:OVpv$y70EHA.3468@TK2MSFTNGP14.phx.gbl...
> Just use a vertex shader and alpha blending. Calculate the output alpha
> like a fogging parameter. Pay attention to certain materials already
> containing an alpha factor, this needs some special handling usually both
> in VS and PS.

Note that I would expect this will require sorting geometry from front to
rear prior to rendering, as all objects would now be translucent while the
desired effect should still occlude objects in the distance. Otherwise
undesired blending of distant objects could occur.

Another approach might be to perform two passes, with the first writing only
depth values, and the second pass writing only color (no need to re-write
z).

-- 
Robert Dunlop
The X-Zone
http://www.directxzone.org/
Microsoft DirectX MVP
-------------
The opinions expressed in this message are my own personal views and do not 
reflect the official views of the Microsoft Corporation.
The MVP program does not constitute employment or contractual obligation 
with Microsoft. 


Relevant Pages

  • Re: Alpha remembrance day
    ... Prior to Palmer, there was no Alpha "strategy". ... When Microsoft came out with NT, it ... Digital didn't need Microsoft's blessing to sell software support for ...
    (comp.os.vms)
  • RE: Tiny pickings for Itanium OEMs
    ... > microsoft beforehand, at which point the manufacturer was ... if it is Intel that writes all the code for Windows ... > the porting of applications and continues support of Windows on Alpha. ...
    (comp.os.vms)
  • Re: The Inquirer: HP re-thinking its IA-64 strategy?
    ... Windows was running on Alpha up through the beta cycles of Windows NT v5.0 ... process could be sustained on native IA64 systems. ... Microsoft saw any advantage what so ever in supporting 64-bit Windows on ...
    (comp.os.vms)
  • Why are shadebobs and 2d alpha blends so convincing?
    ... It's an alpha blending and color rotation trick ... textures floating around (with high alpha values for a transparency ... effect (shadebobs appear to combine together but it's not an explicit ...
    (comp.graphics.api.opengl)
  • Re: Alpha remembrance day
    ... there was no Alpha "strategy". ... It wasn't just the C compiler. ... All the development tools were pricey, CMS, the "make" equivalent whose name I forget, and everything else. ... Microsoft, of course, didn't care if you ran their C compiler on an old 6 MHz PC/AT or a 486/33; you paid your $300 and the compiler was yours to run on any single machine you chose. ...
    (comp.os.vms)