RogCAD home  <--- back to RogCAD home page


A simple tool .. becomes a hobby .. becomes a great tool


1.  Why I use RogCAD

2.  Details about RogCAD's design power

3.  RogCAD's inception and history

    RogCAD is freeware


============================
PART ONE    Why I use RogCAD
============================

High-end 3D CAD software packages are complicated 
massive-ware that have a huge draw on a computer's 
CPU and RAM resources.  It's doubtful that most of 
them would even run on the computer you are using.

They require months of schooling before a person 
can model what I can easily model in RogCAD.  

I've experimented with a lot of high-end 3D CAD 
trial software.  With the exception of the free 
and open-source Blender, they are:

   expensive (as much as $235/month or $5,315/three years),

   require installation, registration and licensing,

   require Internet interfacing at various levels.


What they all have in common:

   massive-ware -- huge drain on computer resources,
           minimum RAM requirements of 4 to 8 GB,

   complicated -- hundreds of menus and commands, 

   "design-layers" to deal with, 

   slow learning curve requiring a lot of classroom time.


These problems are due to the fact that 
all these CAD programs are mouse-driven.

----

RogCAD is keyboard data-entry 3D CAD software.

The tutorial/reference document is lengthy; 
but a day of reading, watching the demonstration 
videos and doing your own experimentation will 
turn you into capable RogCAD modeler.

RogCAD:

  is very straightforward and simple to use
  (provided that you like to work with numbers),
  with all the flexibility of design that is 
  present in any 3D CAD software,

  facilitates quick modeling of designs by 
  virtue of automatically generating data 
  based on minimal data entry, and by providing
  transformation routines,

  is strictly text-file data entry and editing; 
  no confounding "design-layers" or ornery 
  "click and drag" vagaries,

  has perfect precision of dimensions and seamless 
  joining of design elements due to its text-file 
  data-entry,

  cannot possibly suffer any data loss since 
  all the data is safely in text files, fully 
  accessible by the user permanently,

  provides automatic surface rendering, with 
  automatic shading for light source direction, 

  generates a smooth gradient lighting differential 
  on curved surfaces,

  has a very simple user-interface, including
  just a few simple menus,

  has nil (as in virtually zero) draw on a computer's 
  CPU or RAM; one can run multiple copies of RogCAD 
  simultaneously, whether full-screen or in 
  side-by-side windows -- very useful when designing,

  is completely stable,

  has perfectly functioning and accurate 3D navigation, 
  with infinitely fine tuning and real-time display of 
  perspective point and focal point,

  has unlimited focal length and focal direction 
  selectivity to go along with its unlimited 
  perspective point selectivity,

  allows for user-created customized grids,

  can combine multi-colored wireframe modeling with 
  surface modeling for clear presentations and 
  analyses,

  consists of a small set of files which require 
  no installation,

  no registration or licensing,

  and no Internet dependency.

----

Every time I've returned to RogCAD after 
experimenting with complicated, uncooperative, 
unstable 3D CAD software, I've been deeply 
struck by the difference in the experience -- 
that of complete and calming stability, 
simplicity, and cooperativeness.

The unlimited design flexibility of RogCAD
makes it an even better experience.

(The fact that I find magic in seeing numbers 
become images is a further bonus that would be 
hard to overstate.)

Professional 3D CAD modelers who need to do 
a wide variety of design tasks spend years 
becoming fully proficient with their high-end 
software.

When a designer/remodeler associate of mine was 
unable to model a design for his client using his 
expensive software, RogCAD stepped in to do the job 
effortlessly for the appreciative client.

That is why I use RogCAD.


System requirements      Blender             RogCAD
-------------------      -------             ------

computer type            64-bit quad-        any computer
                         core CPU with       old or new
                         SSE2 support


disk space               multi-GB            600 KB 
                                            (apx 1/2000 of Blender's)


RAM memory               minimum 8 GB        9 MB
                                             (apx 1/1000 of Blender's)
                                               


display card             2 GB GPU            any display card
                         OpenGL 4.3



Features                 Blender             RogCAD
-------------------      -------             ------

modeling resolution      unlimited           unlimited

                  
limitation of design     none                none


import backgrounds?      yes                 yes


schooling                months/years        a single reference/
                         1000s of $          tutorial document
                                             


I've continued to upgrade RogCAD as a result of 
purchasing, out of curiosity, several inexpensive 
3D CAD software packages and experimenting with trial 
versions of the most sophisticated and expensive 
3D CAD software.

The inexpensive products turned out to be purely 
toys; there was no possibility of doing real design
work with them.

For me, the high-end software isn't close to being 
worth the time and money spent on schooling, not to
mention the purchase or rental price.

RogCAD cannot compare with certain of the high-end 
software if photo-realism is routinely required.

But whatever can be modeled using the most 
sophisticated software can be modeled in RogCAD:

One does not need to attain photo-realism in order 
to get a very effective level of realism; and facade 
material can be imported into RogCAD and incorporated 
in a perspectively correct manner.  Sunlight shadowing 
can also be added at the final stage of modeling.

RogCAD also cannot possibly compare with high-end
mechanical 3D CAD software for machine design.

I consider high-end CAD software to be a good 
fit for professional engineers, designers, 
architects and animators who can get a return 
on their schooling and purchase investment by 
virtue of the fees they charge their clients.


=================================
PART TWO    RogCAD's design power
=================================

RogCAD is for those who appreciate its 
"by the numbers" methodology.

We typically think of mouse-driven CAD software as 
giving us instant gratification.  But RogCAD's 
"by the numbers" data-entry can yield quick 
gratification as well.  One need only run the 
program after entering just a bit of data to get the 
gratification of seeing something simple modeled on 
the screen.  One is thus provided with motivation 
to move forward with the design.

RogCAD is the essence of straightforwardness when it 
comes to data-entry and data-editing because it is
just numbers, and you are always in control of those
numbers which you can see with your own eyes.

Minimal data-entry goes a long way.  RogCAD's
automation methodology and transformations allow you 
to generate designs quickly.

As with the mouse-driven data-entry method used by 
expensive software, RogCAD requires that the user 
supply just two points of a proposed cubic element, 
such as a wall of a given thickness, height and 
length.  The RogCAD software automatically defines
the remaining six points, as well as the connecting
lines and planes of that cubic element.

Therefore, the RogCAD user is actually entering far
less data than you might expect in order to achieve
a given design.  

RogCAD's data-entry system provides other 
automatically generated elements as well by virtue
of creating a string of modifiable cubic elements 
of whatever spacing and number of elements the CAD 
user specifies.  Thus quickly generated are elements 
such as mitered and beveled framing members, rows 
of windows, etc.

RogCAD's transformation routines are snippets of 
text which the CAD user can paste into the data 
text files to modify specified ranges of data 
points in a variety of ways.

That is how elements get rotated, translated 
(slid), deformed and resized to suit the CAD 
user's needs.  These transformation routines are 
used in conjunction with libraries of objects as 
well as in conjunction with blocks of data that 
one wishes to repeat in a rotated or translated 
manner.

For instance, you can both modify and relocate 
cabinets, windows, walls, doors, appliances and 
furniture quickly with the transformation routines.

Just a couple of the many transformation snippets:

--------------------------------
RESIZE:
first, last, multX, multY, multZ

 401    598    1      1    1.15
--------------------------------

------------------------------------------
XROTATETRANSLATE:
first, last, xangle, tranx,  trany,  tranz

 1      268    90    112.25  50.82   0
------------------------------------------

RogCAD has a powerful curved surface routine which
allows one to create any type of irregularly
curved surface.  Boat hulls are easy for RogCAD.
And again, it's still just numbers which you
enter into a text file.  It puts the CAD user
in complete control of the output.

RogCAD can also combine its curve routine with 
strings of cubic elements:  Those cubic elements 
are thus repeated along any curve the CAD user 
wishes.  My first use of that combined routine 
was in producing (hexagonal) port-holes on the 
curving hull of a ship.

-------------------------------------------------------------
ZWRAP: 
start first, start last, angle per cube, how many, lift value
  
2001         2008        1.44            26        .223
-------------------------------------------------------------

The features just described in this section are 
what makes RogCAD about as fast for design as is 
any expensive software, until one gets into
machine design.

The RogCAD program code has a good algorithm 
for automatic surface modeling with automatic 
shading for light-source direction.  Thoughtful 
definition of project elements assures 
accurate plane-sorting for surface modeling.

RogCAD's automatic surface modeling generates 
a smooth gradient lighting differential on 
curved surfaces.

RogCAD also provides a macro text file for
doing customized automatic surface modeling,
should the CAD user want to make further
enhancements.

Building and using a macro text file for 
automatic surface modeling has nil effect 
on total project time.

The macro text file is always 100 percent accurate 
because it is built by the CAD user manually.  
That macro file itself consists of many automatic
methods, so it is a powerful tool.  It gets built
quickly by the CAD user as he proceeds with, and 
tests, his design.  Its one limitation is that it 
must be tweaked if one significantly changes one's
perspective point.


=====================
PART THREE    History
=====================

RogCAD began life as a strictly text-based 
CAD program in 1993.

I was designing a complicated structure which I had 
proposed to build for a client, and I wanted to 
present them with a perspective drawing on paper. 
I soon discovered that there is no non-arbitrary 
method for setting up perspective lines so as to 
achieve a realistic camera's eye view.  

I wished I had 3D CAD software, but the only 
computer I owned at the time was an IBM 8088 
with a monitor that could display only text, 
so no commercial CAD software would have been 
of any use even if I could have afforded such 
software.  

What to do.  It occurred to me to try to write
a simple computer program that would spit out 
raw data which could then be plotted on paper.  
At first, it struck me as something that was way 
beyond me.  I knew enough math to appreciate how 
messy things can get when you try to project a 
three-dimensional object onto a floating 
two-dimensional plane, that plane itself being 
something that you must define mathematically.
 
But the problem kept tugging at me and I sat down 
the next morning to task myself with it.

Scrapbook:  original hand-written notes

That night I had my first version ready for testing:  

-------------------------------------------------------
1 REM DECK1.BAS
10 INPUT XS
12 INPUT YS
14 INPUT ZS
20 PRINT

30 X=(((150-XS)*(345-(2*YS)-ZS))+(XS*(250-ZS-(2*YS))))/
     (700-(3*XS)-ZS-(2*YS))

40 Y=(((100*X)-(YS*X)-(100*XS)+(YS*XS))/(150-XS))+YS

50 Z=(((50*X)-(ZS*X)-(50*XS)+(ZS*XS))/(150-XS))+ZS

60 M=(((X-73.93)^2)+((Y-49.29)^2)+((Z-24.64)^2))^.5

70 PRINT M: REM magnitude
80 PRINT

90 C=(((X-73.93)*(-.583))+((Y-49.29)*(-.392))+
     ((Z-24.64)*(2.533)))/(2.63*M)

100 PRINT
110 PRINT "ANGLE = ARCOS "C
120 END
-------------------------------------------------------

This first version was capable only of handling one 
pre-selected perspective point and one pre-selected 
focal point, and the program had to be run one time 
for each data point of the proposed structure.  
I selected 41 data points which represented 
41 vertices on the proposed structure.  

I ran the program and it supplied me with an angle 
and a magnitude.  I plotted the point on a piece 
of paper and then ran the program another 40 times.  
It was very exciting to see each plotted point land 
at its expected spot on the paper.  I connected the 
points with a straight-edge.  It was magical as the 
outline of the structure appeared before my eyes. 
(I then filled in the remaining architectural details 
by way of visual extrapolation.)

I took a very over-complicated approach to the 
problem as a result of following a natural inclination
to mimic the real life situation -- I used vectors to
define an image plane floating in space, onto which an 
object would be projected.  This is messier than just 
having a simple image plane defined on the X and Z
axis, using a simple trigonometric projection, then 
rotating the object, which is how it's normally done.

But it never occured to me to do it the latter way
since the floating image plane directly simulates the 
real-life situation of a person moving around a 
stationary architectural object.  

This approach turned out be fortuitous, since it
easily allows the user to specify a particular 
perspective point in three dimensional space, as 
well as a particular focal point (without me --
the software engineer -- having to work out some
set of hideous transformations).  And that is well 
suited to a user who likes or needs to take a 
technical, accurate or analytical approach.  It 
also worked out well for the future of the software,
since it provided an easy way to upgrade it while 
keeping track of shifting perspectives 
and focal points.  These were features I added 
after I got my AT-286 computer with an EGA graphics
monitor in 1995.

The on-screen graphics provided by the 286 gave me 
an environment where I could expand the software's 
features endlessly.  The program-code grew from 
twelve lines to ten thousand lines, which is still
tiny by 3D CAD standards. 

----

My first upgrade was to allow for user-specified
perspective and focal points at run-time, along 
with the capacity to go inside a structure, which
greatly complicated the already complicated 
calculator kernel which performs the image-projection.

Here is that upgraded image-projection program-code. 
It's less than one percent of RogCAD's current 
program code, but it's the most magical part.


For LN = FL(GB) To LL(GB)

1045 inc = 299
1050 If DT = 1 Then DT = 0: G = SP(LN): GoTo 1090
     G = FP(LN): DT = 1
1070:
     If ((X(G) * L) + (Y(G) * M) + (Z(G) * N)) > 
     ((L * L) + (M * M) + (N * N)) Then GoTo 3070

     If DT = 1 Then GoTo 1100
1090:
     If ((X(G) * L) + (Y(G) * M) + (Z(G) * N)) > 
     ((L * L) + (M * M) + (N * N)) Then GoTo 3120

1100:
     W = ((A * A) + (B * B) + (C * C) - 
     (A * X(G)) - (B * Y(G)) - (C * Z(G)))

     [ W is then the denominator in the 
          following three equations. ]

     R(G) = (((A * I) * (A - X(G))) + (B * B * X(G)) + (C * C * X(G)) 
            - (B * X(G) * Y(G)) - (C * X(G) * Z(G)) + ((B * J)  
            * (A - X(G))) + ((C * K) * (A - X(G))) - ((B * Y(G))
            * (A - X(G))) - ((C * Z(G)) * (A - X(G)))) / W

     S(G) = (((B * J) * (B - Y(G))) + (A * A * Y(G)) + (C * C * Y(G)) 
            - (A * Y(G) * X(G)) - (C * Y(G) * Z(G)) + ((A * I) 
            * (B - Y(G))) + ((C * K) * (B - Y(G))) - ((A * X(G)) 
            * (B - Y(G))) - ((C * Z(G)) * (B - Y(G)))) / W

     T(G) = (((C * K) * (C - Z(G))) + (A * A * Z(G)) + (B * B * Z(G)) 
            - (A * Z(G) * X(G)) - (B * Z(G) * Y(G)) + ((A * I)
            * (C - Z(G))) + ((B * J) * (C - Z(G))) - ((A * X(G)) 
            * (C - Z(G))) - ((B * Y(G)) * (C - Z(G)))) / W

     [ R(G), S(G) and T(G) are then inserted into 
         the following two equations. ]

     U(G) = (((R(G) - L) ^ 2) + ((S(G) - M) ^ 2) + 
        ((T(G) - N) ^ 2)) ^ 0.5

     V(G) = (((R(G) - L) * (R(8001) - L)) + 
        ((S(G) - M) * (S(8001) - M)) 
        + ((T(G) - N) * (T(8001) - N))) / 
        (U(G) * ((((R(8001) - L) ^ 2) 
        + ((S(8001) - M) ^ 2) + ((T(8001) - N) ^ 2)) ^ 0.5))

     [ U(G) and V(G) are then inserted into 
          the following equation. ]

     XX(G) = U(G) * V(G)

     If V(G) > 0.9999 Or V(G) < -0.9999 Then YY(G) = 0: GoTo 1200
     YY(G) = U(G) * ((1 - ((V(G)) ^ 2)) ^ 0.5)
     If ((L * S(G)) - (M * R(G))) < 0 Then YY(G) = (-1 * YY(G))

1200:
If CHK = 0 Then CHK = 1: GoTo 950
'If AP = 1 Then CHAIN "ENHANCE.MOD"

IF DT = 1 THEN X(G) = XR(G) - TX: Y(G) = YR(G) - TY
               Z(G) = ZR(G) - TZ: GOTO 1050
END IF

X(G) = XR(G) - TX: Y(G) = YR(G) - TY: Z(G) = ZR(G) - TZ

1250:
GY(FP(LN)) = (MM * 15.2 * YY(FP(LN))) + 680 + HSH
GX(FP(LN)) = (MM * (-15.2) * XX(FP(LN))) + 430 - VSH
GY(SP(LN)) = (MM * 15.2 * YY(SP(LN))) + 680 + HSH
GX(SP(LN)) = (MM * (-15.2) * XX(SP(LN))) + 430 - VSH

If ICHK = 1 Then GoTo 1280
'If SS2$ = "Hide" Then READSWITCH = 1
'If SS2$ = "Show" Then READSWITCH = 2: S3 = 1
If READSWITCH = 1 Then GoTo 1290

1280:
viewport.Line (GY(FP(LN)), GX(FP(LN)))-(GY(SP(LN)), GX(SP(LN))), 
RGB(redd(cdex), green(cdex), blue(cdex))

1290 Next LN


=====================================

From the early days of RogCAD.
Five print-outs from the design-phase
of the Hanson project of 1997:














Original hand-written image projection derivations

RogCAD home

RogCAD complete code