Allegro.cc - Online Community

Allegro.cc Forums » Programming Questions » Mapping a texture on a sphere.

This thread is locked; no one can reply to it. rss feed Print
 1   2 
Mapping a texture on a sphere.
Gabhonga
Member #1,247
February 2001
avatar

to blend two colour by a factor, you first fade both colours: one by factor, and the other one by the negative factor (i.e. if factor is 0..31 then the neg.factor is 31-f. or f^31(xor operation)).
then you finally add the two scaled colours together, and got your blended version.

--------------------------------------------------------
sigs suck

Kloks
Member #943
February 2001
avatar

Thank you Johan.
I don't know if I will use your lens effect but I'm interest in graphic modifications like that.
Good work!

| K-nion | Weed | Rebound | Web site |

Each One Teach One

 1   2 


Go to: