Jump to content


Photo

Water Reflection (ymd:100725)


182 replies to this topic

#21 Ghost_ARCHER

Ghost_ARCHER
  • Members
  • 13 posts
  • Reputation:0

Posted 31 January 2007 - 09:40 PM

Dude, those are way too big. Just post the thumbnails...



sorry for that, I forget to copy the tb link. and the thumbs look same to me.
Next time I will use smaller images.


Yeah, I understand he's not using PDN nor its plugins (only 3 sliders!).


What is that?



Another control parameter is added to make the interface between water and sky more distinctive.
Posted Image
Posted Image

strong effect is x-direction distortion, its power factor
y-direction distortion is not significant.

This is a game of mathematics !! :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol:
  • 0

#22 MadJik

MadJik
  • Members
  • 2,428 posts
  • LocationLille;France
  • Reputation:21

Posted 01 February 2007 - 09:04 AM

I made the first .net paint program yesterday, seems easier than using the openGL and original C graphics. But I still have problems to totally understand madjik's code. Algorithm part is ok, the beginning loops is hard to understand without any context.


To be honest I'm not understanding all the code too. The fact is the code isn't from me at the begining (plugin template, paint.net source, codelabs codes, etc...)
Trying and testing (and mixing) the code(s) is a (my) way to learn about c#.

a PM discussion I had with a forumer
I'm not C# programer! (yet).

How do I do plugins then?

I know other programing languages and procedural languages (RPG, VB6, VBA,..). I was firstly teached to work with S/36, S/38 then AS/400 (IBM mini systems). Since a while I'm trying to learn about PC world(s)!

Last year I went to MS tech-days for Visual studio and I was told about VS 2005 express (free version of VS 2005). I first get familiar with Visual basic 2005 (by myself). Then I tested Visual Web...


AND.... I was digging in the MS forums for VS when I found a link to PDN !!!!!!!! Free MS-Paint Alternative (or something similar) it was said.

Download and test and press F1 and tutorial and PDN FORUM!!!
On this forum I found a lot of question/answers/discussions/argues/etc...
But I was attracted by the codes I've found on some topics.... Then I tried them with the codelab. It's easy to read for me but I'm still not a fluant writer... So I need a model to be able to code by myself.

The rest is more about logical problems or mathematical functions...

I'm seriously thinking about purchase a book on C# now I could create something...
end of PM

In the codelab we have only one dst/src.
Example (checker.cs from Codelab):
void Render(Surface dst, Surface src, Rectangle rect)
{
    for(int y = rect.Top; y < rect.Bottom; y++)
    {
        for (int x = rect.Left; x < rect.Right; x++)
        {
            byte c = (byte)(x ^ y);
            dst[x, y] = ColorBgra.FromBgr(c,c,c);
        }
    }
}

For a plugin we have to use a loop like this:
public override void Render(EffectConfigToken parameters, RenderArgs dstArgs, RenderArgs srcArgs, Rectangle[] rois, int startIndex, int length) {
  Surface dst = dstArgs.Surface;
  Surface src = srcArgs.Surface;
  for (int i = startIndex; i < startIndex + length; i++) {
     Rectangle rect = rois[i];
   ...
It's like that! it's not my code! And I agree that it's make a bit more complicate to adapt a codelab to be a plugin...

About the First/Second loop: I read somewhere that we should(must) write in the destination image line per line. This is why I thought about a temporary table to "plot" the curves without 'line per line' consideration and a second loop to write correctly in the destination.
This is the main change I've applied in the polygone plugins and it has a big impact in the speed of the rendering...

Regards
  • 0

#23 The_Lionhearted

The_Lionhearted
  • Members
  • 2,613 posts
  • LocationSpringfield, MO
  • Reputation:3

Posted 11 February 2007 - 10:51 PM

Yeah, I know this picture has been done before...but this plugin is absolutely amazing!

Posted Image
  • 0

#24 josh181830

josh181830
  • Members
  • 149 posts
  • Reputation:0

Posted 24 February 2007 - 11:33 PM

i need help on this... everytime i use it, the bottom becomes clear...
  • 0

#25 MadJik

MadJik
  • Members
  • 2,428 posts
  • LocationLille;France
  • Reputation:21

Posted 25 February 2007 - 09:02 AM

Flatten layers / Duplicate layer / Water effect on the top one.

Or add a layer below as background (underwater?) you want.
  • 0

#26 M_Lyons4

M_Lyons4
  • Members
  • 53 posts
  • Reputation:0

Posted 01 March 2007 - 10:24 PM

O.K., I've tried using this plugin, but nothing happens. What are the instructions and process for using it? It looks like a really cool plugin, I just for whatever reason can't get it to work.

Thanks,
  • 0

#27 The_Lionhearted

The_Lionhearted
  • Members
  • 2,613 posts
  • LocationSpringfield, MO
  • Reputation:3

Posted 01 March 2007 - 10:26 PM

Take your picture and on the same layer add the effect... How does nothing happen?
  • 0

#28 josh181830

josh181830
  • Members
  • 149 posts
  • Reputation:0

Posted 01 March 2007 - 10:35 PM

i was being stupid...
  • 0

#29 The_Lionhearted

The_Lionhearted
  • Members
  • 2,613 posts
  • LocationSpringfield, MO
  • Reputation:3

Posted 01 March 2007 - 11:06 PM

i was being stupid...

We all do dumb things...paying too much for overpriced imaging software doesn't have to be one of them. :)
  • 0

#30 josh181830

josh181830
  • Members
  • 149 posts
  • Reputation:0

Posted 02 March 2007 - 12:10 AM

well trying to hard makes people stupid... its like those games where theres the thingy where you have to hit exactly in the area or else you go over and you sux... tahts me :?
  • 0

#31 The_Lionhearted

The_Lionhearted
  • Members
  • 2,613 posts
  • LocationSpringfield, MO
  • Reputation:3

Posted 02 March 2007 - 12:14 AM

No worries...keep plugging away and eventually it'll click!
  • 0

#32 Muu96

Muu96
  • Newbies
  • 1 posts
  • Reputation:0

Posted 14 March 2007 - 03:24 PM

Uh... question! I'm new to this plug-in thing, and although I have been able to add & use other PDN plug-ins, whenever I open PDN I can't find the button for this effect. I'm pretty sure I did everything right, I extracted the files and moved them to the Effects folder... Any help?
  • 0

#33 Helio

Helio
  • Members
  • 1,954 posts
  • LocationMichigan, USA
  • Reputation:2

Posted 14 March 2007 - 03:44 PM

Take the dll out of the folder and place it in the effects folder.
  • 0

v An excellent open–source strategy game—highly recommended.
Posted Image

"I wish I had never been born," she said. "What are we born for?"
"For infinite happiness," said the Spirit. "You can step out into it at any moment..."


#34 Bob

Bob
  • Members
  • 3,033 posts
  • LocationLyon, France
  • Reputation:3

Posted 14 March 2007 - 04:14 PM

http://boltbait.goog...ges.com/install
  • 0

#35 Crazy Ninja

Crazy Ninja
  • Members
  • 92 posts
  • Reputation:0

Posted 01 April 2007 - 11:47 AM

A small little thing i did with the effect:

Posted Image
  • 0

#36 BB 920 Paint3r

BB 920 Paint3r
  • Members
  • 40 posts
  • LocationBrooklyn, NY
  • Reputation:0

Posted 05 April 2007 - 04:13 AM

How do you install this plugin???
  • 0
Posted Image

#37 usedHONDA

usedHONDA
  • Members
  • 5,738 posts
  • LocationOrlando, FL
  • Reputation:4

Posted 05 April 2007 - 04:16 AM

Save it into the effects folder in the Paint.NET directory (i.e. C:>Program Files>Paint.NET>Effects). Then restart Paint.NET.
  • 0

"The greatest thing about the Internet is that you can write anything you want and give it a false source." ~Ezra Pound

Posted Image

twtr | dA | tmblr | yt | fb


#38 BB 920 Paint3r

BB 920 Paint3r
  • Members
  • 40 posts
  • LocationBrooklyn, NY
  • Reputation:0

Posted 05 April 2007 - 04:30 AM

huh?
dont get it...sorry for being newb..not really...but yea, dont get it
  • 0
Posted Image

#39 usedHONDA

usedHONDA
  • Members
  • 5,738 posts
  • LocationOrlando, FL
  • Reputation:4

Posted 05 April 2007 - 04:56 AM

*takes a deep breath*
Oookaaayyy....

*takes another breath*

http://boltbait.goog...ges.com/install
  • 0

"The greatest thing about the Internet is that you can write anything you want and give it a false source." ~Ezra Pound

Posted Image

twtr | dA | tmblr | yt | fb


#40 BB 920 Paint3r

BB 920 Paint3r
  • Members
  • 40 posts
  • LocationBrooklyn, NY
  • Reputation:0

Posted 05 April 2007 - 05:03 AM

LOL
k, thanks. I understand it better. Im not complete newb though...>_>

My sigs pwn....
  • 0
Posted Image