News:

Interested in some really terrific mobile apps? Visit www.turboapps.com for details.

Main Menu
TurboCAD 2026 Platinum box
Now available

TurboCAD 2026.2

The latest update for TurboCAD 2026. It installs over any 2026 build and keeps your activation, drawings and settings. Get it from the Start Page or Help > Check for Update.

Creating a bitmap for masking

Started by AussieBloke, November 23, 2020, 01:09:49 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

AussieBloke

I never done this before and Ive just used other suitable files so therefore how can I convert this v2017 drawing into a mask bitmap to create a see thru effect?


Andy H

I'm sure Henry will be be able to help.  I haven't use Lightworks for over 5 years.

Anyway.  Select all the part required. Use Save-As to save a bmp image, But in the save-as dialog tick 'selection'.  I do this often just to ensure nothing else gets saved with the part.

Then use wrapped mask in TC (and anything else Henry's book suggests).   Below was done in v21 as I don't have Lightworks in 2017.  It won't be what you require, but it just shows it works.   

Henry Hubich

Quote from: Darryl W on November 23, 2020, 01:09:49 PM
I never done this before and Ive just used other suitable files so therefore how can I convert this v2017 drawing into a mask bitmap to create a see thru effect?

What do you want to see through?

Henry H

AussieBloke

Thanks for taking a look Andy,

Henry I want to use the "bitmap to masking jpg" file to wrap onto a cone shaped object, exactly the same procedure as you used for the chicken wire transparency, so I need to make 2 bitmaps one as the wrapped image and the other as the transparency image.

see https://forums.turbocad.com/index.php/topic,19356.msg115402.html#msg115402, about half way down,

Firstly I need to remember the rules for saving bitmaps from within tc 1st.

Don Cheke

Don Cheke
My Blog: One Man's Meanderings

Henry Hubich

Daz, you can use a .jpg just as well as a .bmp image.

...How are you gonna wrap onto a cone?

Henry H

AussieBloke

Thanks Don I will check that Turbocad tip out.

Henry Im pretty sure youve covered that topic of wrapping cones/lofted objects in your photorealism article.

Is that correct?

If Im wrong about wrapping on cones etc then Im snookered.  ;D

Alvin Gregorio

#7
I've been playing with this a small bit Darryl.

Starting with inserting a Cone.  Then Unfold Face, that Cone.  Placed that Unfold Group on the World Workplane.  Exploded it once to isolate the Brush pattern from the boundary Polylines and Splines.  Changed the Brush Pattern to something simple.  Selected only the Brush, did a a "Save As..." (.png; Selection).

Opened that .png in a lower-end image editing application.  Tried the "Make Background Transparent" feature of that program.   Didn't result in what I wanted.

I think we firstly need to figure out a way to crop the image, so that there's no background other than the unfolded face of the cone.
I could be wrong; Henry or Don might be able to offer input on that notion.
-Alvin
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

Henry Hubich

I've got good news and bad news, Daz.

The bad news is that AFAIK there's no way to wrap an image such as yours onto a cone without unacceptable distortion. About ten years ago I wrote a VB routine that would pre-distort such an image so that "Cylindrical" Wrapping would result in an undistorted reproduction of the original--but I have lost both that routine and enough knowledge of VB to do it again.

The good news (maybe) is that I was able to massage your image and create a material that uses AP Wrapping to create a "perforated" cone that is far from perfect but just might be good enough for your application. I'm attaching both a screenshot and a .zip file that contains the .tcw (v2020) and the image used for the material.

Henry H

Jeff_in_90620

I was so disappointed when I learned that this technique will not produce patterns of actual holes in 3D printed objects.  :P


Jeff
Jeff

TC 2026 Pro Platinum plus 2015->2024 (most with LightWorks & RedSDK) & V21
System: AMD Ryzen 9 7950X, MSI Mag X670E Tomahawk WiFi, 64GB RAM @ 4.80GHz, ARC A770 w/16GB, 3 x Samsung NVMe 990 (1TB), Windows 11 Pro (64-bit)

AussieBloke

Alvin thanks for taking a look into this idea, I like Henry have forgotten howto save a tc drawn inage to file as a bitmap or other file format. Ive done it many times before with great results so I will try and find a suitable file with the key setup and report back. Thanks.

Henry you are a magician of the best order, gotta admit when I first read your reply without looking at the image I was somewhat dissapointed, but from where I stand the output is superb indeed. WOWEE. :) :) :)

That image display is exactly what I need to use in a lightworks quality render so thankyou so much for taking the time to solve this for me. Thats much appreciated.  ;D

Henry can you explain the steps you take to fold the 2D polylines etc back to the 3D object. Ive tried and failed to select the right position to start the bend?

Jeff if I understand your reply correctly its quite simple to reproduce the holes on a conical surface or like object with evenly spaced holes. Much like a peice of perforated sheet metal.

My 1st attempt was rather slow and had many steps in it, but I refined my geometry technique to the point where I could create a solution that only takes minutes to produce, Im confident that these techniques will create the desired holes in 3D printed objects easily, let me know if you want to see how I did it.


Henry Hubich

Quote from: Darryl W on November 24, 2020, 12:50:08 PM
Alvin thanks for taking a look into this idea, I like Henry have forgotten howto save a tc drawn inage to file as a bitmap or other file format. Ive done it many times before with great results so I will try and find a suitable file with the key setup and report back. Thanks.

Henry you are a magician of the best order, gotta admit when I first read your reply without looking at the image I was somewhat dissapointed, but from where I stand the output is superb indeed. WOWEE. :) :) :)

That image display is exactly what I need to use in a lightworks quality render so thankyou so much for taking the time to solve this for me. Thats much appreciated.  ;D

Henry can you explain the steps you take to fold the 2D polylines etc back to the 3D object. Ive tried and failed to select the right position to start the bend?

Jeff if I understand your reply correctly its quite simple to reproduce the holes on a conical surface or like object with evenly spaced holes. Much like a peice of perforated sheet metal.

My 1st attempt was rather slow and had many steps in it, but I refined my geometry technique to the point where I could create a solution that only takes minutes to produce, Im confident that these techniques will create the desired holes in 3D printed objects easily, let me know if you want to see how I did it.

I'm confused, Daz. What 2D polylines? What bend? My "perforated cone" is a TCad Cone, shelled to a very small Thickness, and endowed with a material that has a "Wrapped mask" Transparency with "Arbitrary Plane" Wrapping.

Henry H

AussieBloke

Henry I messed up, I have downloaded the attached files and thankyou. I have not checked them yet. ???

Maybe I can explain a little better, Ive seen on occasions that youve created a flat 2D polyline thats shaped from a cone or lofted object and then extruded it. Then subsequently folded that extrusion back into a 3D object, Im wondering just what steps you normally take to recreate that 3D object. Specifically what radius you choose, and fold from what position on the extrude?

Im creating tech drawings for a possible patent idea.

Henry Hubich

Quote from: Darryl W on November 24, 2020, 04:33:13 PM
Henry I messed up, I have downloaded the attached files and thankyou. I have not checked them yet. ???

Maybe I can explain a little better, Ive seen on occasions that youve created a flat 2D polyline thats shaped from a cone or lofted object and then extruded it. Then subsequently folded that extrusion back into a 3D object, Im wondering just what steps you normally take to recreate that 3D object. Specifically what radius you choose, and fold from what position on the extrude?

Im creating tech drawings for a possible patent idea.

Daz, I guess you're referring to the attached pdf...

Henry H

AussieBloke

Thanks Henry, Ive got much to learn.  ;)

Jeff_in_90620

Quote from: Darryl W on November 24, 2020, 12:50:08 PM
Jeff if I understand your reply correctly its quite simple to reproduce the holes on a conical surface or like object with evenly spaced holes. Much like a peice of perforated sheet metal.

Either you know a better way than I, or we have two very different concepts of 'easy'.  But, it seems to me, whatever method you use would not be as easy as wrapping an image onto a shelled cone and using that to create holes (possible even with chamfered or filleted edges) in that cone.


Jeff
Jeff

TC 2026 Pro Platinum plus 2015->2024 (most with LightWorks & RedSDK) & V21
System: AMD Ryzen 9 7950X, MSI Mag X670E Tomahawk WiFi, 64GB RAM @ 4.80GHz, ARC A770 w/16GB, 3 x Samsung NVMe 990 (1TB), Windows 11 Pro (64-bit)

Alvin Gregorio

Quote from: Darryl W on November 24, 2020, 12:50:08 PM
...

Jeff if I understand your reply correctly its quite simple to reproduce the holes on a conical surface or like object with evenly spaced holes. Much like a peice of perforated sheet metal.

...

Darryl-- If it is easy to create a cone with evenly spaced holes in it, I am just wondering why are you pursuing the masking route?
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

John R

Quote from: Alvin Gregorio on November 25, 2020, 04:07:55 AM
Quote from: Darryl W on November 24, 2020, 12:50:08 PM
...

Jeff if I understand your reply correctly its quite simple to reproduce the holes on a conical surface or like object with evenly spaced holes. Much like a piece of perforated sheet metal.

...

Darryl-- If it is easy to create a cone with evenly spaced holes in it, I am just wondering why are you pursuing the masking route?

I suspect a Cone with actual holes would be around 20-30MB, whereas a Cone with a "Wrapped Mask" Transparency would be under 1MB.
John R.

V17—V21, 2015—2025
Designer, Deluxe, (Basic, Expert, Professional), Platinum
RedSDK enabled
Windows 11 Pro (25H2), 64-bit

AussieBloke

Jeff based on your reply I must have mis read your post. Easy as is best described as creating the geometry for a required outcome and then improving/simplifying the techniquess for the same outcome with simpler or better refined steps. Well it works for me anyway.

Alvin, bloody good question. I like John R thought it would create a large model that would span many mb's in size and be slow to render. I then considered an alternative mask bitmap for quality lw rendering, but not so in this occasion.

The final required 3D object has about 15 rows of circular holes evenly spaced around the circumference, with approximately 500 -700 holes ( havent bothered counting them ). 3D object size is about 4mb. Also that I only needed 1/2 of this 3D object for this design so its even less size wise.

Henry Hubich

This is a "genuine" perforated cone made by warping a perforated flat workpiece. File size is 6665 Kb. (Rendered in a tad more than 2 seconds with LW AR Draft mode.)

Henry H

AussieBloke

So this is 1/2 of the original holed vortex that I needed, file size is just over 3mb and it renders in 4 seconds in lw qrt.


Henry Hubich

Quote from: Darryl W on November 25, 2020, 04:05:17 PM
So this is 1/2 of the original holed vortex that I needed, file size is just over 3mb and it renders in 4 seconds in lw qrt.

Great. Mirror-copy that and you should be all set.

Henry H