CNCzone.com-The Largest Machinist Community on the net!



Home Page Mark Forums Read Today's Posts My Replies Classifieds Reviews Photo Gallery Web Links Share Files Advertise With Us Ad List
Go Back   CNCzone.com-The Largest Machinist Community on the net! > OpenSource CNC Design Center > Coding


Coding Post your Coding for opensource projects here.


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 09-02-2006, 04:57 PM
HayTay's Avatar  
Join Date: Oct 2004
Location: NC
Posts: 729
HayTay is on a distinguished road
Cool Stippling (a.k.a. Pointillism) Program - Adoption needed

While searching for something else a while ago I ran across a "Weighted Voronoi Stippling" program. The program is way cool (see screen captures below) but seems to have a bunch of programmatical issues. All or parts of the program appear to be in the "public domain" so I was wondering if any of the programming guru's would like to take a crack at spiffing up the Stippling application? All, or parts, of the program(s) code are done using C++ according to one reference. Nothing appears to have been updated with this application for almost a year (since 09/20/2005).

Does this interest any hot-shot programmer or anyone else??? Maybe someone could propose some sort of collaboration with the original programmer, Adrian Secord. A White Paper by Adrian can be found here.

Several points (pun intended) that need to be addressed:
1. After performing some operations the program refuses to close
2. The increase/decrease points hot keys do not seem to work
3. Manually entering the number of points sometimes doesn't work, the value is not retained after clicking OK
4. When changing parameters the display is often not updated
5. You can save the Stippled graphic as an EPS file but so far I haven't been able to open the saved EPS file with any other application due to file errors.
6. It would be nice to be able to save the Stippled picture in other raster/vector formats
7. The set radii function would benefit from an increase/decrease hotkey combination
8. Etcetera...
Attached Images
File Type: png Stippled CNCZone1.png‎ (170.7 KB, 192 views)
File Type: png Stippled CNCZone2.png‎ (217.3 KB, 135 views)
__________________
HayTay

Don't be the one that stands in the way of your success!
Tweet this Post!Share on Facebook
Reply With Quote

  #2   Ban this user!
Old 09-06-2006, 02:46 PM
 
Join Date: Jul 2005
Location: USA
Posts: 81
klick0 is on a distinguished road

What do you plan to do with this? create g-code to machine dot patterns?

I kind of like the idea of dots as opposed to v-carve type situations where it's a line streaking through the image, probably make a better output. Granted the disavantage being that it would take a long time to machine I would think.

What is an EPS file? if you could output that, could you then machine that? I could think with a few parameters it would be easiest to just output the g-code.

ross
Tweet this Post!Share on Facebook
Reply With Quote

  #3  
Old 09-06-2006, 10:41 PM
Switcher's Avatar
Moderator
 
Join Date: Apr 2005
Location: Vectorink.com
Posts: 3,659
Blog Entries: 2
Switcher is on a distinguished road

HayTay,

I wrote a generic program that will do the same thing. My program will take any bitmap and scan the "X & Y-axis".
In my sample I chose to use black and white for simplicity. The program will not cut in the "X & Y-axis" it will only infeed in the "Z-axis" (Endmill).

I made the bitmap in MS-Paint, that I used in my program. So that means you could use any Font on your PC.

Also, the sample program is slow on large bmp's.




I attached 3 screenshots:
( Infeed in white "G01", Rapid in blue "G00" )



(1) "Switcher" inside an oval.
(2) Zoom of #1.
(3) My sample program.





Jerry







.
Attached Images
File Type: jpg screen1.JPG‎ (87.4 KB, 138 views)
File Type: jpg screen2.JPG‎ (199.2 KB, 114 views)
File Type: jpg screen3.JPG‎ (53.7 KB, 104 views)
Tweet this Post!Share on Facebook
Reply With Quote

  #4   Ban this user!
Old 09-06-2006, 11:02 PM
HayTay's Avatar  
Join Date: Oct 2004
Location: NC
Posts: 729
HayTay is on a distinguished road

Originally Posted by Switcher
I wrote a generic program that will do the same thing. My program will take any bitmap and scan the "X & Y-axis".
Jerry
Switcher,

Is that part of the Sketch2Code application you've been working on, or some other project? I've been following that post for some time now and have enjoyed seeing your progress. I have to admit, though, that I have not tried it... yet.

If this is a different programming app. is it anywhere near ready for the CNCZoner's to play with??? Um, uh, I mean Beta test it!

Keep up the good work, I think you're on to something.
__________________
HayTay

Don't be the one that stands in the way of your success!
Tweet this Post!Share on Facebook
Reply With Quote

  #5  
Old 09-06-2006, 11:36 PM
Switcher's Avatar
Moderator
 
Join Date: Apr 2005
Location: Vectorink.com
Posts: 3,659
Blog Entries: 2
Switcher is on a distinguished road

HayTay,

This is a new program, just messing around.

I thought about adding something like this into "Sketch2Code". It's not ready yet.

Whats really cool about this code I started is, the scanning of the "X & Y-axis" is looking for a certain color (black). So that means code could be wrote to add as many colors that I add to my MS-Paint bitmap, and use each color as a sub program (g-code).





Jerry



.
Tweet this Post!Share on Facebook
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 09-06-2006, 11:39 PM
HayTay's Avatar  
Join Date: Oct 2004
Location: NC
Posts: 729
HayTay is on a distinguished road
Lightbulb

Let me reemphasize that this is NOT my program, all credit goes to the original programmer, Adrian Secord and any associates that may have helped him.

Originally Posted by klick0
What do you plan to do with this? create g-code to machine dot patterns?
Yeah, I thought that would give a rather unique effect when cut convex into an acrylic sheet and illuminated. For added effect, a clear piece of acrylic could be painted an opaque color (or colors) on one side, then the dots would be cut into the surface. Frame and backlight the result and you would have an effect similar to a Lite Brite (Why wait? For web based Lite-Brite fun check out http://www.sfpg.com/animation/liteBrite.html#). It would also be an unusually nifty effect with the dots cut concave into (out of?) a piece of wood, foam, plastic, metal, etc. You could clear the area around the dots leaving either dots or small posts of varying height. The effect this would give is sort of like jamming your face into one of those pin things they have at Spencer's Gifts only with a larger gap between the dots.

Originally Posted by klick0
Granted the disavantage being that it would take a long time to machine I would think.
That would be a definite!

Originally Posted by klick0
What is an EPS file? if you could output that, could you then machine that? I could think with a few parameters it would be easiest to just output the g-code.
EPS stands for Encapsulated PostScript. You can read about the EPS file format here on Wikipedia. Yes, the EPS file would have to be converted to G-code using some other application.
__________________
HayTay

Don't be the one that stands in the way of your success!
Tweet this Post!Share on Facebook
Reply With Quote

  #7  
Old 09-07-2006, 12:13 AM
Switcher's Avatar
Moderator
 
Join Date: Apr 2005
Location: Vectorink.com
Posts: 3,659
Blog Entries: 2
Switcher is on a distinguished road

Originally Posted by klick0
Granted the disavantage being that it would take a long time to machine I would think.
It would all depend on how fast you could rapid (G00) your cnc machine (without lost steps), the depth in "Z", and the clearance height from the work material in "Z".

If you kept the "Z" clearance/depth real shallow, I think the cycle time would be ok.


Jerry


.
Tweet this Post!Share on Facebook
Reply With Quote

  #8   Ban this user!
Old 09-07-2006, 12:19 AM
HayTay's Avatar  
Join Date: Oct 2004
Location: NC
Posts: 729
HayTay is on a distinguished road

OH, NO, it's peck drilling on steroids!!!
__________________
HayTay

Don't be the one that stands in the way of your success!
Tweet this Post!Share on Facebook
Reply With Quote

  #9  
Old 09-07-2006, 12:33 AM
Switcher's Avatar
Moderator
 
Join Date: Apr 2005
Location: Vectorink.com
Posts: 3,659
Blog Entries: 2
Switcher is on a distinguished road

.

Another screenshot = "CNC zone.com"


The g-code isn't exactly efficient.

Jerry

.
Attached Images
File Type: jpg 5.JPG‎ (81.0 KB, 120 views)
Tweet this Post!Share on Facebook
Reply With Quote

  #10   Ban this user!
Old 09-07-2006, 12:53 AM
HayTay's Avatar  
Join Date: Oct 2004
Location: NC
Posts: 729
HayTay is on a distinguished road

Originally Posted by Switcher
The g-code isn't exactly efficient.
Like everything, that comes later.

To quote HuFlungDung, "First you get good, then you get fast."
__________________
HayTay

Don't be the one that stands in the way of your success!
Tweet this Post!Share on Facebook
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 09-09-2006, 09:35 AM
 
Join Date: Jun 2005
Location: USA
Posts: 180
rweatherly is on a distinguished road

It looks like the original program used the same size "dot" and increased the dot density for dark colors. You could also use a process similar to VCarve, but without the line that connects the dots (use a V shaped tool, and vary the depth of cut to change the dot size according to the shade of the pixel in the original image).
Tweet this Post!Share on Facebook
Reply With Quote

  #12   Ban this user!
Old 09-09-2006, 09:53 AM
 
Join Date: Jun 2005
Location: USA
Posts: 180
rweatherly is on a distinguished road

Originally Posted by Switcher View Post
.

Another screenshot = "CNC zone.com"


The g-code isn't exactly efficient.

Jerry

.
Making the code more efficient would be an intesting math problem, but since the move from point to point is always at clearance height, it might not be too difficult to solve.
Tweet this Post!Share on Facebook
Reply With Quote

Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





All times are GMT -5. The time now is 09:08 AM.





Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO
Template-Modifications by TMS

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353