Jump to content


Photo

Gmeffect


  • Please log in to reply
13 replies to this topic

#1 sdx

sdx

    GMC Member

  • New Member
  • 13 posts
  • Version:GM8.1

Posted 18 May 2010 - 07:54 PM

With this DLL you are able to apply over 30 different effects to backgrounds. This DLL uses the GMAPI, which allows a quite simple syntax.
Eg: background_effect_sepia( background id, depth);
And the specified background will have an sepia effect.

The screenshot of the example show all effects and transformations which you are able to use with this DLL
Posted Image

This is the first version (0.1) but it should be stable.
There are still a few problems with the performance. It is still to slow for real-time effects, but i think i should be able to fix this soon.
Another problem is, that the alphachannel of GM8backgrounds will be lost. Maybe I'll find a solution to that problem, too. :)

Download of version 0.1 (includes gm8, gm7, gm6 examples and the DLL)

GMeffect_0.1.zip

Credits aren't required, but it would still be nice!

SDX

Edited by sdx, 18 May 2010 - 08:07 PM.

  • 1
Posted Image Posted Image

#2 FmMan3

FmMan3

    GMC Member

  • GMC Member
  • 189 posts
  • Version:GM:Studio

Posted 19 May 2010 - 07:30 AM

Looks very nice, I'll give it a try in a little while.
  • 0
Signatures are nothing but a fad.

#3 Alvare

Alvare

    Not an administrator

  • GMC Member
  • 1812 posts
  • Version:None

Posted 19 May 2010 - 01:48 PM

I like this. :D
I will try it right now.
  • 0

#4 TheMagicNumber

TheMagicNumber

    GMC Member

  • GMC Member
  • 5247 posts
  • Version:Unknown

Posted 19 May 2010 - 07:58 PM

Could you consider releasing the source, I'd like to see how far this can go. :D
  • 0

#5 sdx

sdx

    GMC Member

  • New Member
  • 13 posts
  • Version:GM8.1

Posted 19 May 2010 - 08:38 PM

I'm currently quite stressed with my exams.
I stared on a newer version, where i directly edit the images on the texture buffer of the gamemaker. I'll spent time on finishing that next weekend. I think that surfaces and sprites will be supported, too!
I'll include the source for you, TheMagickNumber :D

EDIT: currently I have no time for a new version. I'll make a rewrite as soon i'll find time to do that. (I can't find the source anymore >.< )

SDX

Edited by sdx, 05 June 2010 - 02:56 PM.

  • 0
Posted Image Posted Image

#6 GamerXP

GamerXP

    GMC Member?

  • GMC Member
  • 443 posts
  • Version:GM:Studio

Posted 05 July 2010 - 07:58 AM

That's exactly what I wanted to. Actually, I need to make surface grayscale in realtime
Well, I tested making background grayscale in realtime... 3-4 FPS with my PC, on what Crysis on max worked with 60-70 FPS

I hope you can optimize it. Looking forward to it
  • 0

#7 TheMagicNumber

TheMagicNumber

    GMC Member

  • GMC Member
  • 5247 posts
  • Version:Unknown

Posted 05 July 2010 - 10:28 AM

It's software rendered, what'd you expect. :P
  • 0

#8 Shadowrend

Shadowrend

    Master of Shadows

  • GMC Member
  • 3071 posts
  • Version:GM8

Posted 24 September 2010 - 07:28 PM

Can you modify this so it can render surfaces and sprites also??

PS: I need it for surfaces! :)

Thanks.
  • 0

#9 Sindarin

Sindarin

    Indie Game Developer

  • New Member
  • 1644 posts
  • Version:GM:HTML5

Posted 25 September 2010 - 03:06 PM

I noticed that it saves a temporary file tmp_img.jpg in the game directory. Could you add an argument in the init function to specify the directory to save the temporary image?
Also PNG transparency is not kept when an effect is applied.
  • 0
GM 8.1 / GM:HTML5 User

#10 sdx

sdx

    GMC Member

  • New Member
  • 13 posts
  • Version:GM8.1

Posted 25 September 2010 - 07:31 PM

I noticed that it saves a temporary file tmp_img.jpg in the game directory. Could you add an argument in the init function to specify the directory to save the temporary image?
Also PNG transparency is not kept when an effect is applied.


Well, first of all it should be a .bmp.
And yea, it should be possible to add a function for surfaces and sprites. I didn't add them, because the main reason for using sprites and surfaces was (<gm8) that they had a (sort of) alpha layer. And you would lose it by using the dll.

But..
there just happend so much, since i made this dll. I think it should be possible to make one without temp files. But I think that wouldn't be possible without using dx8, because backgrounds, sprites and surfaces are actually dx things. I guess it isn't impossible, but let me take a look at it first.
And this alpha layer thing: I guess/hope that dx backgrounds/sprites/surfaces/whatever are 32bit. That would require a few changes.
As you can see, I don't know anything about DX.

I guess it's easier to make a total rewrite. But that would require time, that still don't have. So I won't promise anything.

And even if I should make a rewrite, I don't think it would be fast enough for real-time effects. If it should be fast, it shouldn't be realized with software.. render.. ouhh, don't want to even think about it :P
  • 0
Posted Image Posted Image

#11 Shadowrend

Shadowrend

    Master of Shadows

  • GMC Member
  • 3071 posts
  • Version:GM8

Posted 25 September 2010 - 08:25 PM

I don't need transparency, I just don't want to use backgrounds :)
  • 0

#12 Denis Lemos

Denis Lemos

    GMC Member

  • New Member
  • 2 posts

Posted 28 October 2010 - 06:22 PM

Sorry, but when I hit Play on GMK Example for Game Maker 8, my Avast detected a Trojan!

I need that much of this dll, but now I'm afraid to use in my program and pass the virus to the computer people!

Already this possibly happen to someone who has used this dll??

To prove, I put a picture of my quarantine Avast!

Posted Image

The dll does what it says, and is very good, but now lost confidence in using it until you have an explanation!

Sorry if the accusation is meaningless, I may be wrong, then I hope their right of reply!

Sorry my bad English, is the fault of Google translator!
  • 0

#13 TheMagicNumber

TheMagicNumber

    GMC Member

  • GMC Member
  • 5247 posts
  • Version:Unknown

Posted 29 October 2010 - 10:21 AM

If the DLL was a Trojan, Avast would have quarantined the DLL, not the EXE.
  • 0

#14 The Rock Abdo

The Rock Abdo

    GMC Member

  • GMC Member
  • 82 posts
  • Version:GM:Studio

Posted 24 April 2011 - 09:10 AM

WOW ::lmao::
  • 0

banner10.png