Jump to content


Photo

Bricks (updated with examples)


  • Please log in to reply
26 replies to this topic

#1 jchunn

jchunn
  • Members
  • 155 posts
  • Reputation:0

Posted 11 February 2008 - 04:34 AM

This plugin is a part of the "Jesse Chunn Plugin Pack" and can be downloaded HERE

Once installed, "Bricks" will show up in the "Render" submenu.

Here are some examples:
This image uses "Bricks" to create texture.
Posted Image

Here is a tutorial to create a brick wall.

(link to old forum removed - please use search: http://searchpaint.net/ )


This effect is a part of Jesse Chunn Plugin Pack located at:
Jesse Chunn Plugin Pack

All comments welcome.

Regards,
Jesse Chunn.
I'll bet YOU CAN'T STOP READING this once you start:
http://www.jessechunn.com

#2 barkbark00

barkbark00
  • Members
  • 3,336 posts
  • Reputation:2

Posted 11 February 2008 - 06:43 AM

Nice job on the new one. Was it made in VB.NET as well?
Posted Image
Take responsibility for your own intelligence. ;) -Rick Brewster

#3 MadJik

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

Posted 11 February 2008 - 10:14 AM

Nice one, i like it !

But I've got 2x Bricks... in my menu!
They look same!

#4 DRILL

DRILL
  • Members
  • 182 posts
  • Reputation:0

Posted 11 February 2008 - 12:25 PM

I've got 2 bricks and 2 varicose and i've got a error with my version(3.20)
File: C:\Program Files\Paint.NET\Effects\jchunn.dll
      Effect Name: PDNPI_IndirectUI.Bricks
      Full error message: System.InvalidCastException: Specified cast is not valid.
   at PaintDotNet.PropertySystem.Property`1.ValidateNewValue(Object newValue)
   at PaintDotNet.PropertySystem.Property.SetValueCore(Object value)
   at PaintDotNet.PropertySystem.Property.set_Value(Object value)
   at PaintDotNet.IndirectUI.ControlInfo.SetPropertyControlValue(Object propertyName, Object controlPropertyName, Object propertyValue)
   at PDNPI_IndirectUI.Bricks.OnCreateConfigUI(PropertyCollection props)
   at PaintDotNet.Effects.PropertyBasedEffect.CreateConfigDialog()
   at PaintDotNet.Menus.EffectMenuBase.RunEffect(Type effectType)

Posted Image

#5 zisworg

zisworg
  • Members
  • 77 posts
  • LocationLyon, France
  • Reputation:0

Posted 11 February 2008 - 03:04 PM

Good idea! I'll test yet. :)

#6 jchunn

jchunn
  • Members
  • 155 posts
  • Reputation:0

Posted 11 February 2008 - 03:27 PM

Nice job on the new one. Was it made in VB.NET as well?


Thanks, and yes. I just added the new plugin to the existing code (added a class).

I've got 2 bricks and 2 varicose and i've got a error with my version(3.20)

But I've got 2x Bricks... in my menu!


Not sure why you have 2 bricks. I changed the filename of the dll, so it makes sense that you would have 2 varicose (the old one and the one in this dll)... just delete the old varicose.dll and you should be fine. I'll try not to change file names in the future to avoid that problem. If you delete varicose.dll and still see 2 bricks OR 2 varicose, let me know.

As for your error, I am running 3.22, so maybe there is a compatibility problem... not sure, but it seems to work fine for me. I am checking all types, and the input controls (I assume) will not allow invalid input.
I'll bet YOU CAN'T STOP READING this once you start:
http://www.jessechunn.com

#7 MadJik

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

Posted 11 February 2008 - 04:03 PM

Never download Bricks.dll ! Yes, varicose.dll is removed.
And yes 2xBricks and 2xVaricode in the menu...

#8 barkbark00

barkbark00
  • Members
  • 3,336 posts
  • Reputation:2

Posted 11 February 2008 - 04:09 PM

What happens if you switch to the english version?
Posted Image
Take responsibility for your own intelligence. ;) -Rick Brewster

#9 MadJik

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

Posted 11 February 2008 - 04:50 PM

What happens if you switch to the english version?

English or French, still doubles...

#10 Leif

Leif
  • Members
  • 672 posts
  • LocationDenmark
  • Reputation:0

Posted 11 February 2008 - 05:33 PM

I get the double entry too. Not a good thing when we once more have so many other plug-ins. :wink: But otherwise a pretty cool plug-in.
Posted Image
My DA: http://leif-j.deviantart.com/
--------------
Some people seek justice so persistent, that they will do great injustice themselves.

#11 Dalton

Dalton
  • Members
  • 572 posts
  • Reputation:1

Posted 11 February 2008 - 08:53 PM

I've got 2 bricks and 2 varicose and i've got a error with my version(3.20)

File: C:\Program Files\Paint.NET\Effects\jchunn.dll
      Effect Name: PDNPI_IndirectUI.Bricks
      Full error message: System.InvalidCastException: Specified cast is not valid.
   at PaintDotNet.PropertySystem.Property`1.ValidateNewValue(Object newValue)
   at PaintDotNet.PropertySystem.Property.SetValueCore(Object value)
   at PaintDotNet.PropertySystem.Property.set_Value(Object value)
   at PaintDotNet.IndirectUI.ControlInfo.SetPropertyControlValue(Object propertyName, Object controlPropertyName, Object propertyValue)
   at PDNPI_IndirectUI.Bricks.OnCreateConfigUI(PropertyCollection props)
   at PaintDotNet.Effects.PropertyBasedEffect.CreateConfigDialog()
   at PaintDotNet.Menus.EffectMenuBase.RunEffect(Type effectType)


Aren't you supposed to have the latest version?

=========================
I'll try this plugin in a few!
:D
MyBB Tutorials, check out my site. :)

#12 ncfan51

ncfan51
  • Members
  • 2,561 posts
  • Reputation:0

Posted 12 February 2008 - 10:13 PM

Screenshots?

Posted Image

+_+_+_+_+_+_+_+_+_+_+_+ I am a disco dancer. +_+_+_+_+_+_+_+_+_+_+_+


#13 Rick Brewster

Rick Brewster

    Paint.NET Author and Developer

  • Administrators
  • 12,557 posts
  • LocationKirkland, WA
  • Reputation:120

Posted 12 February 2008 - 11:24 PM

I've got 2 bricks and 2 varicose and i've got a error with my version(3.20)

File: C:\Program Files\Paint.NET\Effects\jchunn.dll
      Effect Name: PDNPI_IndirectUI.Bricks
      Full error message: System.InvalidCastException: Specified cast is not valid.
   at PaintDotNet.PropertySystem.Property`1.ValidateNewValue(Object newValue)
   at PaintDotNet.PropertySystem.Property.SetValueCore(Object value)
   at PaintDotNet.PropertySystem.Property.set_Value(Object value)
   at PaintDotNet.IndirectUI.ControlInfo.SetPropertyControlValue(Object propertyName, Object controlPropertyName, Object propertyValue)
   at PDNPI_IndirectUI.Bricks.OnCreateConfigUI(PropertyCollection props)
   at PaintDotNet.Effects.PropertyBasedEffect.CreateConfigDialog()
   at PaintDotNet.Menus.EffectMenuBase.RunEffect(Type effectType)

Looks like jchunn is probably using PdnResources to load some text. If so, this plugin will not work in future versions of Paint.NET. Plugins must not use PdnResources.
The Paint.NET Blog: http://blog.getpaint.net/
Donations are always appreciated! http://www.getpaint.net/donate.html

Posted Image

#14 jchunn

jchunn
  • Members
  • 155 posts
  • Reputation:0

Posted 13 February 2008 - 02:44 PM

Looks like jchunn is probably using PdnResources to load some text. If so, this plugin will not work in future versions of Paint.NET. Plugins must not use PdnResources.


No, I am not. The plugin is not doing anything out of the ordinary. I am at work, so I can't post the latest source, but I am not doing anything differently than what is in this earlier version, other than re-arranging some of the effect logic for the "bricks" effect:

http://paintdotnet.f...ile.php?id=1193

That is vb.net, but it is very simple and easy to follow. Certainly, a quick look will make it obvious that (unless I am completely missing something) I am not doing anything fancy with resources. I am simply modifying a few pixels. Very straightforward stuff.

It is possible that I have a reference to the resources dll, but if I do, it was simply a matter of setting the reference, and never using it.

If you (Rick) want to just quickly open the source and take a quick look (even in notepad if you didn't install vb) you should be able to verify that I am not doing anything out of the ordinary. If I am, let me know what it is and I'll go back to the drawing board, but this is pretty basic stuff, so I'd doubt it.

The only thing I "am" doing that is different from the other examples I've seen posted is that I am using the "my.resources" namespace, instead of embedding the resources the way others are doing it in C#, strictly for the effect icon... but that shouldn't matter since I am still just returning a bitmap.

Any feedback would be appreciated.

Regards.
I'll bet YOU CAN'T STOP READING this once you start:
http://www.jessechunn.com

#15 Leif

Leif
  • Members
  • 672 posts
  • LocationDenmark
  • Reputation:0

Posted 13 February 2008 - 03:24 PM

I hope this problem can bee solved. I just discovered an interesting way of using this plug-in.
Posted in the pickthorium, and on my DA.
Posted Image
My DA: http://leif-j.deviantart.com/
--------------
Some people seek justice so persistent, that they will do great injustice themselves.

#16 jchunn

jchunn
  • Members
  • 155 posts
  • Reputation:0

Posted 13 February 2008 - 07:12 PM

If you are getting duplicates (more than one copy of bricks or varicose in your effects menu), please try the following and let me know if this fixes the problem.

1. Close all instances of PDN.
2. Go to "c:\program files\Paint.Net\effects\" (or whereever your "effects" folder is).
3. Delete varicose.dll AND jchunn.dll.
4. Run PDN.
5. Verify that you do not have any of the following effects in the effect menu:
effects->object->Varicose
effects->render->Varicose
effects->render->Bricks
If you have any of those, well... you have something seriously wrong with your installation, or you didn't "really" delete the files, or your effects folder is not where you think it is, or something else has gone wacky with your computer.
7. Close PDN again.
6. Re-download "jchunn.zip".
7. Unzip "jchunn.zip" and verify that it contains ONLY jchunn.dll.
8. Copy ONLY "jchunn.dll" to your effects folder.
9. Run PDN.
10. Verify that you have the following effects:
One copy of effects->render->Varicose
One copy of effects->render->Bricks
NO copy of effects->object->Varicose

If you do all that, and still have two copies of either bricks or varicose (or both), please post here again... that means either something is wrong with the plugin, something is wrong with PDN, or something is wrong with your installation... and I'll need to try and figure out which one it is.
I'll bet YOU CAN'T STOP READING this once you start:
http://www.jessechunn.com

#17 MadJik

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

Posted 13 February 2008 - 07:28 PM

It's ok for me now.
Thanks.

#18 Leif

Leif
  • Members
  • 672 posts
  • LocationDenmark
  • Reputation:0

Posted 13 February 2008 - 07:31 PM

Solved the problem for me. :D
Posted Image
My DA: http://leif-j.deviantart.com/
--------------
Some people seek justice so persistent, that they will do great injustice themselves.

#19 jchunn

jchunn
  • Members
  • 155 posts
  • Reputation:0

Posted 13 February 2008 - 07:32 PM

AWESOME... thanks for the quick reply guys.
I'll bet YOU CAN'T STOP READING this once you start:
http://www.jessechunn.com

#20 topezia

topezia
  • Members
  • 779 posts
  • LocationRome, Italy
  • Reputation:0

Posted 13 February 2008 - 10:40 PM

And no more doubles for me too! Thanks for the effects!

Posted Image