How to create 3d (extruded) text

Started by prl, October 31, 2014, 09:23:39 AM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

prl

keywords: prl=KWextrudedtext =KW3dtext


So you're interested in creating real 3d text?



The Basic Sequence 

1.  Create your text in the default XY plane. Select all the text.

2.  Convert to Vector. (Command line - C2V)

3.  Select all the Vector Text and MakePlane (Command Line - MP). All the outlines including the interior islands are converted to planes in one step.

4. Select all the Planes and Extrude some Z distance. All the planes including the interior islands are extruded in one step.

5.  Solid subtract the interior solids from the exterior solids. Work these per letter.  Best if you work in wire frame mode. (Specifically for the letters A,B,D,O,P,Q,R).

A Seeing-is-going-to-get-you-doingTm MadMax flash clip is below

A movie - A 3d text sample

Reminder: When the movie is playing, if it is going too fast or you need popcorn, you can left click in the movie area to start/stop the action.  Also the slider to rewind.

SciGraphics

PRL:

  Once again, very good! Even I can do it.


  Jim A., Tucson, AZ

samdavo

#2
Herewith a(nother) macro that prl wrote.
It writes  produces 3D (extruded) text - not to be confused with 3D text (Entity Type 3)
including the hole in letters/numbers/etc (eg ABDOPQRabdegopq  46890  @#$%&)

All I have done is request and receive prl's permission to publish it.

The original text should be 2D type (in front view XY). (edit - or 3D type - in either case , it should be in the XY plane)
It works with most fonts "where the interior solids are within the max/min  x limits area of the overall letter" (in prl's words)

"Requirements
'    - Must be in 3d mode and text is XY plane
'    - Must have selected text. Also doesn't error check if you've selected something that isn't text. "

PS Thanks yet again due to prl.

PS If text is 2D, you must use "Front View (XY)"  to select the text (as the active window).  It will extrude in the Z direction (into the page), and then subtract the "interior solids".

prl

#3
Sam is a good sport about trying out some of my "I wonder if this would work" concepts/code.  I enjoy writing the routines but often find myself too lazy to pursue them further once they initially do most of what I want.

I offer them to him and anyone else as "starter code".  If you make it better, please share.


And now you know what prompted and created that cylindrical DesignCAD 3D MadMax extrusion.  That was a variation of this code which works less predictably but made for some interesting visuals.

samdavo

#4
prl
I'm gonna presume to try to improve that macro - attached is 3dtext2.d3m ...
before subtracting eg the ID cylinder of the "O" from the outer cylinder, I set a handle at its centre, and zoom it up 1.2 in the z direction (only) - just to be double sure there is no z-fighting (2 cents) - i.e. the ID cylinder being subtracted will project fore-and-aft from the OD cylinder.

(edit - at least that's what I THINK and/or hope is happening lol - I'm a novice compared to your script writing skills)

I also add a foggy version of DCAD under a torchlight/spotlight.
You could add "Are you and your searchlight looking for a CAD package? - try DCAD!"
(2 cents)

(edit) I have reposted the macro with a description of what is going on in the first few lines

prl

Nice Sam.  You're a fontain of creativity.

I think what you're calling "z fighting" is the general condition with solids sharing coplanar surfaces during some sort of add/subtract command.  That (coplanar surfaces) is something IMSI did a good job fixing.  Old versions of DesignCAD (before version 16), did require the user to slightly extend one surface beyond the other.  I think it wasn't buggy code, but an improper "fuzzy" tolerance check between coplanar facets.

Normally I haven't had problems with that recently, but nothing wrong with what you're doing.  Even safer.

prl

#6
Quote from: samdavo on November 16, 2014, 12:40:39 AM
I'm a novice compared to your script writing skills)

In the 70s when I was first learning Fortran, I remember spending endless hours writing dumb little programs, punching them out, submitting them, and watching Gandalf (the school's Big Iron computer) run them.  They were all meaningless simple programs but I was fascinated by them.  Not everyone could understand the seductiveness of having some million dollar machine do what you were telling it to do.  The beginning of the "computer nerd" which I'm guessing all of us on this forum have in us.  Some more than others.

Forget Revit, AutoCAD etc.  Yes, they're well beyond DesignCAD. But for me, DesignCAD is my "Gandalf".  Can I get it to do "something" with the added benefit that it produces something visual?    Most times, DesignCAD Can!  Even more fun. 

Dr PR

prl,

I know what you mean. Back in BASIC and assembly code days I wrote a few games and a word processor for entertainment. I also wrote a few number crunching programs for my laboratory work, a map digitizing program, a bunch of hardware test routines for new product development, and a C compiler. There was great satisfaction in getting a new program to jump through the hoops.

I used to play computer games but they were all pretty repetitious and quickly became tiresome. No matter how fancy the graphics have become they are still the same old games that we played in the 70s on our Teletype terminals. Boring!

Then I discovered DesignCAD and now it is my favorite video game!

Phil
DesignCAD user since 1987

samdavo

#8
Quote from: prl on November 16, 2014, 01:22:59 AM
and watching Gandalf (the school's Big Iron computer) run them. 
... and when you dropped the pile of punchcards it took forever to sort them (and the program never quite ran as well again)
... and the fun of those first programmable Hewlett Packard and Texas Instrument calculators that could calculate, eg the hypotenuse of a right-angled triangle if you gave it the other two sides  - WOW!
... and those IT boys who learnt on mainframes are back in fashion now that there's a cloud of floating mainframes up there somewhere, that has emerged as the latest trend.
:)

Quote from: Dr PR on November 16, 2014, 09:15:43 AM
Then I discovered DesignCAD and now it is my favorite video game!
hear hear!

PS DCAD is a not only a fountain of fonts - but a fountain of finds. (2 cents) (and fun).



samdavo

#9
Quote from: prl on November 16, 2014, 01:08:14 AM
I think what you're calling "z fighting" is the general condition with solids sharing coplanar surfaces during some sort of add/subtract command.  That (coplanar surfaces) is something IMSI did a good job fixing.
...
Normally I haven't had problems with that recently, but nothing wrong with what you're doing.  Even safer.
prl
you're right - that is what I meant - I believe I borrowed/learnt the term from minstrel.

Certainly I still get it from time to time, but not consistently;   and indeed your macro seems to work perfectly as the original version;   

I am just being super-cautious as you say, probably influenced by Phil's warnings that these things can come back to bite you, eg if you are doing a drawing of an aircraft carrier, and one of the bolts or grease nipples is experiencing z-fighting, and the bludy ship sinks etc :)
cheers

prl

#10
Quote from: Dr PR on November 16, 2014, 09:15:43 AM
Then I discovered DesignCAD and now it is my favorite video game!

The game, Battleship? 

Since everyone knows I like word games,  like Utube = Youtube, people that create models like Phil's should have a place to show off their work . . . . UBoats . . . . get it, Ja, sehr lustig!

Deep question, do Uboats float?

(Phil will like this . . . I had a CO that would go nuts if you called his ship a boat.  We're talking Commander Queeg crazy.)

Dr PR

prl,

I served on a boat that we called a ship! My first "ship" was a 112 foot inshore minesweeper, USS Cape MSI-2.

Normally, most things that float and are under about 150 feet are called boats. They are not "commissioned" vessels and aren't called "USS" (United States Ship).

But we had a letter from the Secretary of the Navy commissioning the vessel and authorizing us to call our boat a ship!

It was McHales Navy. The CO was a brand new Lieutenant (O3), the XO was a LTJG (O2)surfer bum from LA, and I was George (Ensign Fuzz O1). I was Engineering Officer and Supply Officer - and 27 other official duties. We had a crew of 19, and a 1st Class PO bosun's mate was senior enlisted.

The MSIs were worthless - underpowered and too small for ocean work. We were bolted to the pier in Long Beach, CA. We occasionally got underway for "training" and sailed around Catalina Island and went fishing. We participated in a MINEX once and succeeded in fouling our gear on a mine and dropped out of formation. After that they just told us to stay out of the way. There were two MSIs and the Navy got rid of both of them after I had been aboard about nine months.

Then, still an Ensign, I was made Officer in Charge of the USS Ruff MSCO 54! But it wasn't as impressive as it sounds. It didn't have engines and was being scrapped, so my function was to sign paperwork. I told the chief in charge that I would stay out of his way and let him do his job (since we both knew I didn't know anything about decommissioning a ship). I told him he could find me sunning on the top of the pilot house.

After that I went to the USS Oklahoma City CLG-5 - quite a bit different!

Phil
DesignCAD user since 1987

DrollTroll

My dad spent almost all of WWII on a minesweeper.
25 years with DesignCAD

Bob P


magic

#14
Hi Bob,

It constitutes a kayak and was much used in Greenland not so many decades ago for seal hunting (Greenland seals not Navy seals) with harpoon.

This guy demonstrates some Greenland kayak rolls around the Z-axis: https://www.youtube.com/watch?v=eCjbmODtv4U, whereas yours rotates around the Y-axis.

You'll notice that he attaches his anorak to the rim of the kayak man hole (Greenland anoraks used to be made from seal skin), so no water will leak in.

The harpoon was made from wood except for the bone or metal point, which would detach, when they hit the seal. The point had a swim bladder attached, so it (and the seal) wouldn't sink. The wooden spear shaft would also float and was also always retrieved, as there isn't any wood in Greenland.

As you know, Santa lives in Greenland, and now you can get a personalized letter for your kids or grand kids or even great grand kids from Santa via the internet in .pdf format, if you fill in a form at this website: http://santa-greenland.com/.
It's a kind of magic!