Render modes

From Valve Developer Community
Revision as of 23:01, 19 February 2008 by C4troDomta (talk | contribs) (licodomace)
Jump to navigation Jump to search

yuroz http magic vines warehouse inventory herramientas ft race truck for sale fifa 2005 link subic bay beach resort email greeting cards buy diazepam online pygmy date palm new zealand vacation 69 position clips bronze age pictures rajdoot motorcycles fibromyalgia treatment morocco shrine temple support.dell.com soybean oil press neck exercises metalica enter sandman mercury auto insurance webcam sex show milwaukee parking tickets g spot explanation space terms dictionary platform pump nasm information society monkey cages pamela andeson bebe precedently harley chicks flashing link electrophoretic techniques exclusivity contract sample boyd coddington online grocery stores shuffleboard champion beach home quilted bag msm cream afcu 8x dvd rom tatoo art no go area dj kay slay mixtape alfa romeo fan club california semi tractor trailer accident attorneys hoteles zaragoza verifone along comes lyric mary brown chris worlds aston martin orgies mixtape lyrics butch walker norton antivirus 2005 cd key 3m company akshay kumar latina fuck car show girls demetrios wedding dresses pokemon hentai sex misty private schools for boys nobodys angel new mexico real estate agent free boys in briefs brown chris number phone plymouth locomotives grandma moses display boxes wicker my space generator site myspace.com car tinting hairy pussy halloween pitchers smart nutrition itasca rv wi fishing canoes chandler arizona homes hong kong tailor sex machines brian westbrook mikes apartment samples courier post cum eater galleries laughlin, nevada sitemap ewa sonnet beauti control new home for sale marietta georgia olivegarden.com weighted vest for autistic child sherwood park alberta newspaper trip train atlanta airport 2wire usb remote ndis ethernet book lists rc micro helicopter carrying case banner design wauconda community bank phoenix technologies bios update lapband college sex marzipan candy discount dive gear aviation glasses colorado river detail.html foliculitis little johns pizza clavier orchestres snowblowers nokia phones whiteheads new drum and bass tunes weil castaic lake maslach burnout scale rom online discount coupon television commercials nicole nordeman flights tickets women of the civil war dishwashers virgins pussy string tanga apartment lenders rotary club gas scooter website mammals brother my brother acoustic isolation booths map vacations for the handicapped broward county bail bond australian cocktail recipes hot maxim among brave published review sensual adult ecards radworking.com burning spear afterdowningstreet.org filthy girls logans trading raleigh nc seattle accomodations poor credit home loans to brown university lennox and addington community mental health 2005 mustangs upi photo archive smokerswelcome.com foreskin shower amityville cosmos holidays 1 british trawlers war world airport international paris roissy secreterial jobs vod do it yourself garage kits hogties buy costumes online premiere theater north carolina college savings plan wow druid pvp video zoom text 501 hotel dog drawings audi tt wrought iron door hardware free napster market america donnell jones iris lyrics dress evening wear formal arapahoe community college sms julian downward life support brinkmann pro series gas grill black fat ass kauai house rentals forbiddenvideo pretty girls of spain adipex walla walla washington freexxx free xxx long movies lisa whittaker website barbara schett linksys cable dsl laville elementary zouk walking with the ghosts song These are all the rendering modes present in Source.

General functionality in Source

The Additive mode sprite on the left cuts through the lamp prop, while the World Space Glow mode sprite on the right is only rendered if nothing blocks it.

In Source (where most rendering modes have been crippled) there are only three reasons for changing the Render Mode keyvalue to anything else than its Normal setting:

  1. You want to render a sprite correctly (without its black box).
  2. You want to make an entity transparent.
  3. You don't want to render the entity at all.
  • If you want to render a sprite correctly, there are four modes that can do this: Glow, Additive, and their alternatives Additive Fractional Frame and World Space Glow. The two Additive modes are rendered so that the sprite will cut through any surrounding brushwork, while the two Glow modes are designed to be used for glows and other light source sprites. (See picture on the right.) Of the two Glow modes, Glow has a fixed size on screen, while World Space Glow has a fixed size in the world. This is perhaps best demonstrated visually.
  • If you want to render an entity as transparent, you need to change the mode from Normal to enable the FX Amount (0 - 255) parameter. You can use any of the other eight modes for this, except the Don't Render mode (unless you want to make it completely invisible).
  • If you don't want to render an entity at all, simply use the Don't Render mode (The entity will still be there, but remain invisible).

Normal

This is the normal rendering mode.

Todo: Default according to entity type, or according to the renderer?

Setting the FX Amount (0 - 255) keyvalue will have no effect on entities rendered with in this mode.

This mode is not recommended for sprites. (Will not render sprite alpha transparency.)

Color

Todo: This mode will render entities in degrees of both color and opacity, but so will most of the other modes, so this mode seems to be obsolete.

This mode is not recommended for sprites. (Will not render sprite alpha transparency.)

Texture

Works exactly like the Color rendering mode.

Todo: Does it really?

This mode is not recommended for sprites. (Will not render sprite alpha transparency.)

Glow

This render mode is intended for glow sprites. (It will not make entities glow in the dark - sprites will always glow in the dark.) It will of course render sprite alpha transparency correctly.

The size of a sprite rendered with Glow is consistent with the screen size (unlike World Space Glow), making it seem larger at a distance, in comparison to the world. (See picture.)

Todo: Is this and World Space Glow the only ones to use the GlowProxySize keyvalue of sprites?

This rendering mode could be used to discreetly make the player notice something, like for instance a specific glowing button at a console.

Solid (obsolete)

This rendering mode is also referred to as Alphatest.

Alphatesting is the process of comparing each pixel of the texture(s), rendering pixels of a certain shade of blue (seen in debug/debugluxels) as transparent.

This is very useful for rendering see-through grates, bars and fences, that would otherwise require a complex and detailed brushwork to accomplish, using just a single texture.

Todo: Picture: A texture previously used for Solid, with its blue parts visible, compared to the same grate in-game.

While this rendering mode was required to alphatest textures in Goldsource, alphatesting is now (in Source) handled automatically by materials, making this rendering mode obsolete.

This mode is not recommended for sprites. (Will not render sprite alpha transparency.)

Additive

Todo: This rendering mode doesn't seem to work any different than the Color mode when it comes to adding its color to its background. Is this mode for sprites only? ...like an older Goldsource version of the Glow rendering mode?

The precise formula is: <math>...</math>(?)

This mode will render sprite alpha transparency correctly, making it one of the few rendering modes for sprites. However, as it still tests the Z buffer, rendering sprites as thin layers that will penetrate any surrounding brushwork, it is not ideal for this.

Note.pngNote:Rendering mode 6 does not exist. Additive Fractional Frame is rendering mode 7.

Additive fractional frame

Blends between animation frames.

Todo: What does that means? Animated sprites - what? Just like the Additive mode otherwise? Write a better description.
Todo: This rendering mode doesn't seem to work any different than the Color mode when it comes to adding its color to its background. Is this mode for sprites only? ...like an older Goldsource version of the Glow rendering mode?

This mode renders sprite alpha transparency correctly, making it one of the few rendering modes for sprites.

Todo: How does it handle surrounding brushwork? Does it handle it as poorly as the Additive mode?

Alpha add

This rendering mode is not in the FGD, but can be achieved through turning SmartEdit off and then giving the rendermode field the value of 8.

Todo: Write description. It doesn't seem to differ from the Color mode though.

This mode is not recommended for sprites. (Will not render sprite alpha transparency.)

World space glow

This mode renders sprite alpha transparency correctly, making it one of the few ideal rendering modes for sprites. It has no Z buffer checks, so it's much like the glow mode, except that it is rendered like it has a place in the world, it's size being relative to the world rather than the screen. (See picture.)

This effect is most useful for having lamp props (like bulbs) glow properly.

Don't render

This rendering mode is also referred to as None.

This rendering mode simply tells the renderer not to render this entity. (The player can still interact with the entity, but it will not be drawn.)

Note.pngNote:The entity is still networked in this mode. To not network this entity to the client, see EF_NODRAW.