Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / image fade/transition using memblocks

Author
Message
zircher
22
Years of Service
User Offline
Joined: 27th Dec 2002
Location: Oklahoma
Posted: 30th Sep 2004 02:06 Edited at: 30th Sep 2004 03:17
> Thanks, ill look at this. But fade it to black... how do
> I fade it to another skybox texture, like from a noon sky
> to a sunset type thing? I know about RGB values, but I've
> never really used memblocks, adressing memory.

Luckily for you, I wanted some functional image transition code so I made up a demo. Notice the frame rate! A make image each loop is bad for speed. Ideally, you should do something like update one row each frame and only do make image from memblock every 256 frames.

The 'sky' textures are simple 256x256 bitmaps.



Parts of this code was borrowed from another code snippet, but I forgot the author's name. My bad, but thanks for posting it!
--
TAZ

[edit, it seems the code tag is case sensitive]

"Do you think it is wise to provoke him?" "It's what I do." -- Stargate SG-1

Login to post a reply

Server time is: 2025-08-09 01:36:14
Your offset time is: 2025-08-09 01:36:14