DesignCAD 3D Max 2027 box
Now available

DesignCAD 2027

Hatches that follow their boundaries, an on-screen dial to turn your model, and a way to find any command by name, in a clean Windows 11 look.

How to make a DesignCAD animated Gif movie

Started by prl, March 25, 2014, 04:13:25 AM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

prl

To make an animated Gif, you need to take many screen snapshots of your DesignCAD model.  BasicCAD can help you automate the process of taking the snapshots.

The general process:

1.  In DesignCAD, make sure your shade mode settings are the way you want them (Gourad, non-accelerated, etc.)
2.  Let a BasicCAD routine make the *.png files.  A sample routine is given below.
3.  Use the freeware InfraView portable to convert *.png files to *.gif files.  Put the gif files in their own directory.
4.  Use the freeware UnFREEz.exe 2.1 to compile the gifs into an animated gif.





'Program: gifmovie.d3m (a sample routine for making gif movies by taking lots of DesignCAD snapshots)

'3/25/2014 - prl forum topic

'Reminder
'in the main body of the code, you decide what your object is going to do in terms of position, view angle, etc.
'once it is positioned where you want it, you have the SnapPic subroutine take a graphic snapshot.

'General: How I make animated Gifs
'         1.  Make sure your shade mode settings are the way you want them (Gourad, non-accelerated, etc.)
'         2.  Let this code make the *.png files
'         3.  Use InfraView portable to convert *.png files to *.gif files.  Put the gif files in their own directory.
'         4.  Use UnFREEz.exe 2.1 to compile the gifs into an animated gif.


'-------------------- Begin main routine
xx = 0 'initial counter for naming the png file names sequentially

'Sample movement, in this case it spins the camera around, object isn't really moving
for j = 0 to 180
    sys(205)= 4*j  'rotation about Global X
    sys(206)= 2*j  'rotation about Global Y
    sys(207)= 4*j  'rotation about Global Z
    gosub SnapPic
Next j
sys(1)=0
End
'-------------------- End main routine


'subroutines follow

SnapPic:
    xx = xx + 1
    precision 0
    a$ = abs(xx)
   
    'put graphic file name in following format, 001 or 012 or 113
    if len(a$)=1 then a$="00"+a$
    if len(a$)=2 then a$="0"+a$
    pic$="v:\stuff\pic"+a$+".png" 'a directory of your choosing, mine goes to a virtual drive V
   
    >shadeview
    {
    <ShowLine 0
    }

    >SaveBmp
    {
    <ShowLine 0
    <Filename [pic$]
    }
Return

minstrel

Quote from: prl on March 25, 2014, 04:13:25 AM
2.  Let a BasicCAD routine make the *.png files.  A sample routine is given below.

Now that pretty slick...another nice one, prl!

Pity the png's can't honor the transparency... there is much more power to this 'routine [program]' than simply making 'gif-ies'. 

Thanks again, prl,  for the uplifting 'STUFF'!

prl

#2
Quote from: minstrel on March 25, 2014, 05:38:04 AM
Thanks again, prl,  for the uplifting 'STUFF'!

Thanks Minstrel.  Just to add to what you are saying, the InfraView program is a Swiss Army knife type of program.  It can do a great deal of manipulations on the files created by DesignCAD.  I am sure I'm missing 99% of what it can do.