iphone - Metallic sparkle effect in OpenGL ES? -
i'm working on android , iphone app. i'm rendering lots of smallish (about 32 pixels) billboards screen particle system , want give glitter-like sparkle each billboard e.g. particles falling, random ones briefly light , sparkle catch light. there simple way achieve effect? limitation, cannot use pixel/vertex shaders.
i thinking along lines of giving each billboard metal-like lighting effect (although i'm not sure how part) coupled giving each billboard random , rotating normal flat shading each billboard randomly light up. i'm having trouble making nice.
disclaimer: don't know opengl, , did't try write below.
you can have another, 'brightly lit', texture , substitute when normal @ 'shine' position.
take piece of metal , rotate it. once normal close 'full shine' position, metal shines bit brighter, , muted reflex travels through it, bright flash in middle, dull again.
if can, apply second bright texture of narrow 'reflex' band , move through surface of billboards in near-shine position, shifting them accordingly normal angle. when normal @ shine position (± epsilon), apply 'full shine' texture.
also, unless plates fly in vacuum, there halo due atmosphere. add rectangle 50% bigger plate right behind it, , apply semi-transparent halo texture becomes transparent closer edges. need @ fill shine moment.
Comments
Post a Comment