Author Topic: Texturize Plugin  (Read 8972 times)

Offline Rodneyk

  • Droid
  • **
  • Posts: 62
    • View Profile
Texturize Plugin
« on: November 25, 2012, 20:15:15 pm »
Edit 12/19/2012 Note: I will be keeping the most recent version of the plugin in this post from now on while removing older version.

The texturize plugin was an idea presented by BillT. It started out as just a randomizer and has developed into a general purpose texturizer. The plugin essentially creates a hatched pattern inside regions and polylines with "jittery" line segments. Bills original idea was to simulate rough cut/carved wood. The zip file contains the plugin and a Read_Me file with more details.  

The plugin appears on the Draw menu by default, but this can be changed by setting the menu option on the plugin's main dialog window.  

This is version 1.1, and has only been tested by me so be warned that it is worth no more than the price you paid me for it :) I have made every effort to make it stable, but I will not be held liable for its use.

The plugin is designed to work using Regions and closed Polylines. It will not recognize other objects. It does handle hole in regions and also islands in holes (ad infinitum).

I am not providing source code, and the plugin will not let you use Reflector to inspect it. If you do not like this feel free to not use the plugin.

« Last Edit: December 20, 2012, 06:20:34 am by Rodneyk »

Offline dh42

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 6680
    • View Profile
    • Cambam V1.0 French Doc
Re: Texturize Plugin
« Reply #1 on: November 26, 2012, 20:10:44 pm »
Hello,

Thank's for this plugin  ;)

++
David

Offline Rodneyk

  • Droid
  • **
  • Posts: 62
    • View Profile
Texturize Plugin New Version 1.6
« Reply #2 on: December 06, 2012, 00:51:35 am »
See first post for most recent version of the plugin.

I have been working on this plugin with Bill some more. The new version now has several options to customize the texture including one that makes a arc shape in the Z axis to look like a wood carvers motion with a gouge using a roundnose bit.

There are a few glitches which may require the manual deletion or trimming of some points manually, but it does a lot of work for you so enjoy.  One known issue is that occasionally when intersecting arcs the intersection API from cambam in the current version misses points. I have been told this is fixed in the development version but I have not tried it yet.  

This plugin is being posted as-is, I hope that it is worth at least what you paid for it, and maybe more.  Save your work before using. I also suggest that you open a new layer and set it to active before using, that way if it is not what you want you can simply delete the layer.

Read the READ_ME.TXT file for more details.
« Last Edit: December 20, 2012, 06:21:24 am by Rodneyk »

Offline Rodneyk

  • Droid
  • **
  • Posts: 62
    • View Profile
Re: Texturize Plugin Version 1.8
« Reply #3 on: December 09, 2012, 23:41:41 pm »
See the first post for the most recent version of the plugin.

This version was made for the most RC6. RC6 has a bug fix that is required to make the plugin work correctly. Using it with older version may not result in the desired effect.

Changes:
  Totally new algorithm for segment generation.
  Clipping cut segment is now done after jittering the data.
  Better use of the Margin parameter.
  New option for increased density cuts.
 
« Last Edit: December 20, 2012, 06:22:11 am by Rodneyk »

Offline Rodneyk

  • Droid
  • **
  • Posts: 62
    • View Profile
Re: Texturize Plugin
« Reply #4 on: December 17, 2012, 23:36:22 pm »
Well I finally tried it out on my CNC machine with some pine. The texture look close to what I imagined but it will take a bit of playing to get the parameters right. 

The Big screw ups were my fault, not the texture plugin.  One problem was the computer I have hooked up to Mach3 in the garage is a hand me down. It locked up half way through the job.  I tried to restart it in the middle after re-zeroing. Oops I started on an instruction that caused the maching to cut on its way to the next point, hence a line through the R and O.  A second issue occured due to my X axis loosing steps (it does not like the weather and I was getting a lot of vibration out of that axis. Sigh... Wood CNC machine changes with the weather...

Anyway here are a couple of photo with an example texture.

Offline dh42

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 6680
    • View Profile
    • Cambam V1.0 French Doc
Re: Texturize Plugin
« Reply #5 on: December 17, 2012, 23:58:24 pm »
Hello,

I like, a good idea to avoid sanding the background  ;D

On a demo of Aspire, I show something like this but made with a ballnose, it gives good results .. and less burr in fibrous wood such as pine than V cutter.

Quote
Sigh... Wood CNC machine changes with the weather...

With aluminum too; on mine I must do some 'movement of heating' on axis to prevent blockages if the T° is lower than 8/10° ; if not, it's not steps that I lose, but almost one full rotation of the motor just after the beginning of rapid moves !!

++
David

Offline Bubba

  • CNC Jedi
  • *****
  • Posts: 3184
    • View Profile
Re: Texturize Plugin
« Reply #6 on: December 17, 2012, 23:59:21 pm »
I like. Can you post the settings of the plugin. I tried to play with it but i wasn't nearly as good as you got here. And to help you with machine screws in cold shop during winter. I use WD-40 or very light oil on mine it does take very little to notice the difference.For my machine the drive nuts made out of Delrin and during winter the operation is not as smooth as in summer month. Hope this helps.
My 2¢

Win10 (64 bit, CB(1.0)rc 1(64 bit) Mach3, ESS, G540, Endurance Laser.

Offline dh42

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 6680
    • View Profile
    • Cambam V1.0 French Doc
Re: Texturize Plugin
« Reply #7 on: December 18, 2012, 00:20:56 am »
Hello,

With the CNC I do the same than with my old milling machine ; lubrication at the beginning of a work session.

I use Degrip Oil for the guides (brass guide, no balls), but if I add grease too often in the ball nuts I've problem.

Another pb is that I'm not sure that BZT is not optimist with the acceleration/max speed values that they give !!

I reduce from half and it's better but not perfect, sometimes (all 100 to 150h of machining) I've the same big lost of steps ... I don't understand ...

I've exactly the same pb with the two machine (the same), on Z on the 'old' on 'X' on the 'new'  ??? ???

++
David

Offline Rodneyk

  • Droid
  • **
  • Posts: 62
    • View Profile
Latest Version with defect fix.
« Reply #8 on: December 18, 2012, 14:23:14 pm »
New version availble with a couple of tweaks.

Version 1.10
    Added code to prevent short gouge segments from going too deep.
    Optimized generation of clipping objects.
    Added code to allow rectangles, circles, and Text to be used as objects.
    Fixed transformation issue where some objects like rectangle and
        text failed when transformations were applied.
    Fixed an issue with Margins and non polyline objects.
« Last Edit: December 18, 2012, 22:59:11 pm by Rodneyk »

Offline Rodneyk

  • Droid
  • **
  • Posts: 62
    • View Profile
Re: Texturize Plugin
« Reply #9 on: December 18, 2012, 23:17:47 pm »
I like. Can you post the settings of the plugin. I tried to play with it but i wasn't nearly as good as you got here. And to help you with machine screws in cold shop during winter. I use WD-40 or very light oil on mine it does take very little to notice the difference.For my machine the drive nuts made out of Delrin and during winter the operation is not as smooth as in summer month. Hope this helps.

Thanks,

I have been playing around with the settings a lot.  Using a V type bit I use something like:

Stepover 0.125" to 0.25"
Cut length 0.5" to 0.75"
Margin 0.05 (the example shown had no margin)
Double X Density checked
Add Margin Lines Not checked.
Cut type Gouge
Detail level either the second or third mark. If you are doing really long cut segments more might be required
Randomness
   No paired checks.
   Jitter X -0.25, 0.25  (this make the starting point move left and right randomly)
   Jitter Y -0.1, 0.1      (this makes the endpoint move to between the step over values)
   Jitter Z -0.1, -0.02   (depth to cut, both numbers should be negative)
   
If you find areas that look bare you can do a couple things. The second easiest is to clear the lines and try again.  The easiest is to leave the lines and do it again (doubling the number of cuts). If is is a specific area that gets missed add an object over the area and just texture that area.

As far as the MOP I just used Engrave and set the target depth 0 or -.01. It takes a while to cut the texture so be patient.


Offline Bubba

  • CNC Jedi
  • *****
  • Posts: 3184
    • View Profile
Re: Texturize Plugin
« Reply #10 on: December 19, 2012, 00:18:01 am »
@Rodneyk

Thank you very much for this. Now I have good starting point,looking forward to give a try in my next project.
My 2¢

Win10 (64 bit, CB(1.0)rc 1(64 bit) Mach3, ESS, G540, Endurance Laser.