Author Topic: Texturize Plugin  (Read 38792 times)

Offline lloydsp

  • CNC Jedi
  • *****
  • Posts: 9086
    • View Profile
Re: Texturize Plugin
« Reply #15 on: July 11, 2022, 16:45:55 pm »
That confuses me, Eddy.  I've been writing code all my professional life, until up about five years ago.  I have decompiled and recompiled many tens of thousands of lines of code, over my career, in order to move the application to a new O/S or application version.

The original source may have been obfuscated, but decompiling the object code should result in pretty straightforward source code.  Its purposes might - perhaps - be 'non-obvious' to a human reader of it, but a decent compiler should be able to compile it for the target machine/CB-version, so long as a 'compatible' decompiler was used.

(And no... I'm not in a position to tackle that task, right now.  My shop is now backed-up on client projects.)

Lloyd
"Pyro for Fun and Profit for More Than Fifty Years"

Offline EddyCurrent

  • CNC Jedi
  • *****
  • Posts: 5332
  • Made in England
    • View Profile
Re: Texturize Plugin
« Reply #16 on: July 12, 2022, 19:35:17 pm »
Lloyd,

From Rodney's first post in this thread,

Quote
"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. "
[\quote]
Filmed in Supermarionation

Offline EddyCurrent

  • CNC Jedi
  • *****
  • Posts: 5332
  • Made in England
    • View Profile
Re: Texturize Plugin
« Reply #17 on: July 12, 2022, 19:35:54 pm »
Lloyd,

From Rodney's first post in this thread,

Quote
"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. "
Filmed in Supermarionation

Offline lloydsp

  • CNC Jedi
  • *****
  • Posts: 9086
    • View Profile
Re: Texturize Plugin
« Reply #18 on: July 12, 2022, 20:11:41 pm »
Yeah, I saw that.  I'm still confident that a decent de-compiler would render code that could be re-compiled for a different platform, even if it wasn't 'human readable'.  If it executes on the target machine, it can be de-compiled.

Lloyd
"Pyro for Fun and Profit for More Than Fifty Years"

Offline EddyCurrent

  • CNC Jedi
  • *****
  • Posts: 5332
  • Made in England
    • View Profile
Re: Texturize Plugin
« Reply #19 on: July 12, 2022, 20:41:02 pm »
I look forward to someone showing me how it's done.
Filmed in Supermarionation

Offline dave benson

  • CNC Jedi
  • *****
  • Posts: 1894
    • View Profile
Re: Texturize Plugin
« Reply #20 on: July 13, 2022, 03:04:36 am »
Quote
"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. "

Rodney is the author of this code and as such sets the license
conditions.
Just because you can do something doesn’t mean you should.
The big picture is, this plugin fills an area with stuff, so a quick blast on the
gargler using search terms like Delaunay and Voronoi will provide some perspective
as what needs to be done and pop up some libs.
I’m not volunteering you for any work Eddy, this is just a signpost for those who have the zeal and time.
I’ve just finished converting an Alternator to a three phase (brushed DC) motor for my youngest brother, to use on his scooter
(electric children’s version) I’ve expressed my grave concerns that at some point (speed) the thing will go into a scooter
equivalent of a motorcycle uncontrolled tank slapper this has only seemed to spur him on to meet his fete so to speak,
danger being half the attraction. 
If the motor meets his expectations then he wants to build a buggy with two separate motors and controllers
and have traction control, to do this I’ve had to use a ESP32 and a Jtag programmer
using VSCode and platform I\O , getting used to Rtos and the expressive api is soaking
up a lot of time.

Perhaps another way to do this, is to make some textured templates in Blender or the like
and import a .dxf of it into CB and use the “Break at Intersections” function and cut and past, or project the lines to surface.
 
Dave

Offline pixelmaker

  • CNC Jedi
  • *****
  • Posts: 1996
    • View Profile
    • pixelmaker
Re: Texturize Plugin
« Reply #21 on: July 13, 2022, 09:20:50 am »
hi Dave, thanks for the reply.
One of the first radar measured photos in Cologne showed me on a Kreidler Florett K 54/32/2. The measured value was 103km/h. Normally this bike drove maximum 40km/h. I was 16 years old at that time. I had trained on many Mobylettes before that.
I think it is very important for the later development of young people that they find their own limits. You can explain to them what can happen, but it's always better to accompany them than to just stand in front of them and warn them.
I've been riding fat bikes since I was 18, an XJR1300 with just over 140hp for 20 years.
Accidents I had hardly any, while much more with cars.
I hope you can help your brother to build a safe vehicle, everything else is in his self-assessment.

The way I'm currently using it is via grayscale images either from Illustrator or from Photoshop. But that is always a way over 3D objects. And editing 3D objects is always very time consuming. It is something like Perlin Noise. The result is called CNC Bonitum technique. Maybe someone has an idea for a way to get there

What I am looking for is a way over vectors, where the tool shape creates the image. Like on the picture below.
But I don't know any software that can convert lines into 3D so that I can mill them with an engraving mop.
Vectric's Aspire can do that.
If someone of the plugin gurus has some time and leisure this would be a very great plugin
I do not want to ask anyone to violate copyrights here.

ralf
« Last Edit: July 13, 2022, 09:32:28 am by pixelmaker »

Offline GeoffreyGRoy

  • Wookie
  • ****
  • Posts: 278
    • View Profile
Re: Texturize Plugin
« Reply #22 on: July 14, 2022, 04:19:06 am »
Dear Ralf

It is my understanding that most of the surface patterns of this type are produced via Rhino/Grasshopper, but if you are after an approximation my Profile Carve plugin might produce a useful result (see attachments).

Test2a.png was produced by simply creating a polyline model of the edges of the image you posted (by tracing the edges).  Test2 & 2b is produced by using these edges to create a 3D surface (STL) as per the plugin (in this case using an exponential surface).  There are some "edge effects" that could be eliminated by extending the base polylines outside the required dimension of the surface panel by a distance just greater that half the max spacing between the lines, then clipping the result to suit.

The difficult task in using this approach is to create the Polyline-skeleton - this requires some drawing skills.


Geoff

Offline dave benson

  • CNC Jedi
  • *****
  • Posts: 1894
    • View Profile
Re: Texturize Plugin
« Reply #23 on: July 15, 2022, 04:19:25 am »
Ralf

They are striking images, using a surface and a 3d mop with CB
is going to take a while to cut if you want a good finish ‘off the machine’.

Quote
But I don't know any software that can convert lines into 3D so that I can mill them with an engraving mop.

It’s a bit out there but:
You could try importing a bitmap in the height map plugin, generate the
height map using Z scaling. At this  point you will have 3D polylines.
I tried this with an imported image of wood grain and quickly realised that
if redraw the image so that the outer peripheral polylines defining
the shape were replaced by a central spine and having the 90 deg bottom
is ok then you could cut similar but not the same types of shapes (no flat bottom).
I also tried it with the Vcarve mop. If the drawbacks of this method are acceptable it
would be an order of magnitude faster than a 3D mop.
 
As to my brother:
We come from a racing family so I’m not worried  because he’s a novice
and lacking the skills, it’s because he does have the skills and therefore is
overconfident in a way, very reminiscent of Collin Furze.
Ralf that’s a lotta bike at eighteen. I  went the other way not road bikes but trials
bikes  62 Montessa Diablo→73 Bultaco → 74 → Ossa all 250’s . The Ossa
introduced me to the concept of form and function, not only did it out perform
the other bikes by a huge margin (at being a trials bike) it was extremely well made
and looked (too me at least) very stylish.

 Geoff’s solution looks good except I’m not artistic enough.

Offline Bob La Londe

  • CNC Jedi
  • *****
  • Posts: 4585
  • ^ 8.5 pounds on my own hand poured bait.
    • View Profile
    • CNC Molds N Stuff
Re: Texturize Plugin
« Reply #24 on: July 17, 2022, 15:53:53 pm »
It's been a long time since I've done anything like that, but me and my some of my buddies used to isolate and decompile computer viruses to a rough approximation of assembler with some success.

Our first weapon of choice back then was a program called bubble chamber. We couldn't always grasp every nuance of the code we were looking at, but we could almost always locate the code that caused harm when triggered. There's only so many ways to Nuke a hard drive or to write to files.  We did run across one that did absolute read rights slowly corrupting data, but that would only work on some drives.

I'm sure you could decompile anything with enough effort. At least enough to isolate how certain things are done. The one thing we concluded was that often it would have been easier to write a program from scratch then to decompile it and recreate it. 

I get a little bit of a smile one time when I think about a virus that gave us a lot of trouble and it nuked most of our test hardware.  One of the guys was dating a manager over at radio shack so we headed over there and had a half dozen computer disassembled and scabbed together on the floor in the front showroom for a good part of an afternoon as people were coming in and out of the store from the mall entrance.  Of course that manager was also the same one that decided to erase a hard drive by placing it under a bulk eraser.  She erased the hard drive, but it squeaked when we powered it back up.
Getting started on CNC?  In or passing through my area?
If I have the time I'll be glad to show you a little in my shop. 

Some Stuff I Make with CamBam
http://www.CNCMOLDS.com

Offline Rodneyk

  • Droid
  • **
  • Posts: 65
    • View Profile
Re: Texturize Plugin
« Reply #25 on: July 21, 2022, 18:20:50 pm »
I have not been on the form for quite some time but just noticed that there has been some posts related to this code.
I will have to look for the code in my archive.
As far as decompiling the code, yes it can be done by a person skilled in that, but it would be easier to just write it from scratch. I wrote the code a long time ago. It was fairly simple, similar to a fill algorithm with randomized end points clipped to the included polygon. The code was not booby trapped to not work when decompiled, but an obfuscator with encryption was used to make it more difficult.

When I get a chance I will try and find the old source and publish it so you can get it working on more recent versions of CamBam.


Offline dh42

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 7589
    • View Profile
    • Cambam V1.0 French Doc
Re: Texturize Plugin
« Reply #26 on: July 21, 2022, 19:04:25 pm »
Hello Rodney,

I can't find this settings on my C# VS installation, but it seems that there is nothing to change to the code itself, it is only a compilation option that must be changed so the code can works on both 32 and 64 bit versions.

https://cambamcnc.com/forum/index.php?topic=3513.msg71299#msg71299

++
David
« Last Edit: July 21, 2022, 19:17:06 pm by dh42 »

Offline pixelmaker

  • CNC Jedi
  • *****
  • Posts: 1996
    • View Profile
    • pixelmaker
Re: Texturize Plugin
« Reply #27 on: July 21, 2022, 21:07:14 pm »
Quote
When I get a chance I will try and find the old source and publish it so you can get it working on more recent versions of CamBam.
Hello Rodney
Thanks already for this.

ralf

Offline Rodneyk

  • Droid
  • **
  • Posts: 65
    • View Profile
Re: Texturize Plugin
« Reply #28 on: July 24, 2022, 01:14:29 am »
Well, I have some bad news (at least for now) I don't have access to the code from the current version (it is on a computer in storage).
I do have the version of the code that was originally released before a lot of bug fixing and added features.

I don't currently have Cambam on my computer so I cannot compile that. But I am attaching what I have for now.

By the way the reason I went to all the trouble to obfuscate the code originally was that a Person by the name of Armando/Br52/Lazer sent me messages demanding the code, it was rude and kind of pisses me off. 

I think someone should be able to start from this and look at the changes listed in this thread to fix the bugs.  I am happy to help but it has been a long time since I even had CamBam installed as a plane hit my house and my CNC was destroyed.

I did load the project into VS2022 and it looks good except that I am missing the CAMBAM files used in the compile.

If I get a chance I will attempt to dig out the computer that has the source code...


Offline Bubba

  • CNC Jedi
  • *****
  • Posts: 3382
    • View Profile
Re: Texturize Plugin
« Reply #29 on: July 24, 2022, 01:50:08 am »
 I am happy to help but it has been a long time since I even had CamBam installed as a plane hit my house and my CNC was destroyed.
*************************
Sorry to hear that. Glad you are ok though.
My 2¢

Win11, CB(1.0)rc 1(64 bit) Mach3, ESS, G540, 4th Axis, Endurance Laser.