Sign in to follow this  
Followers 0
TechnoRobbo

TR's Star Filter (Glamour Shot Filter)

17 posts in this topic

TechnoRobbo's Star Filter


(Hollywood Glamour Shots)


 


Trust me,you don't need instructions.


Star Filters traditionally are used for:


Night Life Shots


Car Shots at Night


Starry nights


Interplanetary Stars (draw dots and try it)


Backlit Beach Scenes


Holiday Lights


Anything with points of lights or Specular reflections.


http://en.wikipedia.org/wiki/Photographic_filter#Cross_screen


 


Menu: Effects->Photo


 


StarMenu.png?raw=1


 


StarFilter.png?raw=1


 


 


Starfield.png?raw=1


 


 


 


chicago-night.png?raw=1


 


The Code


 


Hidden Content:



// Submenu: Photo
// Name: TR's Star Filter
// Title: TR's Star Filter- v1.0
// Author: TechnoRobbo
// URL: http://www.technorobbo


#region UICode
int Amount1 = 200; // [192,255] Threshold
double Amount2 = 30; // [1,150] Diffusion
double Amount3 = 0; // [0,0.25] Rotation
byte Amount4 = 0; // Number of Star Points|4 Points|8 Points|16 Points
#endregion


void Render(Surface dst, Surface src, Rectangle rect)
{
    Rectangle selection = EnvironmentParameters.GetSelection(src.Bounds).GetBoundsInt();
    int CenterX = ((selection.Right - selection.Left) / 2)+selection.Left;
    int CenterY = ((selection.Bottom - selection.Top) / 2)+selection.Top;
    
    int stars = (int)Math.Pow( 2, Amount4 + 2);
    int half = stars/2;
    double[] cosx = new double[stars]; 
    double[] siny = new double[stars]; 
    for (int i=0;i<stars;i++){
        cosx[i] = Math.Cos((double)i * Math.PI / half + Math.PI * Amount3) ;
        siny[i] = Math.Sin((double)i * Math.PI / half + Math.PI * Amount3);
    }
    
    ColorBgra CP;
    ColorBgra CO;
    double mix;
    for (int y = rect.Top; y < rect.Bottom; y++)
    {
        for (int x = rect.Left; x < rect.Right; x++)
        {
            CP = src[x,y];
            bool bo=false;
            for (int i=0 ; i <Amount2 ; i++){
                for (int j=0 ; j < stars ; j++){
                    CO = src.GetBilinearSampleClamped((float)(x + cosx[j] * i), (float)(y + siny[j] * i));
                    double avg=CO.R + CO.G + CO.B;
                    avg /= 3;
                    if (avg >= Amount1){ 
                        mix = Math.Sqrt( i / Amount2);
                        CP.R = Int32Util.ClampToByte((int)(CP.R * mix + CO.R * (1.0f - mix)));
                        CP.G = Int32Util.ClampToByte((int)(CP.G * mix + CO.G * (1.0f - mix)));
                        CP.B = Int32Util.ClampToByte((int)(CP.B * mix + CO.B * (1.0f - mix)));
                               
                        bo=true;
                        break;
                    }
                }// j
                if (bo){break;}
            }// i
            dst[x,y] = CP;
        }
    }
}
 


 


 


TRsStarFilter.zip

Edited by TechnoRobbo
0

Share this post


Link to post
Share on other sites

Here' a comparison of Madjiks Star Glow and TR's Star Filter. 

 

I consider mine a plug-n-play Cross-screen filter simulation.

 

Madjik's offers some adjustments for really creative manipulation 

 

StarGlowvsStarFilter.png?raw=1

Edited by TechnoRobbo
0

Share this post


Link to post
Share on other sites

Unable to download due to Norton 360 scanning and then removing the file saying it was not safe.. Not sure why as I had no problems downloading other plug-ins this evening..

0

Share this post


Link to post
Share on other sites

Did you download this file here or at another site? This site has the original - other sites have unauthorized copies with viruses embedded.

0

Share this post


Link to post
Share on other sites

Did you download this file here or at another site? This site has the original - other sites have unauthorized copies with viruses embedded.

 From here..

0

Share this post


Link to post
Share on other sites

Then it's virus free

 

For your own peace of mind I provided the source code in the post so you can grab CodeLad and compile it yourself.

Edited by TechnoRobbo
0

Share this post


Link to post
Share on other sites

Then it's virus free

 

For your own peace of mind I provided the source code in the post so you can grab CodeLad and compile it yourself.

Hehe, I haven't a clue as to what you are talking about.. I use PDN just about everyday but that doesn't mean I know anything about codes.. I just like to add new effects to use in my designs when I create new wallpapers for Alphacoders and I happen to love the 'star-effect' you've created.. I don't know why my Norton won't let this particular effect pass muster, I had no trouble with the others.. I will try it again and see if I can get more info for you from Norton.. Thanks..

 

Ok, tried it again and Norton just says threat is 'WS.Reputation.1.. Here is the link they gave me with the explanation for it..

 

http://www.symantec.com/security_response/print_writeup.jsp?docid=2010-051308-1854-99

Edited by StarryKat
0

Share this post


Link to post
Share on other sites

I read it and I would say that that is due to the imposters that exist on many sites. I've seen my work on lots of other websites but they're all unauthorized. 

for instance "paint-net.ru" I have noothing to do with this site and cannot vouch for it's integrity.

0

Share this post


Link to post
Share on other sites

But I did not use another site to download your file, I did it right from here.. I'm not sure why Norton is suspect of your file but I would think you might want to look into it just for your own satisfaction..

Thanks..

0

Share this post


Link to post
Share on other sites

the reason is right there in the document

 

 

WS.Reputation.1 is a detection for files that have a low reputation score based on analyzing data from Symantec’s community of users

not on any code that was detected. Only on the existence of an evil twin. But not on this site.

Edited by TechnoRobbo
0

Share this post


Link to post
Share on other sites

the reason is right there in the document

not on any code that was detected. Only on the existence of an evil twin. But not on this site.

 

Ok.. But what I'm saying is that, if what Norton is saying is not true and you know it's not, why don't you contact them and file a complaint with them? It says you have the right to do that.. I hope you get the problem cleared up, TR.. You have some really great designs here.. Good luck..

0

Share this post


Link to post
Share on other sites

Nortons cannot distinguish between the two Dll's if the comparison based solely on file name, still, If there are some tainted copies of my plugins or any other plugins on disreputable website then the user deserves the chance to be protected. 

 

 

When they visit the forums (as you did) they can then find answers and warning such as the one for Megalo ( http://forums.getpaint.net/index.php?/topic/28270-megalo-virus/) and postings such as yours.

 

I truly believe that there is more malicious software  than legitamite software on the internet, so in my humble opinion removing any scrutiny of my dll's or anyone elses is the equivalent to throwing out the baby with the bath water.  

 

... and thank you for bringing up the dialogue, I do believe it's necessary that people are educated on the subject.

Edited by TechnoRobbo
1

Share this post


Link to post
Share on other sites

You're very welcome.. I'm just glad I was able to download, without problems, your other plug-ins.. I look forward to using them.. I love PDN and people are often shocked when I tell them my wallpapers are not done in PSP or some other expensive software program.. Thanks again to all of you who work so hard to provide PDN users with these great special effect plug-ins....

1

Share this post


Link to post
Share on other sites

Try renaming the DLL and see. If you have the original your AV should ignore it.

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0