lal7777
Posts
if all.knowledge = orange then: seed = mankind.knowledge: grow(seed,time): endif
Posts: 88
|
Post by lal7777 on May 24, 2011 12:11:21 GMT -5
This is just something i was wondering on the side of what I'm already doing(making chess game/.obj loader). How could i make a motion blur simulation? Well i thought about it for a while and came up with a method. -Save the last couple of images that the screen shows, and play them back on top of the current image with lower levels of alpha. (the alpha would be time based. Lower levels of alpha for images captured a longer time ago.) Well the idea sounds simple enough. However what I wish to know is; How can i capture the pixels in the window and turn them into a sprite/texture?
|
|
|
Post by matthew on May 24, 2011 12:46:09 GMT -5
Well there are motion blur examples already on the forum, here & here. As for capturing pixels & turning them into a texture you'll need to make use of the render to texture feature in OpenGL. I actually had an example of this I coded in Basic4GL but posted it onto another forum which no-longer exists.
|
|
|
Post by Nicky Peter Hollyoake on May 24, 2011 12:50:15 GMT -5
DJLinux's toolbox here has functions to capture pixels & the routine's to create image files with them. - Nicky
|
|
|
Post by matthew on May 24, 2011 13:05:02 GMT -5
I've managed to find the original OpenGL example that my render to texture program was based on. Just visit this page & scroll down to Render to texture.
|
|
lal7777
Posts
if all.knowledge = orange then: seed = mankind.knowledge: grow(seed,time): endif
Posts: 88
|
Post by lal7777 on May 24, 2011 15:33:40 GMT -5
Wow! These pages look useful. Thanks a ton.
|
|