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.

How to apply a bit map file as a decal

Started by Aram, September 12, 2011, 03:10:45 PM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

Aram

Okay folks:

I have searched the forum and have found some information on decals. What I am trying to do is draw my logo in perhaps corel draw or even tcad, a a .jpg or bmp, or whatever, then I wish to apply it to a cylinder (actually a stainless steel hose clamp).

I am not sure how to do this or if it can be done.

Aram ;D
1) Tcad V20 on HP Z10 Workstation 3.3ghz-4gb- 64bit- Nvidia Quadro 2000 Win 7
2) Tcad V20 on Lenovo D30 Workstation 2x- Xeon, 64bit, 16gb -Nvidia Quadro K2000 Win 8

John R

I would say take a look Decal-Reflectance and Decal Property List in the Wiki and see if the info there is helpful.
John R.

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

wd

#2
There are available tcw. files at the following link along with images. May aid some for Decals.


http://forums.turbocad.com/index.php/topic,4900.0.html
Even a mistake may turn out to be the one thing necessary to a worthwhile achievement Henry Ford
If I have ever made any valuable discoveries it has been owing more to patient attention than to any other talent Isaac Newton
I have not failed Ive just found 10,000 ways that won't work Thomas Edison

Aram

#3
Sorry WD, did not see any "following links"

However I did have a chance to go over Henry's book a bit which seems power packed with information. I also found the help menu within the edit materials window. Wow... that alone had a lot of info, that I didn't even know existed. Apparently it is a separate help feature which probably needed to be located under the main windows help menu.

Having said that, I am still having some trouble (but getting closer) to figuring out how to apply a label to this metal band. Attached to this post is the metal  band file and my "wrapping image test file".

I am trying to apply it as a single decal, and it is becoming a bit of a challenge. May anyone be kind enough to help/advise with this?

Aram :o
1) Tcad V20 on HP Z10 Workstation 3.3ghz-4gb- 64bit- Nvidia Quadro 2000 Win 7
2) Tcad V20 on Lenovo D30 Workstation 2x- Xeon, 64bit, 16gb -Nvidia Quadro K2000 Win 8

Henry Hubich

How I'd do it...

Forget about "Decal"; IMO the name is misleading and it is NOT well suited for applying an image to just a small region of a larger object. I'd create a new object specifically to receive the image -- in this case, by drawing an arc of radius .002" greater than the radius of the band and extruding it to a height equal to that of the band. Included angle of the arc in this case is 140 deg, which results in the surface of the extrusion having the same height/arc length ratio as the height/width ratio of your image. Create a new material for this object, using "Wrapped Image" Pattern. (See page 27 of my book, the paragraph beginning, "For the Solid partial cylinder...," for instructions on wrapping the image to fit the new object.) Since the new object doesn't actually contact the original band, you can 3D-Add it to the latter to create a single object without destroying the material of either component.

Henry H

John R

My two bits, using the Decal Reflectance shader.
John R.

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

Aram

Okay Gentleman:

Thank you. Give me a day or two to figure this out. I'll post my results. I've got some more reading to do.

Aram
1) Tcad V20 on HP Z10 Workstation 3.3ghz-4gb- 64bit- Nvidia Quadro 2000 Win 7
2) Tcad V20 on Lenovo D30 Workstation 2x- Xeon, 64bit, 16gb -Nvidia Quadro K2000 Win 8

Don Cheke

Don Cheke
My Blog: One Man's Meanderings

Aram

1) Tcad V20 on HP Z10 Workstation 3.3ghz-4gb- 64bit- Nvidia Quadro 2000 Win 7
2) Tcad V20 on Lenovo D30 Workstation 2x- Xeon, 64bit, 16gb -Nvidia Quadro K2000 Win 8

Aram

Okie doke:

Attached is an honest attempt. Henry's has an actual label as a separate part, but had trouble fitting the graphic on it after playing with all the variables.

Don, I tried your way, but had no luck either. I studied your tip file. The parameters seem okay???

Q1) I assume when you select "wrapped filtered image" or others under the info section,  category and materials selections become irrelevant. Correct?

Q2) What good is the "Preview" for? I doesn't show the selected object.

Aram
1) Tcad V20 on HP Z10 Workstation 3.3ghz-4gb- 64bit- Nvidia Quadro 2000 Win 7
2) Tcad V20 on Lenovo D30 Workstation 2x- Xeon, 64bit, 16gb -Nvidia Quadro K2000 Win 8

Henry Hubich

#10
"Attached is an honest attempt. Henry's has an actual label as a separate part, but had trouble fitting the graphic on it after playing with all the variables."

How to do it: (Please refer to the attached screenshot) And notice the corrections.

Go to World Workplane, which is the WP in which the extruded label was created. Click the "3D Selector Properties" icon on the Inspector Bar and be sure that both "Extents CS" and "Coordinate System" are set to "User CS."

Place a small sphere (blue in the attached screenshot) at the Center of Extents of the full cylinder (not the extruded label). Place another small sphere (red) at the lower left corner of the extruded label.

Select the full cylinder extruded label and click the "Set UCS by Selector" icon on the Inspector Bar. You'll see that all three Pos fields now read zero, indicating that the Center of Extents of the cylinder extruded label is now the origin of the current coordinate system.

Select the blue sphere and note the Pos X, Pos Y, and Pos Z values. When you insert values into the Cylindrical Wrapping dialog for the label material, place these values in the Center Point field.

Select the red sphere and place its Pos X, Pos Y, and Pos Z values in the Origin field.

Your extrusion subtends 120 degrees, which is 1/3 of a full circle, so you should enter 0.3333 in the Scale around axis field.

Assuming you want the image to cover the full height of the extruded label, which is 1/2 inch, place 0.5 in the Scale along axis field.

Axis direction is 0,0,1 -- i.e., the Z axis.

Leave the Radius field at zero. It should always be zero unless you have a really good reason to use something different.

Henry H


Aram

[
Go to World Workplane, which is the WP in which the extruded label was created. Click the "3D Selector Properties" icon on the Inspector Bar and be sure that both "Extents CS" and "Coordinate System" are set to "User CS." Did this part okay

Place a small sphere (blue in the attached screenshot) at the Center of Extents of the full cylinder (not the extruded label). Place another small sphere (red) at the lower left corner of the extruded label. Did this part okay

Select the full cylinder and click the "Set UCS by Selector" icon on the Inspector Bar. You'll see that all three Pos fields now read zero, indicating that the Center of Extents of the cylinder is now the origin of the current coordinate system. Did this part okay

Select the blue sphere and note the Pos X, Pos Y, and Pos Z values. X,Y, & Z are zero for the blue sphere too- There is no coordinate difference... Is that okay??  When you insert values into the Cylindrical Wrapping dialog for the label material, place these values in the Center Point field. You mean 0,0,0?  Stopped here.

Select the red sphere and place its Pos X, Pos Y, and Pos Z values in the Origin field.

Your extrusion subtends 120 degrees, which is 1/3 of a full circle, so you should enter 0.3333 in the Scale around axis field.

Assuming you want the image to cover the full height of the extruded label, which is 1/2 inch, place 0.5 in the Scale along axis field.

Axis direction is 0,0,1 -- i.e., the Z axis.

Leave the Radius field at zero. It should always be zero unless you have a really good reason to use something different.

Henry H[/font]
1) Tcad V20 on HP Z10 Workstation 3.3ghz-4gb- 64bit- Nvidia Quadro 2000 Win 7
2) Tcad V20 on Lenovo D30 Workstation 2x- Xeon, 64bit, 16gb -Nvidia Quadro K2000 Win 8

Henry Hubich

Quote from: Aram on September 14, 2011, 02:57:39 PM
[
Go to World Workplane, which is the WP in which the extruded label was created. Click the "3D Selector Properties" icon on the Inspector Bar and be sure that both "Extents CS" and "Coordinate System" are set to "User CS." Did this part okay

Place a small sphere (blue in the attached screenshot) at the Center of Extents of the full cylinder (not the extruded label). Place another small sphere (red) at the lower left corner of the extruded label. Did this part okay

Select the full cylinder and click the "Set UCS by Selector" icon on the Inspector Bar. You'll see that all three Pos fields now read zero, indicating that the Center of Extents of the cylinder is now the origin of the current coordinate system. Did this part okay

Select the blue sphere and note the Pos X, Pos Y, and Pos Z values. X,Y, & Z are zero for the blue sphere too- There is no coordinate difference... Is that okay??  When you insert values into the Cylindrical Wrapping dialog for the label material, place these values in the Center Point field. You mean 0,0,0?  Stopped here.

Select the red sphere and place its Pos X, Pos Y, and Pos Z values in the Origin field.

Your extrusion subtends 120 degrees, which is 1/3 of a full circle, so you should enter 0.3333 in the Scale around axis field.

Assuming you want the image to cover the full height of the extruded label, which is 1/2 inch, place 0.5 in the Scale along axis field.

Axis direction is 0,0,1 -- i.e., the Z axis.

Leave the Radius field at zero. It should always be zero unless you have a really good reason to use something different.

Henry H[/font]


My bad. Should have said, "the extruded label," not, "the cylinder." I'll correct my first post accordingly.

Sorry for the confusion.

Henry H

Aram

Don't sweat it Hen, you have bonus "Allowed mistake credits" in my book. :D
1) Tcad V20 on HP Z10 Workstation 3.3ghz-4gb- 64bit- Nvidia Quadro 2000 Win 7
2) Tcad V20 on Lenovo D30 Workstation 2x- Xeon, 64bit, 16gb -Nvidia Quadro K2000 Win 8

Aram

#14
Okay here is another try... but still doesn't look right.. My numbers off? They seem to be identical to yours Henry. What is different?

Aram :o
1) Tcad V20 on HP Z10 Workstation 3.3ghz-4gb- 64bit- Nvidia Quadro 2000 Win 7
2) Tcad V20 on Lenovo D30 Workstation 2x- Xeon, 64bit, 16gb -Nvidia Quadro K2000 Win 8

Henry Hubich

Quote from: Aram on September 15, 2011, 08:35:13 AM
Okay here is another try... but still doesn't look right.. My numbers off? They seem to be identical to yours Henry. What is different?

Aram :o

Did you post the correct drawing, Aram? The material for the extruded label in "Metal band Example Ver. b.TCW" is "Rough realistic brick," and when I render the drawing, the band itself doesn't look like the .jpg you posted.

Henry H

Aram

Doesn't Wrapped filter image over ride those settings? It it doesn't seem to make any difference if it is a wrapped image. I'll re-check what you had.

Aram
1) Tcad V20 on HP Z10 Workstation 3.3ghz-4gb- 64bit- Nvidia Quadro 2000 Win 7
2) Tcad V20 on Lenovo D30 Workstation 2x- Xeon, 64bit, 16gb -Nvidia Quadro K2000 Win 8

Henry Hubich

Quote from: Aram on September 15, 2011, 11:22:07 AM
Doesn't Wrapped filter image over ride those settings? It it doesn't seem to make any difference if it is a wrapped image. I'll re-check what you had.

Aram

Aram, here's what I see when I look at the 3D Properties of your extruded label...

Henry H

Aram

Same result Henry; however an error says it is looking for testdecal4 under material... I don't have that. I seem to be confused on the relationship between materials, category, and wrapped filtered image.

I tried to substitute my own "test decal", under wrapped image, but the result was the same as the last post...

I saved this latest file Version C. Could you tell me what is different?
1) Tcad V20 on HP Z10 Workstation 3.3ghz-4gb- 64bit- Nvidia Quadro 2000 Win 7
2) Tcad V20 on Lenovo D30 Workstation 2x- Xeon, 64bit, 16gb -Nvidia Quadro K2000 Win 8

Henry Hubich

Quote from: Aram on September 15, 2011, 12:32:27 PM
Same result Henry; however an error says it is looking for testdecal4 under material... I don't have that. I seem to be confused on the relationship between materials, category, and wrapped filtered image.

I tried to substitute my own "test decal", under wrapped image, but the result was the same as the last post...

I saved this latest file Version C. Could you tell me what is different?

Your Version C works just fine, Aram.

(Incidentally, the value placed in the Z field of the Center Point parameter isn't important when the Axis Direction is (0,0,1).)

Henry H

Aram

Well...

I don't know what to say... Why does my C version look like this? :o
1) Tcad V20 on HP Z10 Workstation 3.3ghz-4gb- 64bit- Nvidia Quadro 2000 Win 7
2) Tcad V20 on Lenovo D30 Workstation 2x- Xeon, 64bit, 16gb -Nvidia Quadro K2000 Win 8