PDA

View Full Version : any thing for this in openGL



03-03-2004, 01:44 PM
how can i create a transperent glow around a character in theopengl scene. is there any special feature supporting that ? like glFog() or some thing else? i want some thing like the glow around heros in warcraft3 GAME
or r there any libs supporting that?
-indra

Obli
03-04-2004, 02:07 AM
No such function; no such library.
A fast trick is to use a vertex program to displace each vertex along its normal drawing the halo with zwrites disabled and then drawing the model in its standard way. Sometimes you may need to complicate this a bit.

Relic
03-04-2004, 02:41 AM
Another is to draw the emissive parts of an object into a small texture and blend that linearly filtered over your final scene, the blending and filtering of a small texture will make it blurry and glow-like.
Look at the glow effect here: http://developer.nvidia.com/object/cg_effects_explained.html