Advertisement

Picture fading

Started by November 24, 2003 01:30 PM
3 comments, last by Sethric 21 years, 3 months ago
How would I make a picture fade in for like 5 seconds then fade out and continue on?
~Sethric
The thing I did when I wanted to create fade effects was change the color of the scene using glColor. Since my scene was plain white color, I would just dim the color. Instead of having
glColor(1.0f, 1.0f, 1.0f);
You would lower each value.
glColor(0.9f, 0.9f, 0.9f);
and the lower you go, the more faded it looks. Until you get to zero, which is total darkness.

- DarkNebula
Advertisement
You can put a timer in there to control how long it takes to fade in and out too. Fading in is just pushing the numbers back up as you might of guessed :D

- DarkNebula
how would i just paste a picture on the screen? i know how to put on objects and vertex''s but not how to just paste it on the screen.
~Sethric
ah, nm. i figured it out
~Sethric

This topic is closed to new replies.

Advertisement