Screen Effects

Started by Daxisheart, January 31, 2009, 06:34:27 pm

Previous topic - Next topic

Fantasist

QuoteNot that I need it. I'm weeks away from starting on mapping and eventing.

Good, cause I havent started on this one >.< Don't worry, I'll do this soon. By this Saturday in the worst case.
Do you like ambient/electronic music? Then you should promote a talented artist! Help out here. (I'm serious. Just listen to his work at least!)


The best of freeware reviews: Gizmo's Freeware Reviews




Daxisheart

Okay, can anyone here can finish this request? It's been a while since I've visited, but that's because I've been working on a whole different game. Chapter 1 is 95% done(everything...) atm, but for one of the cutscene this effect would be perfect. Can anybody get this request to me before christmas?
"Oh hey look godless stuff": ShowHide
What is really, really interesting is that while Abrahamic Christians give so much importance to their own free will, by their very definition of their God they deprive Him of free will.
The concept that He is not human and thus not derive the same morals as us really does not work. If his idea of morality, good or evil, is beyond us, is beyond our comprehension, why should we care? If he judges that not saving a woman from being raped a murdered a moral decision, then we should still trust him?
god i am such an atheist asshole.

I am on such a coolkid atheist rampage this week.

Jackolas

sorry m8... its a little bid to advanced for me :S

Daxisheart

:)
It's a little too advanced for me too, that's why I put it up for script requests. I am learning how to script, though, but I can't do anything like this anyways.
"Oh hey look godless stuff": ShowHide
What is really, really interesting is that while Abrahamic Christians give so much importance to their own free will, by their very definition of their God they deprive Him of free will.
The concept that He is not human and thus not derive the same morals as us really does not work. If his idea of morality, good or evil, is beyond us, is beyond our comprehension, why should we care? If he judges that not saving a woman from being raped a murdered a moral decision, then we should still trust him?
god i am such an atheist asshole.

I am on such a coolkid atheist rampage this week.

Fantasist

I'm sorry,  won't be doing this :( but I'll guide anyone who would like to try. basically, you need to take a screenshot of the screen you want to invert. For that, use the "screenshot.dll" and the code (module Screen) from my transition demo (link in my sig). Once you've taken the screenshot, load the file (b = Bitmap.new(screenshot.png) ). Now, do this to the bitmap:


for i in 0...b.width
  for j in 0...b.height
    # Get original color
     orig_color = b.get_pixel(i, j)
    # Extract RGB components
     orig_red = orig_col.red
     orig_green = orig_col.green
     orig_blue = orig_col.blue
    # Invert RGB components
     inv_red = 255 - orig_red
     inv_green = 255 - orig_green
     inv_blue = 255 - orig_blue
    # Make inverted color
     inv_color = Color.new(inv_red, inv_green, inv_blue)
    # Set the inverted color
     b.set_pixel(i, j, inv_color)
   end
end


That's the basic concept. It's that big so you it's understandable. Now, once the loop is complete, the bitmap "b" will be inverted.
Do you like ambient/electronic music? Then you should promote a talented artist! Help out here. (I'm serious. Just listen to his work at least!)


The best of freeware reviews: Gizmo's Freeware Reviews




Daxisheart

ha ha, I actually had this bumping around in my head when I was thinking of methods to do it, except I didn't have the dll part.

Thanks for doing this, at least. In a couple months, after I've gotten some mastery of rgss, I'll be able to inplement it in chapter two. For now, I'm just using an actual screenshot and inverting it, which is time consuming and space consuming, but oh well.

Thanks for trying.
"Oh hey look godless stuff": ShowHide
What is really, really interesting is that while Abrahamic Christians give so much importance to their own free will, by their very definition of their God they deprive Him of free will.
The concept that He is not human and thus not derive the same morals as us really does not work. If his idea of morality, good or evil, is beyond us, is beyond our comprehension, why should we care? If he judges that not saving a woman from being raped a murdered a moral decision, then we should still trust him?
god i am such an atheist asshole.

I am on such a coolkid atheist rampage this week.